<div>Hi, I am using Drools 3.0.6, and facing a peculiar problem.</div>
<div>&nbsp;</div>
<div>My rule:</div>
<div>&nbsp;</div>
<div><b><font color="#960000" size="2">
<p align="left">rule</p></font></b><font size="2"> </font><font color="#008000" size="2">&quot;Calculate Business profit,1&quot;<strong><br></strong></font><b><font color="#960000" size="2">salience</font></b><font size="2">
 1000
<p align="left"></p></font><font color="#960000" size="2"><strong>when<br><br></strong></font><font size="2"><strong>EMIAgainstProperty ( BP1 : refBP1 )<br></strong>emi : EMIAgainstProperty ( businessProfit2 &gt; BP1 ) 
<p align="left"></p></font><b><font color="#960000" size="2">then</font></b><font size="2"> <strong><br></strong>System.out.println(</font><font color="#008000" size="2">&quot; BP &quot;</font><font size="2">+(emi.getBusinessProfit1
()+emi.getBusinessProfit2())/2);<strong><br></strong>emi.setBusinessProfit((emi.getBusinessProfit1()+emi.getBusinessProfit2())/2);<strong><br></strong></font><b><font color="#960000" size="2">end</font></b>
<p align="left"><b><font color="#960000" size="2"></font></b>&nbsp;</p>
<p align="left"><font color="#960000" size="2"><font color="#000000">The above line in bold inside the condition part seem to create problem for rule evaluation. WHen i have this, the rule does not show up in the Agenda view, hence i dont see the console print in the action part. As soon as i remove this line and replace BP1 with 
1.5 in the second line, i see the rule being fired.</font></font></p>
<p align="left"><font size="2">As far as i understand, I am doing a declaration to set refBP1 an object attribute to BP1, which i later use.What is that i am missing here? My fact has proper getter and setters for refBP1 attribute.
</font></p>
<p align="left"><font size="2"></font>&nbsp;</p>
<p align="left"><font size="2">Thanks</font></p>
<p align="left"><font size="2">Natraj <font color="#960000"></font></font></p></div>