Hello,<br>what I want to do, is to calculate on object's attributes in WHEN section of rule. Can I do it?<br><br>For example:<br><br>class CObj<br>{<br> private int k;<br> private int n;<br><br>
// setters and getters<br>}<br><br>Now what I want to do is:<br><br>rule "r1"<br> when<br> p : CObj ( k + n <= 1000)<br> then<br> System.out.println("We love Drools :)");<br>
end<br><br>Why can't I construct conditions like in Java, or C++ (with calculations in conditions)? How can I achieve my goal?<br><br>Thx,<br>Tom.<br>