Getting the process instance id of a parent process

I have process A which calls process B which calls Process C
A → B → C
Using the process instance id of C I can retrieve the process instance A, using get root process instance.
But how to retrieve process instance B?
processInstanceC.getParentId() is returning Null.

The subprocesses are called as Call activities

you can use C.getSuperExecution() which given execution in B under which C is created
then from the above use C.getSuperExecution().getProcessInstance()

@vamshichanda thank you for the solution

1 Like