<DIV style="font-family:Verdana, sans-serif; font-size:10pt;"><B><FONT color="#960000" size="2">
<P align="left">rule</P></FONT></B><FONT size="2"> </FONT><FONT color="#008000" size="2">"A Rule"</FONT></DIV><FONT size="2">
<P align="left"></P></FONT><B><FONT color="#960000" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; when</FONT></B><FONT size="2">
<P align="left"></P></FONT><B><FONT color="#960000" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; not</FONT></B><FONT size="2"> LoanBean();
<P align="left"></P></FONT><B><FONT color="#960000" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then</FONT></B><FONT size="2">
<P align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LoanBean loan = </P></FONT><B><FONT color="#960000" size="2">new</FONT></B><FONT size="2"> LoanBean();
<P align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loan.setLoanId(</P></FONT><FONT color="#008000" size="2">"1"</FONT><FONT size="2">);
<P align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(</P></FONT><FONT color="#008000" size="2">"A rule"</FONT><FONT size="2">);
<P align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loan.setLoanId(</P></FONT><FONT color="#008000" size="2">"1"</FONT><FONT size="2">);
<P align="left"></P></FONT><FONT color="#808000" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT size="2"></FONT><B><FONT color="#960000" size="2">assert</FONT></B><FONT size="2">(loan);</FONT><B><FONT color="#960000" size="2">
<P align="left">end
</P><P align="left">&nbsp;
</P><P align="left"></P></FONT></B><B><FONT color="#960000" size="2">rule</FONT></B><FONT size="2"> </FONT><FONT color="#008000" size="2">"B Rule"</FONT><FONT size="2">
<P align="left"></P></FONT><B><FONT color="#960000" size="2">&nbsp;&nbsp;&nbsp; salience</FONT></B><FONT size="2"> 10
<P align="left"></P></FONT><B><FONT color="#960000" size="2">&nbsp;&nbsp;&nbsp; when</FONT></B><FONT size="2">
<P align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a:LoanBean(loanId == </P></FONT><FONT color="#008000" size="2">"1"</FONT><FONT size="2">);
<P align="left"></P></FONT><B><FONT color="#960000" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then</FONT></B><FONT size="2">
<P align="left">&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(</P></FONT><FONT color="#008000" size="2">"B Rule"</FONT><FONT size="2">);</FONT><FONT color="#960000" size="2">
<P align="left"><STRONG>end</STRONG>
</P><P align="left">&nbsp;
</P><P align="left">I have given sailence 10 for "B Rule". So it has to fire first, then only "A Rule" should fire. And also If B Rule is firing first, obviously it won't fire, since it won't match loanId == "1", which is set by A rule. But for me it's displaying as "A Rule" and then "B Rule".. how is it possible? Why salience has no effect on rule B?</P></FONT><BR>&nbsp;<BR><HR>Get email for your site ---&gt; http://www.everyone.net