Branching process
//firstly, create a process model builder
var pmb = ProcessModelBuilder.CreateProcess("LargeOrderProcess_5083", "LargeOrderProcess_Code_5083");
var process = pmb.Start("Start")
.Task("Large Order Received", "001")
.AndSplit("AndSplit", "AS002")
.Parallels(
() => pmb.Branch(
() => pmb.Task("Engineering Review", "0011")
)
, () => pmb.Branch(
() => pmb.Task("Design Review", "0012")
)
, () => pmb.Branch(
() => pmb.Task("QA Review", "0013")
)
)
.AndJoin("AndJoin", "AJ002")
.Task("Management Approve", "007")
.End("End")
.Store();