How to get all subprocess of parent process in java ?
RuntimeService.createProcessInstanceQuery().superProcessInstanceId(“id-of-parent”).list(); -> Should get you all of the process instances that were started as a child of the process instance with a particular ID.
1 Like
@tiesebarrell is there a java REST API to achieve the same ?
Sure. You can use Get Instances | docs.camunda.org and specify the superProcessInstance field for the query.