<br> Unfortunately, in 3.0.6, the only way is using eval in a subsequent pattern:<br><br>when<br> Tree( $old : old, $new : new )<br> eval( $old.intValue() > $new.intValue() )<br>then<br> // do something<br>end
<br><br> 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> 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> []s<br> Edson<br><br><div><span class="gmail_quote">2007/6/7, Wagner Rick - rwagne <<a href="mailto:Rick.Wagner@acxiom.com">Rick.Wagner@acxiom.com</a>>:</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'm a 3.0.6 user for now. Can you offer<br>any tips for that version?<br><br>(Sorry to be backward looking-- I'll upgrade!)<br><br>Thanks,<br><br>Rick<br><br><br>>Assuming you are using
4.0, just bind one and compare to the other:<br>><br>>rule XXX<br>>when<br>> Tree( $new : newNumberLeaves, oldNumberLeaves > $new )<br>>then<br>> // do something<br>>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> Edson Tirelli
<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>