I have a question about the operation of a process using asynchronous elements. I have a process, and I want to see whether it has finished or not (this is necessary to ensure that the next process runs only after the first one has completed). At the beginning of this process (on the second element), I set async before
. When the process starts, I can see that it is running (Running Instances = 1
). The process then reaches the first multi-instance, where a cyclical HTTP service call is made; during this time, Running Instances = 1
. However, when the process reaches the second multi-instance (where another HTTP service call is made), Running Instances = 0
, and I can no longer see that this process is still running (even though it is). Could someone share best practices for tracking running processes?
Hi @A_M.
How exactly are you determining the running process instances? If you have no other async setting in your process model, the rest of the process instance will be completed inside one transaction, where all calls are made.
To determine the running process, I use:
var rs = execution.getProcessEngineServices().getRuntimeService();
var pi = rs.createProcessInstanceQuery().processDefinitionKey(“process-name”).list();
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.