1) Command:

//add a new task node zzz after task with code 003(Package Books)

pmb.Add( "003" , ActivityTypeEnum.TaskNode, "zzz" , "zzz-code" )

Parameters: (currentActivityCode, addActivityType, addActivityName, addActivityCode)

Note: The Add() method adds a new node after the current node and continues to keep the newly added node on the process line.

2) Graphical example after command execution:

 https://img2018.cnblogs.com/blog/808949/201911/808949-20191128202921924-134139178.png