Skip to content

Slickflow.Graph Requirement: Implement connection between non adjacent nodes feature for domain language models #60

@Daniel369189

Description

@Daniel369189

Use Slickflow.Graph domain language library when creating a flowchart, the following graph can be created. However, if there are no corresponding syntax prompts when connecting lines between non adjacent nodes, such as when generating the flowchart below, if I want to connect between the "Director Approval" node and the "Reimbursement Submit" node, there is no clear connection syntax.

var pmb = ProcessModelBuilder.CreateProcess(fileEntity.ProcessName, fileEntity.ProcessCode, fileEntity.ProcessID, fileEntity.Version);
var xmlContent =
    pmb.Start("start")
        .Task("Reimbursement Submit", "task001")
        .Task("Finalcial Approval", "task002")
        .XOrSplit("XOr-Split", "orsplit001")
        .Parallels(
            () => pmb.Branch(
                () => pmb.Task(
                     VertexBuilder.CreateTask("Approved by the Director in Charge", "task010"),
                     LinkBuilder.CreateTransition("money<10000")
                                .AddCondition(ConditionTypeEnum.Expression, "money<10000")

                    )
            )
            , () => pmb.Branch(
                    () => pmb.Task(
                        VertexBuilder.CreateTask("CEO Approval", "task020"),
                        LinkBuilder.CreateTransition("money>=10000")
                               .AddCondition(ConditionTypeEnum.Expression, "money>=10000")
                )
            )
        )
        .XOrJoin("XOr-Join", "orjoin001")
        .End("end")
        .Store();

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions