Yes, you must use the <br><pre class="programlisting">JPAKnowledgeService</pre>
 to do that:<br><pre class="programlisting">StatefulKnowledgeSession ksession =<br>    JPAKnowledgeService.newStatefulKnowledgeSession( kbase, null, env );<br></pre><br>Take a look at:<br><a href="http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html_single/index.html#d0e1496">http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html_single/index.html#d0e1496</a><br>
<br><div class="gmail_quote">2009/10/5 Anderson vasconcelos <span dir="ltr">&lt;<a href="mailto:anderson.vass@gmail.com">anderson.vass@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br><br><span><font style="background: rgb(255, 255, 255) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" color="#000000">
I&#39;m have a flow with two moments. First the <b>client</b> created the task.
Second  the <b>user</b> approve the task.  The Second  can occurred in another
day, year, month. Has one way to persist the
StatefulKnowledgeSession in database and recuperated them again?<br><br>This is necessary:<br>1) Because my Application Server can crash and i need to recuperated my session<br>2) Because i need to update the facts after <b>user</b> approve task <br>

<br>Thanks<br><br></font></span>
<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>