[rules-users] how to ensure that one rule only is executed once?
yong zhao
cluncao at yahoo.com.cn
Fri Mar 18 11:23:08 EDT 2011
Hi
I just try to uses jboss rules in our projects. I met a question. for example
package sample
rule "rule 1"
when
$o:Order (amount>100 and amount<200);
then
$o.setPrice($o.getPrice()-10);
end
rule "rule 2"
when
$o:Order (amount>200);
then
$o.setPrice($o.getPrice()-20);
end
if the fact , order's amount is 210. then the rule2 will be executed, then the
rule1 will be fired . I want to stop the session once some rule is executed or
how to control the rule flow.
thanks in advance
-Yong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110318/f01f7737/attachment.html
More information about the rules-users
mailing list