<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">1. i downloaded the latest release from the download page...<br>2. just one MTO...the returning arrayList should have arround 10 values.<br><br>will do an example and (class and ruleFile) and send it to your email...<br><br>thanks<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: Tuesday, January 9, 2007 3:29:26 PM<br>Subject: Re: [rules-users] About String..."==" same as
 ".equals"?<br><br><div><br>&nbsp;&nbsp; Joel,<br><br>&nbsp;&nbsp; Your rules seems to be correct.<br>&nbsp;&nbsp; Questions:<br><br>1. What JBRules version are you using?<br><br>2. How many MTO instances are you asserting in the working memory, that <br>would match each Pattern in your rule?<br><br>&nbsp;&nbsp; It may be an issue with "or". Can you provide a self contained test <br>for me to investigate?<br><br>&nbsp;&nbsp; Thank you<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Edson<br><br>Joel G. Rivera-González wrote:<br><br>&gt; i have to be doing something wrong...but it make no sense...<br>&gt; a MegaTransferObject is asserted.<br>&gt;<br>&gt; case1: No rules fired.<br>&gt; rule "dtv_discount_request"<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; when<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MegaTransferObject(other_AccountType == null) or<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MegaTransferObject(other_AccountType == <br>&gt;
 Constants.PHONE_TYPE_RESIDENTIAL)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MegaTransferObject(other_HasDtvDiscountRequest == false)<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_DTV_DISCOUNT_REQUEST});<br>&gt; end<br>&gt;<br>&gt; case 2: no rule fired.<br>&gt;<br>&gt; rule "dtv_discount_request"<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; when<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MegaTransferObject(other_AccountType == null) or<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MegaTransferObject(other_AccountType == "RMS")<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MegaTransferObject(other_HasDtvDiscountRequest == false)<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_DTV_DISCOUNT_REQUEST});<br>&gt; end<br>&gt;<br>&gt; case 3: rule fired<br>&gt;&nbsp;&nbsp;<br>&gt; rule "dtv_discount_request"<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; when<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; megaTO:MegaTransferObject(other_AccountType == "RMS")<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; megaTO:MegaTransferObject(other_HasDtvDiscountRequest == false)<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_DTV_DISCOUNT_REQUEST});<br>&gt; end<br>&gt;<br>&gt; i really dont get it...<br>&gt; i must not be getting something...<br>&gt; help...<br>&gt;<br>&gt;<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; ----- Original Message ----<br>&gt; From: Edson Tirelli &lt;tirelli@post.com&gt;<br>&gt; To: Rules Users List &lt;rules-users@lists.jboss.org&gt;<br>&gt; Sent: Tuesday, January 9, 2007 7:26:35 AM<br>&gt; Subject: Re: [rules-users] About String..."==" same as ".equals"?<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Joel,<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;This is the correct syntax and it works (at least we didn't get a<br>&gt; report for it not working yet):<br>&gt;<br>&gt; Object(variable == Constants.value)<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Can you please elaborate about the problem you are having in order<br>&gt; for us to help solving it? If it is a bug we need to fix.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Thank you,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Edson<br>&gt;<br>&gt; Joel G. Rivera-González wrote:<br>&gt;<br>&gt; &gt; most (if not all) of my rules will have conditions like
 this:<br>&gt; &gt; Object(variable == Constants.value)<br>&gt; &gt; this is not working...<br>&gt; &gt; BUT if i change the Constants.value to corresponding value from the<br>&gt; &gt; constants class it will work...<br>&gt; &gt; is there any other way other than this Object(a:variable-&gt;&nbsp;&nbsp;<br>&gt; &gt; (a.equals(Constants.value)) to do it?<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;<br>&gt; &gt; Joel G. Rivera-Gonzalez<br>&gt; &gt; PRT<br>&gt; &gt;<br>&gt; &gt; "The first 90% of a project takes 90% of the time, the last 10% takes<br>&gt; &gt; the other 90% of the time" - Murphy's Law<br>&gt; &gt;<br>&gt; &gt;------------------------------------------------------------------------<br>&gt; &gt;<br>&gt; &gt;_______________________________________________<br>&gt; &gt;rules-users mailing list<br>&gt; &gt;rules-users@lists.jboss.org<br>&gt; &gt;<a target="_blank"
 href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>&gt; &gt;&nbsp;&nbsp;<br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt; -- <br>&gt; Edson Tirelli<br>&gt; Software Engineer - JBoss Rules Core Developer<br>&gt; Office: +55 11 3124-6000<br>&gt; Mobile: +55 11 9218-4151<br>&gt; JBoss, a division of Red Hat @ <a target="_blank" href="http://www.jboss.com">www.jboss.com</a> &lt;<a target="_blank" href="http://www.jboss.com">http://www.jboss.com</a>&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;<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>