<div>I am facing some serious blocking issues while writing few rules. In the rule below, a1, a2 are Double objects. When i have the first statement in the rule " EMIAgainstProperty( obj : a1 )", the rule does not fire....when i comment and re phrase the second line as emi : EMIAgainstProperty( a2 >= (
<b><font color="#960000" size="2">new</font></b><font size="2"> Double(10* 1.5 )) ), the rule is fired.</font></div>
<div><font size="2"></font> </div>
<div><font size="2">Why is the first line making the rule not to fire. I have reported a similar problem yesterday, but could not find a resolution. On the other hand, i am unable to refer a1 directly to say a1.doubleValue
() in the second line, it throws up and error. Any help??? What is the way out? </font></div>
<div><b><font color="#960000" size="2">
<p align="left">rule</p></font></b><font size="2"> </font><font color="#008000" size="2">"Test"</font><font size="2">
<p align="left"></p></font><b><font color="#960000" size="2">when</font></b><font size="2">
<p align="left">EMIAgainstProperty( obj : a1 )</p>
<p align="left">emi : EMIAgainstProperty( a2 >= ( </p></font><b><font color="#960000" size="2">new</font></b><font size="2"> Double(obj.doubleValue() * 1.5 )) )
<p align="left"></p></font><b><font color="#960000" size="2">then</font></b><font size="2">
<p align="left">System.out.println(</p></font><font color="#008000" size="2">" Passed "</font><font size="2">);</font><b><font color="#960000" size="2">
<p align="left">end</p></font></b></div>