AnsweredAssumed Answered

Count active process instances (no matter which process definition)

Question asked by mgryszko on Jul 26, 2013
Latest reply on Jul 30, 2013 by trademak
Is it possible to issue a query that will return a count of all process instances that are being executed?

I tried with:


but I get always 0 as result, even if I know that at least one process is being executed.

Background of my question:
I'm in a functional test where I test the following:
- I send a JMS message with XML payload to a queue
- queue listener picks up the message, parses the XML and starts an Activiti process (service tasks only, no user interaction)
After the process is finished, I want to do some assertions. As the whole processing is done outside the current test thread, I have to deal with the asynchronicity.