[rules-users] FW: Sequential Mode with Sequential or Dynamic Agenda
Shyam, Pallav (MSCIBARRA)
Pallav.Shyam at mscibarra.com
Tue Sep 2 12:34:58 EDT 2008
posting my query again
and hoping to get an answer soon.
Hi All,
I am trying to figure out when to use Sequential Mode.
Also, what does SequentailAgenda.SEQUENTIAL and SequentialAgenda.DYNAMIC
means.
rule "asset > 1000"
when
s : Security( status == "NOT VALIDATED", country == "USA", asset
> 1000)
then
s.setStatus("VALIDATED");
end
rule "asset < 1000 and no_of_shares > 150000"
when
s : Security( status == "NOT VALIDATED", country == "USA", asset
< 1000, no_of_share > 150000)
then
s.setStatus("VALIDATED");
end
There are 50 more such rules.
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.
Is this example a candidate for Sequential Mode.
What difference will it make if I put the set the SequentialAgenda to
SEQUENTIAL or DYNAMIC.
Thanks.
Pallav
--------------------------------------------------------
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080903/f37334e5/attachment.html
More information about the rules-users
mailing list