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
KnowledgeSession
should be disposed, how to load it again to continue a process? - Reloading a disposed
KnowledgeSession
by itsid
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.