1) Command:

//fork a new Task 555 from task zzz

pmb.Fork( "zzz-code" , ActivityTypeEnum.TaskNode, "yyy" , "555" )

Parameters: (currentActivityCode, forkActivityType, forkActivityName, forkActivityCode)

Note: This method adds a branch path to the current node. If the current node has no subsequent nodes, it is equivalent to adding a new Add method. If the current node already has a subsequent node, add a new node at the adjacent position.

2) Graphical example after command execution:

https://img2018.cnblogs.com/blog/808949/201911/808949-20191128205334164-1168224785.png