ProcessInstanceWithVariables processing state


If I create a ProcessInstanceWithVariables using following code:


It’s impossible to get hands on execution entity to actually query the execution state (for example if the process instance is suspended, or if it has ended, etc.)

How can I know if that process instance with variable has finished?

The ProcessInstanceWithVariables interface extends ProcessInstance and Execution, so you can use methods like #isEnded and #isSuspended.

1 Like