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.

Mark
Shyam, Pallav (MSCIBARRA) wrote:
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.


_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users