Hello,<br>what I want to do, is to calculate on object&#39;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 &quot;r1&quot;<br>    when<br>        p : CObj ( k + n &lt;= 1000)<br>    then<br>        System.out.println(&quot;We love Drools :)&quot;);<br>
end<br><br>Why can&#39;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>