<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div>Hi</div><div><br></div><div>I just try to uses jboss rules in our projects. I met a question. for example</div><div><br></div><div>package sample</div><div><br></div><div>rule "rule 1"</div><div>when&nbsp;</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>$o:Order (amount&gt;100 and amount&lt;200);</div><div>&nbsp;then&nbsp;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$o.setPrice($o.getPrice()-10);</div><div>end</div><div><br></div><div><div>rule "rule 2"</div><div>when&nbsp;</div><div>&nbsp;<span class="Apple-tab-span" style="white-space: pre; ">        </span>$o:Order (amount&gt;200);</div><div>&nbsp;then&nbsp;</div><div><span class="Apple-tab-span" style="white-space: pre; ">
        </span>$o.setPrice($o.getPrice()-20);</div><div>end</div><div><br></div><div>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.&nbsp;</div><div>thanks in advance</div><div><br></div><div>-Yong</div><div><br></div><div><br></div><div><br></div></div><div style="position:fixed"></div>


</div><br>






      &nbsp;</body></html>