cancel
Showing results for 
Search instead for 
Did you mean: 

Fetch subprocess instance id using parent process instance

banilkamath
Champ in-the-making
Champ in-the-making
How can we fetch sup process process instance id(s) using parent processs intance id.?


Is there any way to fetch using history or execution services?
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
ProcessInstanstanceQuery
/**
   * Select the process instances which are a sub process instance of the given
   * super process instance.
   */
  ProcessInstanceQuery superProcessInstanceId(String superProcessInstanceId);

banilkamath
Champ in-the-making
Champ in-the-making
Thanks for the reply.

Is there a way to query subprocess of a process that are completed execution?

I didn't find any method in historyService Smiley Sad

frederikherema1
Star Contributor
Star Contributor
Looks like that is not available in the history. As a workaround, you could write the ID of the parent process in a variable when the sub-process ends. This way, you can use the processVariableValueEquals("parentProcId", "1234"); to find this out…