<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, 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> </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 <tirelli@post.com><br>To: Rules Users List <rules-users@lists.jboss.org><br>Sent: Wednesday, January 10, 2007 3:06:53 PM<br>Subject: Re: [rules-users] bounded variable...<br><br><div> Joel,<br><br> 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> when <br> megaTO:MegaTransferObject(other_EffectiveOrderTypeDsl == <br>Constants.NEW_COMPLETED_ORDER_TYPE, at:other_IsAdaAltaTraslado, <br>nm:orders_NewModem )<br> eval( nm.equals(Constants.FLAG_YES) ||
<br>(nm.equals(Constants.FLAG_NO) && at.equals(Constants.FLAG_YES)) )<br> then<br> menu.add(new String[]{Constants.SERVICE_ASSURANCE_TREE_MENU_DSL, <br>Constants.SERVICE_ASSURANCE_MENU_WARRANTY});<br>end<br><br> Seems you are doing great in pushing the limitations of drools 3.0. :)<br> This is also a limitation that is already solved in trunk for the <br>next release.<br><br> []s<br> Edson<br><br><br>Joel G. Rivera-González wrote:<br><br>> rule "modem_warranty_menu"<br>> when <br>> megaTO:MegaTransferObject(other_EffectiveOrderTypeDsl == <br>> Constants.NEW_COMPLETED_ORDER_TYPE,<br>> at:other_IsAdaAltaTraslado, nm:orders_NewModem ->
<br>> (nm.equals(Constants.FLAG_YES) || (nm.equals(Constants.FLAG_NO) && <br>> at.equals(Constants.FLAG_YES))))<br>> then<br>> menu.add(new <br>> String[]{Constants.SERVICE_ASSURANCE_TREE_MENU_DSL, <br>> Constants.SERVICE_ASSURANCE_MENU_WARRANTY});<br>> end<br>><br>> this rule cause a compilation error...<br>> the reason appears to be at:other_IsAdaAltaTraslado,<br>> why it doesnt allow me to have 2 bounded variables on the same rule?<br>> <br>> Joel G. Rivera-Gonzalez<br>> PRT<br>><br>> "The first 90% of a project takes 90% of the time, the last 10% takes <br>> the other 90% of the time" - Murphy's Law<br>><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>> <br>><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>