Moving node by ProcessInstance ModificationBuilder

When use ProcessInstanceModificationBuilder to move processInstance, which tasks need to be canceled

As shown in the figure, 3 to be handled (A-> C, B-> C, B-> D),When moving to B, I need to cancel the tasks generated by B->C and B->D
but when moving to A, need to cancel all tasks。
How do I decide to cancel a task。
What I think is whether it can record the prelude of each task object, and then determine whether the path of the retreat contains the mission according to the path,But how

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.