[rules-users] Drools Flow: Find a Session ID to reload the JPA Stateful session

Mauricio Salatino salaboy at gmail.com
Tue Mar 30 13:15:48 EDT 2010


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

2010/3/30 tolitius <webakaunt at 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-the-JPA-Stateful-session-tp686250p686250.html>
> 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100330/d3a9f68f/attachment.html 


More information about the rules-users mailing list