Add a node: Add()
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: