<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
tt
        {font-family:"Courier New";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>You have to load the same ‘<b><span
style='font-weight:bold'>StatefulKnowledgeSession</span></b>’ in which
you have inserted your objects</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>. </span></font><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>The inserted objects are serialized and stored in the column “<b><span
style='font-weight:bold'>rules_byte_array</span></b>” of the <b><span
style='font-weight:bold'>session_info</span></b> table. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>So you have to load the same session –
to get to your inserted objects. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>There is a difference the way process map
objects are handled – such as<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'> <span style='background:
silver'>Map</span><String, Object> parameters = </span></font><b><font
size=2 color="#7f0055" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#7F0055;font-weight:bold'>new</span></font></b><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> HashMap<String, Object>();</span></font><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'> parameters.put(</span></font><font
size=2 color="#2a00ff" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#2A00FF'>"x"</span></font><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'>, </span></font><font size=2 color="#2a00ff"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#2A00FF'>"hello"</span></font><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>);</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'> parameters.put(</span></font><font
size=2 color="#2a00ff" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#2A00FF'>"y"</span></font><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'>, </span></font><font size=2 color="#2a00ff"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#2A00FF'>"hey I am y"</span></font><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>);</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'> ksession.startProcess( </span></font><font
size=2 color="#2a00ff" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#2A00FF'>"myprocess"</span></font><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'>, parameters );</span></font><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>In the above case the parameters are not
stored as part of the “session info” table. These are stored separately
like in “process instance info” table + (some/other tables if you
use variable persistence strategy)– so if you don’t have the rules
which are based on the objects you are inserting – you can get the same
done through process parameters in which case you can get hold of the process instance
through any new session or the same session and then its parameters.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Vijay<o:p></o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
Pardeep.Ruhil@lntinfotech.com [mailto:Pardeep.Ruhil@lntinfotech.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, November 18, 2009
12:38 AM<br>
<b><span style='font-weight:bold'>To:</span></b> rules-users@lists.jboss.org<br>
<b><span style='font-weight:bold'>Cc:</span></b> kris.verlaenen@cs.kuleuven.be;
Vijay K Pandey<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [rules-users] Drools
Flow :Persistence Problem : Restore StatefulKnowledgeSession from database</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
</span></font><font size=2 face="Trebuchet MS"><span style='font-size:10.0pt;
font-family:"Trebuchet MS"'>Hi Kris,</span></font> <br>
<font size=2 face="Trebuchet MS"><span style='font-size:10.0pt;font-family:
"Trebuchet MS"'>Thanks for you valuable input and Vijay of course clearing some
of my doubts by asking question on this.</span></font> <br>
<br>
<font size=2 face="Trebuchet MS"><span style='font-size:10.0pt;font-family:
"Trebuchet MS"'>Much of my doubt are clear except one. </span></font><br>
<font size=2 face="Trebuchet MS"><span style='font-size:10.0pt;font-family:
"Trebuchet MS"'>When we are reloading the StatefulKnowledgeSession from the
database using the below line</span></font> <br>
<font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'> </span></font>
<br>
<font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>StatefulKnowledgeSession
loadSession= JPAKnowledgeService.<i><span style='font-style:italic'>loadStatefulKnowledgeSession</span></i>(id,
<i><font color="#0021bf"><span style='color:#0021BF;font-style:italic'>kbase</span></font></i>,
<b><font color="#820040"><span style='color:#820040;font-weight:bold'>null</span></font></b>,
<i><font color="#0021bf"><span style='color:#0021BF;font-style:italic'>env</span></font></i>);</span></font>
<br>
<br>
<font size=2 face="Trebuchet MS"><span style='font-size:10.0pt;font-family:
"Trebuchet MS"'>This session object is different from the one that is created
when we first created </span></font><br>
<font size=2 face="Trebuchet MS"><span style='font-size:10.0pt;font-family:
"Trebuchet MS"'>StatefulknowledgeSession object using </span></font><br>
<br>
<font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'> StatefulKnowledgeSession
<b><span style='font-weight:bold'>initialSession</span></b>=
JPAKnowledgeService.<i><span style='font-style:italic'>newStatefulKnowledgeSession</span></i>(<i><font
color="#0021bf"><span style='color:#0021BF;font-style:italic'>kbase</span></font></i>,
<b><font color="#820040"><span style='color:#820040;font-weight:bold'>null</span></font></b>,
<i><font color="#0021bf"><span style='color:#0021BF;font-style:italic'>env</span></font></i>);</span></font>
<br>
<br>
<font size=2 face="Trebuchet MS"><span style='font-size:10.0pt;font-family:
"Trebuchet MS"'>Am I right ?</span></font> <br>
<br>
<font size=2 face="Trebuchet MS"><span style='font-size:10.0pt;font-family:
"Trebuchet MS"'>Now In my case I have a <b><span style='font-weight:bold'>HumanWorkItemHandler</span></b>
class for handling the <b><span style='font-weight:bold'>humantask</span></b>
and there is<b><span style='font-weight:bold'> ActionWorkITemHandle</span></b>r
for my customAction workItem, which both are initailsed with the <b><span
style='font-weight:bold'>initialSession </span></b>object.</span></font> <br>
<font size=2 face="Trebuchet MS"><span style='font-size:10.0pt;font-family:
"Trebuchet MS"'>Now when I load the session from the database to complete the
HumanWorkItemHandler task I got a different session object i.e. <b><span
style='font-weight:bold'>loadSession. </span></b></span></font><br>
<font size=2 face="Trebuchet MS"><span style='font-size:10.0pt;font-family:
"Trebuchet MS"'>Now when I insert something in the loadsession using <b><span
style='font-weight:bold'>loadSession.insert(request);</span></b> So that I can
use the same in ActionWorkItemHandler to exceute the action for the request. </span></font><br>
<font size=2 face="Trebuchet MS"><span style='font-size:10.0pt;font-family:
"Trebuchet MS"'>I am not able to retrieve the same request object i.e.
(HttpServletRequest) from the session in ActionWorkItemHandler </span></font><br>
<font size=2 face="Trebuchet MS"><span style='font-size:10.0pt;font-family:
"Trebuchet MS"'>as when i do </span></font><br>
<font size=2 face="Trebuchet MS"><span style='font-size:10.0pt;font-family:
"Trebuchet MS"'> Collection obj =
loadSession.getObject();</span></font> <br>
<font size=2 face="Trebuchet MS"><span style='font-size:10.0pt;font-family:
"Trebuchet MS"'>I get request as <b><span style='font-weight:bold'>null. </span></b>
Because this loadSession is different from the one I have inserted.</span></font>
<br>
<br>
<font size=2 face="Trebuchet MS"><span style='font-size:10.0pt;font-family:
"Trebuchet MS"'>Kindly help in this, or I have misunderstood the concept. </span></font><br>
<br>
<font size=2 face="Trebuchet MS"><span style='font-size:10.0pt;font-family:
"Trebuchet MS"'>Thanks & Regards<br>
<br>
Pardeep Ruhil<br>
</span></font><br>
<br>
<o:p></o:p></p>
<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
style='width:100.0%'>
<tr>
<td width="40%" valign=top style='width:40.0%;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><b><font size=1 face="Trebuchet MS"><span
style='font-size:7.5pt;font-family:"Trebuchet MS";font-weight:bold'>Kris
Verlaenen <kris.verlaenen@cs.kuleuven.be></span></font></b><font
size=1 face="Trebuchet MS"><span style='font-size:7.5pt;font-family:"Trebuchet MS"'>
</span></font><o:p></o:p></p>
<p><font size=1 face="Trebuchet MS"><span style='font-size:7.5pt;font-family:
"Trebuchet MS"'>11/17/2009 04:17 PM</span></font> <o:p></o:p></p>
</td>
<td width="59%" valign=top style='width:59.0%;padding:.75pt .75pt .75pt .75pt'>
<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
style='width:100.0%'>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=right style='text-align:right'><font size=1
face="Trebuchet MS"><span style='font-size:7.5pt;font-family:"Trebuchet MS"'>To</span></font><o:p></o:p></p>
</td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=1 face="Trebuchet MS"><span style='font-size:
7.5pt;font-family:"Trebuchet MS"'>Rules Users List
<rules-users@lists.jboss.org>, Vijay K Pandey
<VPandey@mdes.ms.gov></span></font> <o:p></o:p></p>
</td>
</tr>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=right style='text-align:right'><font size=1
face="Trebuchet MS"><span style='font-size:7.5pt;font-family:"Trebuchet MS"'>cc</span></font><o:p></o:p></p>
</td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=1 face="Trebuchet MS"><span style='font-size:
7.5pt;font-family:"Trebuchet MS"'>"Pardeep.Ruhil@lntinfotech.com"
<Pardeep.Ruhil@lntinfotech.com></span></font> <o:p></o:p></p>
</td>
</tr>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=right style='text-align:right'><font size=1
face="Trebuchet MS"><span style='font-size:7.5pt;font-family:"Trebuchet MS"'>Subject</span></font><o:p></o:p></p>
</td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=1 face="Trebuchet MS"><span style='font-size:
7.5pt;font-family:"Trebuchet MS"'>Re: [rules-users] Drools Flow
:Persistence Problem : Restore StatefulKnowledgeSession from database</span></font><o:p></o:p></p>
</td>
</tr>
</table>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<table class=MsoNormalTable border=0 cellpadding=0>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</td>
</tr>
</table>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p></o:p></span></font></p>
</td>
</tr>
</table>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
<br>
</span></font><tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>Preferably
you should cache the session itself as well (so you don't</span></font></tt><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt><font face="Courier New">have to recreate it all the time) and reuse that
across you application.</font></tt><br>
<tt><font face="Courier New"> Or you could have multiple independent
sessions as well. If you store</font></tt><br>
<tt><font face="Courier New">the key of the session somewhere, you can easily
restore this session</font></tt><br>
<tt><font face="Courier New">(or sessions) after failure.</font></tt><br>
<br>
<tt><font face="Courier New">Kris</font></tt><br>
<br>
<tt><font face="Courier New">Quoting Vijay K Pandey
<VPandey@mdes.ms.gov>:</font></tt><br>
<br>
<tt><font face="Courier New">> Let's say where we don't need timers - in
those cases one can create</font></tt><br>
<tt><font face="Courier New">> (create only if its not there) a global
session (create the</font></tt><br>
<tt><font face="Courier New">> sessioninfo at the drools startup - store the
session primary key</font></tt><br>
<tt><font face="Courier New">> somewhere) - reuse this session across
everywhere?</font></tt><br>
<tt><font face="Courier New">> </font></tt><br>
<tt><font face="Courier New">> Vijay</font></tt><br>
<tt><font face="Courier New">> -----Original Message-----</font></tt><br>
<tt><font face="Courier New">> From: rules-users-bounces@lists.jboss.org</font></tt><br>
<tt><font face="Courier New">> [mailto:rules-users-bounces@lists.jboss.org]
On Behalf Of Kris</font></tt><br>
<tt><font face="Courier New">> Verlaenen</font></tt><br>
<tt><font face="Courier New">> Sent: Monday, November 16, 2009 5:12 PM</font></tt><br>
<tt><font face="Courier New">> To: Rules Users List;
Pardeep.Ruhil@lntinfotech.com</font></tt><br>
<tt><font face="Courier New">> Subject: Re: [rules-users] Drools Flow
:Persistence Problem : Restore</font></tt><br>
<tt><font face="Courier New">> StatefulKnowledgeSession from database</font></tt><br>
<tt><font face="Courier New">> </font></tt><br>
<tt><font face="Courier New">> Pardeep,</font></tt><br>
<tt><font face="Courier New">> </font></tt><br>
<tt><font face="Courier New">> The behavior you are describing is indeed
correct. The session in</font></tt><br>
<tt><font face="Courier New">> this</font></tt><br>
<tt><font face="Courier New">> case is a global session, meaning that it
will be used for all</font></tt><br>
<tt><font face="Courier New">> process</font></tt><br>
<tt><font face="Courier New">> instances. Note however that, unless
you are using timers, all</font></tt><br>
<tt><font face="Courier New">> other</font></tt><br>
<tt><font face="Courier New">> state (process instance state, work items,
etc.) is persisted</font></tt><br>
<tt><font face="Courier New">> separately</font></tt><br>
<tt><font face="Courier New">> and the session state will basically be
empty.</font></tt><br>
<tt><font face="Courier New">> </font></tt><br>
<tt><font face="Courier New">> It is also possible to have one session per
process instance (or</font></tt><br>
<tt><font face="Courier New">> whatever partitioning you like). A
session has a unique id (which</font></tt><br>
<tt><font face="Courier New">> you</font></tt><br>
<tt><font face="Courier New">> can specify when reloading the session).
You'll then have to load</font></tt><br>
<tt><font face="Courier New">> the</font></tt><br>
<tt><font face="Courier New">> right session before continuing the execution
of your process</font></tt><br>
<tt><font face="Courier New">> instance.</font></tt><br>
<tt><font face="Courier New">> </font></tt><br>
<tt><font face="Courier New">> Kris</font></tt><br>
<tt><font face="Courier New">> </font></tt><br>
<tt><font face="Courier New">> Quoting Pardeep.Ruhil@lntinfotech.com:</font></tt><br>
<tt><font face="Courier New">> </font></tt><br>
<tt><font face="Courier New">> > Hi Salaboy,</font></tt><br>
<tt><font face="Courier New">> > Thanks for you replying.</font></tt><br>
<tt><font face="Courier New">> > Yes, of course it is storing multiple
process instance Id in the</font></tt><br>
<tt><font face="Courier New">> > database.</font></tt><br>
<tt><font face="Courier New">> > But, what I feel is that it will fail
when I am trying to run two</font></tt><br>
<tt><font face="Courier New">> > workflow</font></tt><br>
<tt><font face="Courier New">> > at the same time simultaneously, using
the same code by</font></tt><br>
<tt><font face="Courier New">> dynamically</font></tt><br>
<tt><font face="Courier New">> > providing the workflow name and the
parameters for each of them.</font></tt><br>
<tt><font face="Courier New">> > Ideally there should be two entries for
the</font></tt><br>
<tt><font face="Courier New">> StatfulKnowledgeSession</font></tt><br>
<tt><font face="Courier New">> > object</font></tt><br>
<tt><font face="Courier New">> > because when I try to load the
StatefulKnowledgeSession object</font></tt><br>
<tt><font face="Courier New">> from</font></tt><br>
<tt><font face="Courier New">> > the</font></tt><br>
<tt><font face="Courier New">> > database it will give me the session
object of the workflow which</font></tt><br>
<tt><font face="Courier New">> is</font></tt><br>
<tt><font face="Courier New">> > last</font></tt><br>
<tt><font face="Courier New">> > executed.</font></tt><br>
<tt><font face="Courier New">> ></font></tt><br>
<tt><font face="Courier New">> > For example lets suppose I have
two workflow 1 and 2 having two</font></tt><br>
<tt><font face="Courier New">> > humantask</font></tt><br>
<tt><font face="Courier New">> > in each of them . So when I finish the
first Human Task of both</font></tt><br>
<tt><font face="Courier New">> > workflow</font></tt><br>
<tt><font face="Courier New">> > one by one. SessionInfo
present in the database is of workflow 2</font></tt><br>
<tt><font face="Courier New">> > (if 2</font></tt><br>
<tt><font face="Courier New">> > is executed last). Because there is no
field in the sessioninfo</font></tt><br>
<tt><font face="Courier New">> > entity of</font></tt><br>
<tt><font face="Courier New">> > the database regarding to which workflow
it belongs to. Am I right</font></tt><br>
<tt><font face="Courier New">> ?</font></tt><br>
<tt><font face="Courier New">> > So when I try to finish the 1st
workflow by executing the 2nd</font></tt><br>
<tt><font face="Courier New">> > humantask</font></tt><br>
<tt><font face="Courier New">> > left in it , I need to reload the
StatfulKnowledgeSession object</font></tt><br>
<tt><font face="Courier New">> from</font></tt><br>
<tt><font face="Courier New">> > the</font></tt><br>
<tt><font face="Courier New">> > database. As there is no way of
distinguishing that the session</font></tt><br>
<tt><font face="Courier New">> > object</font></tt><br>
<tt><font face="Courier New">> > store in the database is of which
workflow , there might be a</font></tt><br>
<tt><font face="Courier New">> problem</font></tt><br>
<tt><font face="Courier New">> > as I</font></tt><br>
<tt><font face="Courier New">> > may get the ksession object of 2nd
workflow.</font></tt><br>
<tt><font face="Courier New">> ></font></tt><br>
<tt><font face="Courier New">> > In case of Process Instance it is fine ,
because there is a field</font></tt><br>
<tt><font face="Courier New">> > 'processId' which will distinguish which
processInstanceId belongs</font></tt><br>
<tt><font face="Courier New">> to</font></tt><br>
<tt><font face="Courier New">> ></font></tt><br>
<tt><font face="Courier New">> > which worklowId or processId.</font></tt><br>
<tt><font face="Courier New">> > But in case of Session , there is noting
as such.</font></tt><br>
<tt><font face="Courier New">> > I don't what I am saying is handled in
drools persistence. Please</font></tt><br>
<tt><font face="Courier New">> let</font></tt><br>
<tt><font face="Courier New">> > me</font></tt><br>
<tt><font face="Courier New">> > know if it there or not.</font></tt><br>
<tt><font face="Courier New">> ></font></tt><br>
<tt><font face="Courier New">> > Thanks & Regards</font></tt><br>
<tt><font face="Courier New">> ></font></tt><br>
<tt><font face="Courier New">> > Pardeep Ruhil</font></tt><br>
<tt><font face="Courier New">> ></font></tt><br>
<tt><font face="Courier New">> ></font></tt><br>
<tt><font face="Courier New">> ></font></tt><br>
<tt><font face="Courier New">>
______________________________________________________________________</font></tt><br>
<tt><font face="Courier New">> </font></tt><br>
<tt><font face="Courier New">> </font></tt><br>
<tt><font face="Courier New">> </font></tt><br>
<tt><font face="Courier New">> </font></tt><br>
<tt><font face="Courier New">> Disclaimer:
http://www.kuleuven.be/cwis/email_disclaimer.htm</font></tt><br>
<tt><font face="Courier New">>
_______________________________________________</font></tt><br>
<tt><font face="Courier New">> rules-users mailing list</font></tt><br>
<tt><font face="Courier New">> rules-users@lists.jboss.org</font></tt><br>
<tt><font face="Courier New">>
https://lists.jboss.org/mailman/listinfo/rules-users</font></tt><br>
<tt><font face="Courier New">> _______________________________________________</font></tt><br>
<tt><font face="Courier New">> rules-users mailing list</font></tt><br>
<tt><font face="Courier New">> rules-users@lists.jboss.org</font></tt><br>
<tt><font face="Courier New">>
https://lists.jboss.org/mailman/listinfo/rules-users</font></tt><br>
<tt><font face="Courier New">> </font></tt><br>
<br>
<br>
<br>
<br>
<tt><font face="Courier New">Disclaimer:
http://www.kuleuven.be/cwis/email_disclaimer.htm</font></tt><br>
<br>
<tt><font face="Courier New">______________________________________________________________________</font></tt><br>
</span></font><br>
<br>
______________________________________________________________________<o:p></o:p></p>
</div>
</body>
</html>