<br><font size=2 face="Trebuchet MS">Hi,</font>
<br><font size=2 face="Trebuchet MS">I have a query regarding Drools Persistence.</font>
<br><font size=2 face="Trebuchet MS">I have a scenario in which I want
to know whether drool persistence will work or not.</font>
<br><font size=2 face="Trebuchet MS">&nbsp;</font>
<br><font size=2 face="Trebuchet MS">Lets say I am in between a workflow
and suddenly my server creashes.</font>
<br><font size=2 face="Trebuchet MS">Suppose my workFlow was completed
upto 3 steps with lets say 2 more steps to go.</font>
<br><font size=2 face="Trebuchet MS">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 size=2 face="Trebuchet MS">&nbsp;</font>
<br><font size=2 face="Trebuchet MS">Now as my server crashed and I restarted
my application.</font>
<br><font size=2 face="Trebuchet MS">So now I will restore the session
object as my application got crashed from the database using the below
code.</font>
<p><font size=2 color=#820040 face="Trebuchet MS"><b>this</b></font><font size=2 face="Trebuchet MS">.</font><font size=2 color=#0021bf face="Trebuchet MS">ksession</font><font size=2 face="Trebuchet MS">
= JPAKnowledgeService.<i>loadStatefulKnowledgeSession</i>(<u>id</u>, <u>kbase</u>,
</font><font size=2 color=#820040 face="Trebuchet MS"><b>null</b></font><font size=2 face="Trebuchet MS">,
<u>env</u>);</font>
<p><font size=2 face="Trebuchet MS">Now as I have restarted the server,
KnowledgeBase object i.e. 'kbase' will become <b>null </b>and so as Environment
Class object &nbsp;'env'. &nbsp;</font>
<p><font size=2 face="Trebuchet MS">Are KnowledgeBase object are stored
as well in the database ???</font>
<p><font size=2 face="Trebuchet MS">or I have to create a new KnowledgeBase
to load the previous StatefulKnowledgeSession object.</font>
<p><font size=2 face="Trebuchet MS">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><font size=2 face="Trebuchet MS">Please help me how can this be achieved.
</font>
<p><font size=2 face="sans-serif">Thanks &amp; Regards<br>
</font><font size=2 face="Trebuchet MS">Pardeep Ruhil<br>
</font>
<BR>
______________________________________________________________________<BR>