How can we get the current state of a process instance using rest-api?
- Can we get a rendered form of current state?
- Or can we just get the state and render that state using bpmn-js?
like one we have in camunda console
How can we get the current state of a process instance using rest-api?
like one we have in camunda console
Or can we just get the state and render that state using bpmn-js?
That’s the way to go.
This is the REST request for a single process instance: https://docs.camunda.org/manual/7.8/reference/rest/process-instance/get-activity-instances/
This is the REST request for an aggregation over all instances of a process definition: https://docs.camunda.org/manual/7.8/reference/rest/process-definition/get-activity-statistics/
Cheers,
Thorben
What relation does a process have to its subprocess call activity?
When I call the /process-instance/:id/activity-instances
endpoint I’m just returned the “parent” process’ activity which is of type callActivity
, but since the subprocess is a process instance of its own, I need to call the same endpoint for that too; and when I do there’s no relationship between the two.
Am I missing something?