In a process definition which has a sub process, how is the control passed on from the super process instance to the sub processes. Also when the sub processes execution is complete how is the control passed on back to the super process?
I'm using 3.2GA version and have added the logic for changing the token to the respective process instance's token as and when the control moves from 1 process to another.
Is this how it should be normally done?
Thanks in Advance,
two different questions... use two topics please....
regading post 1: can you make a unit test with INTEGRATED processdefinition that demonstrates the problem?
the 'control' is in de hand of a token. Where the token is defines where the control is. Nothing to it... if you want details, examine the code a little..
How did the subprocess end?
You probably want to read ProcessState.java (for the parent's perspective) and ProcessInstance.end() (for the child's perspective).
I'm pretty sure you've made a mistake somewhere... maybe grabbed the wrong token at some point.