How to get all running process instances of a process definition in jBPM 3.2 ?

Solution Unverified - Updated -

Issue

  • We are trying to find all the running instances of a process definition. The only way we could find was to execute the following API:
      graphSession.findProcessInstances(processDefinition.getId());

But, it returns all process instances and then we have to filter by the hasEnded flag. However, as the number of process instances grows, this API call will slow down.
Is there a way to get only the number of running process instances?

Environment

  • jBPM
    • 3.2.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content