Hi,<br>The persistence will work if you have save points (wait states) in your process where all the process status is persisted.<br>If you have only automatic activities and your server crash, none of the state will be persisted.<br>
Greetings.<br><br><div class="gmail_quote">2009/11/12 <span dir="ltr"><<a href="mailto:Pardeep.Ruhil@lntinfotech.com">Pardeep.Ruhil@lntinfotech.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><font face="Trebuchet MS" size="2">Hi,</font>
<br><font face="Trebuchet MS" size="2">I have a query regarding Drools Persistence.</font>
<br><font face="Trebuchet MS" size="2">I have a scenario in which I want
to know whether drool persistence will work or not.</font>
<br><font face="Trebuchet MS" size="2"> </font>
<br><font face="Trebuchet MS" size="2">Lets say I am in between a workflow
and suddenly my server creashes.</font>
<br><font face="Trebuchet MS" size="2">Suppose my workFlow was completed
upto 3 steps with lets say 2 more steps to go.</font>
<br><font face="Trebuchet MS" size="2">As I am using drools-persistence Api
methods so my data regarding the session , variable and process will go
into the database specified by me in the tables 'SessionInfo', VaraibleInstanceInfo',
and ProcessInstanceInfo and 'WorkItemInfo' tables of the database.</font>
<br><font face="Trebuchet MS" size="2"> </font>
<br><font face="Trebuchet MS" size="2">Now as my server crashed and I restarted
my application.</font>
<br><font face="Trebuchet MS" size="2">So now I will restore the session
object as my application got crashed from the database using the below
code.</font>
<p><font color="#820040" face="Trebuchet MS" size="2"><b>this</b></font><font face="Trebuchet MS" size="2">.</font><font color="#0021bf" face="Trebuchet MS" size="2">ksession</font><font face="Trebuchet MS" size="2">
= JPAKnowledgeService.<i>loadStatefulKnowledgeSession</i>(<u>id</u>, <u>kbase</u>,
</font><font color="#820040" face="Trebuchet MS" size="2"><b>null</b></font><font face="Trebuchet MS" size="2">,
<u>env</u>);</font>
</p><p><font face="Trebuchet MS" size="2">Now as I have restarted the server,
KnowledgeBase object i.e. 'kbase' will become <b>null </b>and so as Environment
Class object 'env'. </font>
</p><p><font face="Trebuchet MS" size="2">Are KnowledgeBase object are stored
as well in the database ???</font>
</p><p><font face="Trebuchet MS" size="2">or I have to create a new KnowledgeBase
to load the previous StatefulKnowledgeSession object.</font>
</p><p><font face="Trebuchet MS" size="2">So in short how can I restore the previous
session or If I cann't restore it can I do that by storing the Knowledgebase
object and Environment Object in the database as well.</font>
</p><p><font face="Trebuchet MS" size="2">Please help me how can this be achieved.
</font>
</p><p><font face="sans-serif" size="2">Thanks & Regards<br>
</font><font face="Trebuchet MS" size="2">Pardeep Ruhil<br>
</font>
<br>
______________________________________________________________________<br>
</p><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 "Salaboy" Mauricio -<br>