Assuming the row number indicates the sequence of your rules add the salience attribute and have it &quot;use reverse row numbers&quot;.<br><br>Then add an additional constraint that checks that &quot;fee&quot; has not been set; e.g. &quot;navclass( fees &gt; -1 )&quot; or &quot;navclass( hasFeeBeenSet == false )&quot;<br>
<br>As you have it now, all rules that match the given data will execute, so in your example &quot;txntype==buy&quot; matches rule 6 too. You cannot control the order rules&#39; RHS execute with the same salience value (default is 0).<br>
<br>If you only add salience but not the additional check that &quot;fee&quot; has not been set you will be able to control the order the rules&#39; RHS execute but not prevent later rules from firing after the earlier ones.<br>
<br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 28 August 2012 10:38, tanug <span dir="ltr">&lt;<a href="mailto:tanu.gupta@rupeelog.com" target="_blank">tanu.gupta@rupeelog.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Attached here is the complete screenshot of the decision table.<br>
<br>
i am not using salience, so all rules should have same salience of 0<br>
<br>
I understand that in such cases, the conflict resolution strategy is<br>
&#39;specificity&#39;.<br>
<br>
But for the following case, when i run test scenario with following values:<br>
family == mehta<br>
clientid ==  shailesh<br>
portfolio == exe<br>
txntype == buy<br>
scrip == acc<br>
i get the rule firing sequence as 7-9-8 and 6 and I get 10 in my fees<br>
variable.<br>
<br>
but if I remove rule 6, the rules get fired in the following order - 7-9-8<br>
and I get 100 in my fees variable.<br>
This second case shows that it is indeed following the specificity rule.<br>
<br>
Is it possible to know what conflict resolution strategy is being used in<br>
guvnor? in eclipse?<br>
<br>
<a href="http://drools.46999.n3.nabble.com/file/n4019414/Capture4.png" target="_blank">http://drools.46999.n3.nabble.com/file/n4019414/Capture4.png</a><br>
<br>
Many thanks in advance<br>
<br>
Tanu<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Understanding-Rules-Firing-Sequence-tp4019409p4019414.html" target="_blank">http://drools.46999.n3.nabble.com/Understanding-Rules-Firing-Sequence-tp4019409p4019414.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>