Did you see how is that solved in the WHST module?
You can copy that if you want.
2010/3/30 tolitius <webakaunt(a)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<http://n3.nabble.com/Drools-Flow-Find-a-Session-ID-to-reload-t...
Sent from the Drools - User mailing list
archive<http://n3.nabble.com/Drools-User-f47000.html>at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users