Hi,
If I create a ProcessInstanceWithVariables using following code:
runtime.createProcessInstanceByKey("some-process-definition-name")
.setVariables(processVariables)
.executeWithVariablesInReturn()
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?