REST API: Retrieve status of individual tasks in a multi-instance subprocess

Hello,

We have a model that starts a multi instance subprocess. We would like to be able to get the status of the individual subprocess instances associated via the REST API. How can we accomplish this?

Thanks
Greg

Hi Greg,

Have you considered using the process instance get list API [1] to get the list of sub-process instances? You can use a filter based on say businessKey, or you could filter based on the parent process instance id by passing it across in the superProcessInstanceId filter parameter.

Thus once you have the set of sub-process Ids, you could use the get API [2] to get the detailed status for each instance.

regards

Rob

[1] https://docs.camunda.org/manual/7.7/reference/rest/process-instance/get-query/
[2] https://docs.camunda.org/manual/7.7/reference/rest/process-instance/get/

Hi Rob

Thanks for the suggestion. We will try it out and let you know how it works for our use case.

Thanks
Greg