How to get current and next process state using REST API?

Hi ,

I have a requirement to show current and next process state though REST API.
I am not able to figure out solution. Is there API exposed for this?


For the current process state you could query for tasks, if you have a user task focused process definition:

Or you could get a full overview of the active executions for the process instance:

The question about the next process state I’m not understanding yet. It depends on the process flow of course to know which activities will be next. You can get the BPMN model and traverse the model to get the information you are looking for with:

Best regards,


Thanks @tijs
does activities in model will be in same sequence?