ProcessInstance Modification without killing parent subprocesses

Hi All,

I have a problem statement, where i am trying to use process instance modification API via runtime service. Where i need to move the execution from an existing activity to a particular transition flow, without killing the parent subprocess.
modificationBuilder = runtimeService.createProcessInstanceModification(processInstanceId);

.setVariables(wfVariables) --//Map<String, Object>
.setVariable(“modified”, true)
.setAnnotation(“Process modification”)

Have already refered:

But I can see the parent subprocess is also getting cancelled.

And I am using 7.18.4 EE version