How to reconnect a StatefulKnowledgeSession to a process and continue the flow using jBPM5 and BRMS ?

Solution Verified - Updated -

Issue

  • If a server running a jBPM process crashes, it should be able to recover the process and all Human Tasks. Is it possible?
  • Sometimes the current KnowledgeSession should be disposed, how to load it again to continue a process?
  • Reloading a disposed KnowledgeSession by its id to reconnect a process , throws the below message:
Caused by: java.lang.IllegalStateException: Illegal method call. This session was previously disposed.
    at org.drools.reteoo.DisposedReteooWorkingMemory.getWorkItemManager(DisposedReteooWorkingMemory.java:386)
    at org.drools.impl.StatefulKnowledgeSessionImpl.getWorkItemManager(StatefulKnowledgeSessionImpl.java:309)

Environment

  • Red Hat JBoss BRMS (BRMS)
    • 5.3.x
  • jBPM
    • 5.2

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