How to get active process instances using Service Task

Hi,
for example I have variable DelegateExecution execution in my class.

Is there a way to get active process instances using this variable?
I can get it via REST API oh maybe there is another way.

In my class I need to check if other instances of this deployment are running

I apologize if I explained it is not clear

Hi @godzilla65536,

from the DelegateExecution you can do something like:

execution.getProcessEngineServices().getRuntimeService();

With that you can create queries for process instances and such as usual.

Hope that helps.

Best,
Tobias

1 Like