Get Current Step Of a Process Instance

Hi,

how do we get the current step of a process instance. The last step before the end event is a UserTask and actually I query according to this info. But that’s not that firm for future changes. How can I query the current step and the type of the step (UserTask, ServiceTask etc.).

Thanks in advance.

HI @Bayqush,

RuntimeService#getActivityInstance returns a representation of the process instance’s current state, i.e. which activities are currently active.

Cheers,
Thorben

1 Like