1) Command:

//exchange task 222 to zzz

pmb.Exchange( "222" , "zzz-code" )

Parameters: (firstActivityCode, secondActivityCode)

Description: This method swaps the positions of two nodes, while the attributes of other nodes remain unchanged. In addition, it is explained that after the exchange, the connection Transition between the nodes is re-assigned a unique identification GUID. Because the connected nodes have changed, the value of the connection identification GUID needs to be changed.

2) Graphical example after command execution:

https://img2018.cnblogs.com/blog/808949/201911/808949-20191128204921078-2091963558.png