Did you see how is that solved in the WHST module?
You can copy that if you want.

2010/3/30 tolitius <webakaunt@gmail.com>

Wait state is reached (request is sent to an external system), the flow is persisted, the thread that persisted the flow is gone.

Now, the response came back from the external system, and now would be a good time to resume the flow (reload the session):


StatefulKnowledgeSession ksession = JPAKnowledgeService.loadStatefulKnowledgeSession( sessionId, kbase, null, env );


What would be the best approach to find this SessionID that was suspended? Is there any out of the box [ flow / business ] mapping that can be used?

Thank you,
/Anatoly



View this message in context: Drools Flow: Find a Session ID to reload the JPA Stateful session
Sent from the Drools - User mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -