首先通过一个代码片段来进行说明,这个代码片段创建了一个简单的序列流程。代码如下:

using Slickflow.Graph;

using Slickflow.Engine.Common;


//firstly, create a process model builder

var pmb = ProcessModelBuilder.CreateProcess("BookSellerProcess", "BookSellerProcessCode", "3"); 

var process = pmb.Start("Start")

        .Task("Package Books", "003")       //task name, code

        .Task("Deliver Books", "005")       //task name, code

        .End("End")

        .Store();

 

图形截图如下:

https://img2018.cnblogs.com/blog/808949/201911/808949-20191126182051465-2058996554.png