4 Replies Latest reply on Feb 19, 2010 3:42 AM by Sebastian Schneider

    How to query for executions in a particular activity

    Peter Swartwout Newbie

      Hi, I'm very new to jBPM - just running the examples and writing my own unit tests to help me learn it.  I have 4.3.

       

      I'm playing with the Query API now, and I can see an easy way to get a list of all process instances by process id. For each of these, I can find which activity is currently active. But I don't see a convenient way to obtain a list of all process instances with an execution in a particular activity.  Am I missing something?

       

      For example:

       

      LoanRequest -> Evaluate -> WireMoney -> End

       

      I want a list of all process instances that are in the "Evaluate" activity and no other activity.

       

      Thanks!