<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">well our product is very mature and its been ruining drools for quite some time...<br>so i need to change the versions to see if it give better performance and memory usage...<br>and while i need to rewrite the rules,&nbsp; the results need to be the same...<br>remember the main rule lib is about 2.4 megs but we have several other smaller rule files...so i can say we have over 3 megs of xml rules...<br>and thats BIG...<br><br>now the big question...<br>when is the next release scheduled?<br>we i'll be able to use the or the right way?<br><br>i'm inclined to wait for next version...<br><br><div>&nbsp;</div>Joel G. Rivera-Gonzalez<br>PRT<br><br>"The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time" - Murphy's Law<div style="font-family: times new roman,new york,times,serif;
 font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Edson Tirelli &lt;tirelli@post.com&gt;<br>To: Rules Users List &lt;rules-users@lists.jboss.org&gt;<br>Sent: Wednesday, January 10, 2007 3:06:53 PM<br>Subject: Re: [rules-users] bounded variable...<br><br><div>&nbsp;&nbsp;Joel,<br><br>&nbsp;&nbsp;In 3.0.x, you can not use inside a predicate, any other variable bound <br>in the same pattern, besides the one that is bound to the predicate. To <br>do that, you need to use an eval:<br><br>rule "modem_warranty_menu"<br>&nbsp;&nbsp;&nbsp;&nbsp;when&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;megaTO:MegaTransferObject(other_EffectiveOrderTypeDsl == <br>Constants.NEW_COMPLETED_ORDER_TYPE,&nbsp;&nbsp;at:other_IsAdaAltaTraslado, <br>nm:orders_NewModem )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eval( nm.equals(Constants.FLAG_YES) ||
 <br>(nm.equals(Constants.FLAG_NO) &amp;&amp; at.equals(Constants.FLAG_YES)) )<br>&nbsp;&nbsp;&nbsp;&nbsp;then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;menu.add(new String[]{Constants.SERVICE_ASSURANCE_TREE_MENU_DSL, <br>Constants.SERVICE_ASSURANCE_MENU_WARRANTY});<br>end<br><br>&nbsp;&nbsp;&nbsp;&nbsp;Seems you are doing great in pushing the limitations of drools 3.0. :)<br>&nbsp;&nbsp;&nbsp;&nbsp;This is also a limitation that is already solved in trunk for the <br>next release.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;[]s<br>&nbsp;&nbsp;&nbsp;&nbsp;Edson<br><br><br>Joel G. Rivera-González wrote:<br><br>&gt; rule "modem_warranty_menu"<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; when&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; megaTO:MegaTransferObject(other_EffectiveOrderTypeDsl == <br>&gt; Constants.NEW_COMPLETED_ORDER_TYPE,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at:other_IsAdaAltaTraslado, nm:orders_NewModem -&gt;
 <br>&gt; (nm.equals(Constants.FLAG_YES) || (nm.equals(Constants.FLAG_NO) &amp;&amp; <br>&gt; at.equals(Constants.FLAG_YES))))<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; then<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; menu.add(new <br>&gt; String[]{Constants.SERVICE_ASSURANCE_TREE_MENU_DSL, <br>&gt; Constants.SERVICE_ASSURANCE_MENU_WARRANTY});<br>&gt; end<br>&gt;<br>&gt; this rule cause a compilation error...<br>&gt; the reason appears to be at:other_IsAdaAltaTraslado,<br>&gt; why it doesnt allow me to have 2 bounded variables on the same rule?<br>&gt;&nbsp;&nbsp;<br>&gt; Joel G. Rivera-Gonzalez<br>&gt; PRT<br>&gt;<br>&gt; "The first 90% of a project takes 90% of the time, the last 10% takes <br>&gt; the other 90% of the time" - Murphy's Law<br>&gt;<br>&gt;------------------------------------------------------------------------<br>&gt;<br>&gt;_______________________________________________<br>&gt;rules-users mailing list<br>&gt;rules-users@lists.jboss.org<br>&gt;<a
 target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>&gt;&nbsp;&nbsp;<br>&gt;<br><br><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3124-6000<br> Mobile: +55 11 9218-4151<br> JBoss, a division of Red Hat @ <a target="_blank" href="http://www.jboss.com">www.jboss.com</a><br><br><br>_______________________________________________<br>rules-users mailing list<br>rules-users@lists.jboss.org<br><a target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div></div><br></div></div></body></html>