As per my understanding you want to change subprocess called from subprocess-1/2 node at runtime after activation of node "activity2" , correct ?
If my understanding is correct then its not possible
Abhijit, Thanks for the reply.
It is not to swap between sub process 1 and 2, I want to swap between sub process 1 of one running parent process with sub process 1 of another parent process.
As a workaround, I am aborting the sub process 1 of parent 1 and recreating the sub process in the parent 2.