Scenario 1 - Starting process B separately and auto completion of user task works as expected.
Scenario 2 - Starting process B within process A and auto completion of user task is not working.
In scenario 1 , the user task is loaded into ACT_RU_TASK table as soon as its started and we are able to retrieve it & close it. Whereas in scenario 2 , the user task is not loaded into the table until the control comes back to process A.
We are starting process B within process A using runtime service - startProcessInstanceByKey method.
Do we need to follow any other approach for starting a bpmn from another bpmn ? Please suggest .