AnsweredAssumed Answered

Getting the latest running process instance

Question asked by bhchemss on Apr 28, 2017
Latest reply on Apr 28, 2017 by cjose

Hello everyone,

Is it possible to get the latest running process in Activiti with createProcessInstanceQuery ?

runtimeService.createProcessInstanceQuery().processDefinitionKey('myKey').active().singleResult().getProcessInstanceId() I want to get the process instance ID of that definition but only the latest running process.

Thank you