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.