Did you see how is that solved in the WHST module?<br>You can copy that if you want.<br><br><div class="gmail_quote">2010/3/30 tolitius <span dir="ltr">&lt;<a href="mailto:webakaunt@gmail.com">webakaunt@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<p>Wait state is reached (request is sent to an external system), the flow is persisted, the thread that persisted the flow is gone.
</p><p></p>
<p>Now, the response came back from the external system, and now would be a good time to resume the flow (reload the session):</p><p><br>

StatefulKnowledgeSession ksession = JPAKnowledgeService.loadStatefulKnowledgeSession( <b>sessionId</b>, kbase, null, env );</p><p><br>What would be the best approach to find this <b>SessionID</b> that was suspended? Is there any out of the box [ flow / business ] mapping that can be used?</p>

<p>
Thank you,<br>
/Anatoly</p>

<br><hr width="300" align="left">
View this message in context: <a href="http://n3.nabble.com/Drools-Flow-Find-a-Session-ID-to-reload-the-JPA-Stateful-session-tp686250p686250.html" target="_blank">Drools Flow: Find a Session ID to reload the JPA Stateful session</a><br>

Sent from the <a href="http://n3.nabble.com/Drools-User-f47000.html" target="_blank">Drools - User mailing list archive</a> at Nabble.com.<br>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> - Salatino &quot;Salaboy&quot; Mauricio -<br>