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
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: Get Activity Instance | docs.camunda.org
This is the REST request for an aggregation over all instances of a process definition: Get Activity Instance Statistics | docs.camunda.org
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?