<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000'>The learning is : for your case, where all your row in your table have an implicit priority and business logic, yes, don't hope that drools engine will guess that by itself. <br><br>As far i understand, you expect the rules to trigger from top to bottom (or most specific to less), and stop when a rule has fired.<br>Your problem is that you have a lot of rules with shared conditions which have different (and conflicting) actions. Using "specificity" strategy is a good idea (never tried, but it looks great), but that won't prevent other (less "specific") rules to fired after the first specific rules has fired. In addition to "specific" strategy, you have to add a condition to test if your "fees" field is set or not. If you add a common column (you can hide it under guvnor) that test "fees == null", then the first rule exec (so the most specific one) will set this field and prevent other rules to fire.<br><br>So, please let drools manage the rules firing, but tune your rules/facts to fit your specific business logic, under drools (or any other expert-system) constraints.<br><br><br><hr id="zwchr"><div style="color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>De: </b>"tanug" &lt;tanu.gupta@rupeelog.com&gt;<br><b>À: </b>rules-users@lists.jboss.org<br><b>Envoyé: </b>Mardi 28 Août 2012 13:44:25<br><b>Objet: </b>Re: [rules-users] Understanding Rules Firing Sequence<br><br>Thanks everyone for your suggestions.<br><br>so, basically, the learning is :<br>I should not leave rule firing to Drools, and have a proper priority and<br>exit condition.<br>And, I cannot rely on "specificity" for rule selection (i was so hoping it<br>would work)<br><br><br>Thanks again,<br>best regards<br>Tanu<br><br><br><br><br>--<br>View this message in context: http://drools.46999.n3.nabble.com/Understanding-Rules-Firing-Sequence-tp4019409p4019416.html<br>Sent from the Drools: User forum mailing list archive at Nabble.com.<br>_______________________________________________<br>rules-users mailing list<br>rules-users@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/rules-users<br></div><br></div></body></html>