1) Command:

//remove the task 222, and backward nodes will be caught up

pmb.Remove("222", true)

Parameters: (currentActivityCode, isCaughtUp)

Note: Delete the current node, and if the current node already has a subsequent node, you need to advance the subsequent node to the position of the currently deleted node, including re-adding the connection.

2) Graphical example after command execution:

https://img2018.cnblogs.com/blog/808949/201911/808949-20191128205720239-915389479.png