I'm facing a problem to fetch the parent processInstance ID. I have a parent workflow calls a subprocess which is a call activitiy. This subprocess agains calls another call activity. Now I want to get the parent processInstance id while subprocess running. I tried getSuperExecution and subProcessInstanceId(subProcessInstanceId) but either returns null.
Is the sub process already in a wait state when you want to do this, or is it still in the same transaction as when it was created by the call activity? Can you make a unit test of this that shows the error? That makes it easier for us to help.