<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sequential uses an array, when rules activate they simply put the
activation in the element in the array based on the position o the rule
in the drl and it's salience. Dynamic uses a priority queue which works
with full conflict resolution strategies.<br>
<br>
Mark<br>
Shyam, Pallav (MSCIBARRA) wrote:
<blockquote
cite="mid:C7CE0B5E704C154AA7C781F7C09D139020D87A@HKWEXMB27.msad.ms.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.3395" name="GENERATOR">
<div>
<div dir="ltr" align="left"><span class="865423316-02092008"><font
face="Calibri">posting my query again </font></span></div>
<div dir="ltr" align="left"><span class="865423316-02092008"><font
face="Calibri">and hoping to get an answer soon.</font></span></div>
<br>
<div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us"> </div>
<div><span class="952144505-01092008"><font face="Calibri">Hi All,</font></span></div>
<div><span class="952144505-01092008"></span> </div>
<div><span class="952144505-01092008"><font face="Calibri">I am
trying to figure out when to use Sequential Mode.</font></span></div>
<div><span class="952144505-01092008"><font face="Calibri">Also, what
does SequentailAgenda.SEQUENTIAL and SequentialAgenda.DYNAMIC means.</font></span></div>
<div><span class="952144505-01092008"></span> </div>
<div><span class="952144505-01092008"><font face="Calibri">rule
"asset > 1000"</font></span></div>
<div><span class="952144505-01092008"> <font face="Calibri">when</font></span></div>
<div><span class="952144505-01092008"> <font face="Calibri">s
: Security( status == "NOT VALIDATED", country == "USA", asset >
1000)</font></span></div>
<div><span class="952144505-01092008"> <font face="Calibri">then</font></span></div>
<div><span class="952144505-01092008"> <font face="Calibri">s.setStatus("VALIDATED");</font></span></div>
<div><span class="952144505-01092008"><font face="Calibri">end</font></span></div>
<div><span class="952144505-01092008"></span> </div>
<div><span class="952144505-01092008">
<div><span class="952144505-01092008"><font face="Calibri">rule
"asset < 1000 and no_of_shares > 150000"</font></span></div>
<div><span class="952144505-01092008"> <font face="Calibri">when</font></span></div>
<div><span class="952144505-01092008"> <font face="Calibri">s
: Security( status == "NOT VALIDATED", country == "USA", asset <
1000, no_of_share > 150000)</font></span></div>
<div><span class="952144505-01092008"> <font face="Calibri">then</font></span></div>
<div><span class="952144505-01092008"> <font face="Calibri">s.setStatus("VALIDATED");</font></span></div>
<div><span class="952144505-01092008"><font face="Calibri">end</font></span></div>
<div><span class="952144505-01092008"></span> </div>
<div><span class="952144505-01092008"><font face="Calibri">There are
50 more such rules. </font></span></div>
<div><span class="952144505-01092008"><font face="Calibri">90000 such
Security objects will be inserted in WM as facts and the rules applied.
The moment a Security becomes VALIDATED all other Activations on the
same fact should be cancelled.</font></span></div>
<div><span class="952144505-01092008"></span> </div>
<div><span class="952144505-01092008"><font face="Calibri">Is this
example a candidate for Sequential Mode.</font></span></div>
<div><span class="952144505-01092008"><font face="Calibri">What
difference will it make if I put the set the SequentialAgenda to
SEQUENTIAL or DYNAMIC.</font></span></div>
</span></div>
<div><span class="952144505-01092008"></span> </div>
<div><span class="952144505-01092008"></span> </div>
<div><span class="952144505-01092008"><font face="Calibri">Thanks.</font></span></div>
<div class="Section1"><span class="865423316-02092008"><font
face="Calibri">Pallav</font></span></div>
</div>
<div>
<hr></div>
<p class="BulletedList" style="margin: 0in 0in 0pt; text-indent: 0in;"><span
style="font-size: 8pt; color: gray;"><font color="gray" face="Arial"
size="1">NOTICE: If received in error, please destroy and notify
sender. Sender does not intend to waive confidentiality or privilege.
Use of this email is prohibited when received in error.</font></span></p>
<div>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>