How to reconnect a StatefulKnowledgeSession to a process and continue the flow using jBPM5 and BRMS ?
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
KnowledgeSessionshould be disposed, how to load it again to continue a process? - Reloading a disposed
KnowledgeSessionby itsidto 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
