Hi,<br><br><br> Suppose I have a class Foo with integers a, b and c ( methods getA getB and getC respectively ) and I Want to check if an object of Foo satisfies<br><br>a - (b + c) > 0<br><br>Is this the best way I go about doing this ?<br>
<br>rule "Foo check"<br> when<br> Foo( varA : a , varB:b, varC:c )<br> eval( varA - (varB + varC) > 0 )<br> then <br> <do actions><br> end<br><br><br><br>Writing this as <br>
<br>rule "Foo check"<br>
when<br>
Foo( a - (b + c) > 0 )<br> then <br>
<do actions><br>
end<br><br>doesnt seem to work. Its not able to find the variables (a, b and c ) from the getA getB and get C methods.<br><br>Thanks<br><br>Jai <br>