<br>&nbsp;&nbsp;&nbsp; Unfortunately, in 3.0.6, the only way is using eval in a subsequent pattern:<br><br>when<br>&nbsp;&nbsp;&nbsp; Tree( $old : old, $new : new )<br>&nbsp;&nbsp;&nbsp; eval( $old.intValue() &gt; $new.intValue() )<br>then<br>&nbsp;&nbsp;&nbsp; // do something<br>end
<br><br>&nbsp;&nbsp;&nbsp; Also, remember that 3.0.6 auto-wraps any primitive value, so the need to use the .intValue() method calls as you see in the eval() above.<br><br>&nbsp;&nbsp;&nbsp; 4.0 shall be released later this month, so, hopefully we will not have to deal with 
3.0.x limitations for much longer.<br><br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2007/6/7, Wagner Rick - rwagne &lt;<a href="mailto:Rick.Wagner@acxiom.com">Rick.Wagner@acxiom.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Edson,<br><br>Thanks much, but regrettably I&#39;m a 3.0.6 user for now.&nbsp;&nbsp;Can you offer<br>any tips for that version?<br><br>(Sorry to be backward looking-- I&#39;ll upgrade!)<br><br>Thanks,<br><br>Rick<br><br><br>&gt;Assuming you are using 
4.0, just bind one and compare to the other:<br>&gt;<br>&gt;rule XXX<br>&gt;when<br>&gt;&nbsp;&nbsp; Tree( $new : newNumberLeaves, oldNumberLeaves &gt; $new )<br>&gt;then<br>&gt;&nbsp;&nbsp; // do something<br>&gt;end<br>*************************************************************************
<br>The information contained in this communication is confidential, is<br>intended only for the use of the recipient named above, and may be<br>legally privileged.<br><br>If the reader of this message is not the intended recipient, you are
<br>hereby notified that any dissemination, distribution or copying of this<br>communication is strictly prohibited.<br><br>If you have received this communication in error, please resend this<br>communication to the sender and delete the original message or any copy
<br>of it from your computer system.<br><br>Thank you.<br>*************************************************************************<br><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli
<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>