How to find process instances waiting at Signal Event Nodes in BRMS 5.3

Solution Unverified - Updated -

Issue

  • We need an API to find out which processes are waiting at signal event nodes. Our application can have thousands and thousands of processes instances who can be waiting at some sort of event nodes. So using the WorkflowProcessInstanceImpl.getNodeInstances() would not suffice in our case either because going through all process instances and checking for all of them whether they have active nodes which are of type signal node is not a high-performant solution.
  • Currently we tried querying the event types table to find out whether the process instances have entry in that table or not then that signifies that the process instance was indeed waiting on some sort of signal event node. However, we found out that, even after the process receives the signal and proceeds further down the workflow the entry in the event types table still remains, it is cleared only when the process terminates.

Environment

  • Red Hat JBoss BRMS
    • 5.3.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.