<div><br></div>   If one works and the other doesn&#39;t, then we have a problem. It must work if you make the first letter lowercase, as that is part of the javabeans spec.<div><br></div><div>   Feel free to open a JIRA and we will take a look at it.</div>
<div><br></div><div>   Edson<br><br><div class="gmail_quote">2011/7/26  <span dir="ltr">&lt;<a href="mailto:Tom.E.Murphy@wellsfargo.com">Tom.E.Murphy@wellsfargo.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Thanks Edson, however here is more info on the issue as I’ve been playing with it:<u></u><u></u></span></p>
<p><u></u><span style="font-size:11.0pt;color:#1F497D"><span>1.<span style="font:7.0pt &quot;Times New Roman&quot;">       </span></span></span><u></u><span style="font-size:11.0pt;color:#1F497D">I have other elements in other objects referenced within the same rule group that start with capital letters and they have no problem. Example:<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.25in"><span style="font-size:9.0pt;font-family:Consolas;color:black">, FHAMaxBaseMortgageWithToleranceAmt &lt; ($totalLoanAmt+$aggregateSubordinateFinancingAmt)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.25in"><span style="font-size:11.0pt;color:#1F497D">Compiles just fine in the same session.<u></u><u></u></span></p><p><u></u><span style="font-size:11.0pt;color:#1F497D"><span>2.<span style="font:7.0pt &quot;Times New Roman&quot;">       </span></span></span><u></u><span style="font-size:11.0pt;color:#1F497D">If I lower the first M to m to make it mICompanyMarketClassification, it compiles in 5.2 but does NOT compile in 5.0.1<u></u><u></u></span></p>
<p><u></u><span style="font-size:11.0pt;color:#1F497D"><span>3.<span style="font:7.0pt &quot;Times New Roman&quot;">       </span></span></span><u></u><span style="font-size:11.0pt;color:#1F497D">If I leave it as the capitalized MICompanyMarketClassification, it compiles in 5.0.1 but not 5.2<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Thoughts?<u></u><u></u></span></p><div class="im"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Georgia&quot;,&quot;serif&quot;;color:#365F91">Tom Murphy</span></b><span style="color:#1F497D"><br>
</span><span style="font-size:8.0pt;color:black"><br>Systems Architect<br>Wells Fargo HCFG - CORE Deal Decisioning Platform<br><br></span><span style="font-size:8.0pt;color:#7F7F7F"><br><br>800 S. Jordan Creek Parkway | West Des Moines, IA 50266<br>
MAC: X2301-01B</span><i><span style="color:#1F497D"><br></span></i><span style="font-size:8.0pt;color:#7F7F7F">Office: 515 324 4853 | Mobile: 515 423 4334<br></span><span style="font-size:8.0pt;color:#1F497D"><br><a href="mailto:tom.e.murphy@wellsfargo.com" target="_blank">tom.e.murphy@wellsfargo.com</a><br>
</span><span style="font-size:11.0pt;color:black"><br></span><span style="font-size:7.0pt;color:#44464A">This transmission may contain information that is confidential and/or proprietary. If you are not the individual or entity to which it is addressed, note that any review, disclosure, copying, retransmission, or other use is strictly prohibited. If you received this transmission in error, please notify the sender immediately and delete the material from your system.</span><span style="font-size:8.0pt;color:#7F7F7F"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p></div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a> [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>] <b>On Behalf Of </b>Edson Tirelli<br>
<b>Sent:</b> Tuesday, July 26, 2011 7:45 PM<br><b>To:</b> Rules Users List<br><b>Subject:</b> Re: [rules-users] Capitalized element names<u></u><u></u></span></p></div><div><div></div><div class="h5"><p class="MsoNormal">
<u></u> <u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">   Hi Tom,<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">   I&#39;ve seen this before and AFAIK, the javaBeans spec always transforms the first letter to lowercase when converting a get method into a property name. We can try to address this in future releases, maybe falling back to uppercase if the lower case property name lookup fails, but I don&#39;t think there is a solution to keep it as is. In 5.2. you can use the full method name instead, but not sure if that isn&#39;t event worse:<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><div><p class="MsoNormal"><span>                MortageInsurance{ getMICompanyMarketClassification() in (“2”, “3”) }<u></u><u></u></span></p></div><div><p class="MsoNormal">
<span><u></u> <u></u></span></p></div></div><div><p class="MsoNormal">     Edson<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p><div><p class="MsoNormal">2011/7/26 &lt;<a href="mailto:Tom.E.Murphy@wellsfargo.com" target="_blank">Tom.E.Murphy@wellsfargo.com</a>&gt;<u></u><u></u></p>
<div><div><p class="MsoNormal"><span style="font-size:10.0pt">In the following rule, the element MICompanyMarketClassification is capitalized due to the MI portion being an acronym for Mortgage Insurance. <u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.0pt">This comes from our enterprise data model and is not something I can change.<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt"> <u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.0pt">rule “R1234”<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt">        dialect “java”<u></u><u></u></span></p></div><div>
<p class="MsoNormal"><span style="font-size:10.0pt">        when<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt">                MortageInsurance{ MICompanyMarketClassification in (“2”, “3”) }<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.0pt">        then <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt">                system.out.printLn(“something”);<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.0pt">end<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt">The rule refuses to compile, giving a message “Unable to Analyse Expression MICompanyMarketClassification == &quot;2&quot; || MICompanyMarketClassification == &quot;3&quot;:<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.0pt">[Error: no such identifier: MICompanyMarketClassification]<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt">[Near : {... MICompanyMarketClassification ....}]”<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.0pt"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt">I assume this is caused by the capitalized first letter?<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.0pt">Anything I can do to fix the issue or work around it?<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt"> <u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.0pt">Drools 5.2 community edition<u></u><u></u></span></p></div><div style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Georgia&quot;,&quot;serif&quot;;color:#365F91">Tom Murphy<br>
<br></span></b><span style="font-size:7.5pt;color:black">Systems Architect<br>Wells Fargo HCFG - CORE Deal Decisioning Platform<br><br><br><br></span><span style="font-size:7.5pt;color:#7F7F7F">800 S. Jordan Creek Parkway | West Des Moines, IA 50266<br>
MAC: X2301-01B<br>Office: 515 324 4853 | Mobile: 515 423 4334<br><br></span><span style="font-size:10.0pt;font-family:&quot;Georgia&quot;,&quot;serif&quot;;color:#365F91"><a href="mailto:tom.e.murphy@wellsfargo.com" target="_blank"><span style="font-size:7.5pt">tom.e.murphy@wellsfargo.com</span></a><br>
<br></span><span style="font-size:7.5pt;color:#44464A">This transmission may contain information that is confidential and/or proprietary. If you are not the individual or entity to which it is addressed, note that any review, disclosure, copying, retransmission, or other use is strictly prohibited. If you received this transmission in error, please notify the sender immediately and delete the material from your system.</span><span style="font-size:10.0pt"><u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D"> </span><span style="font-size:10.0pt"><u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt"> <u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.0pt"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt"> <u></u><u></u></span></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt">
<br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><u></u><u></u></p>
</div><p class="MsoNormal"><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com" target="_blank">www.jboss.com</a><u></u><u></u></p></div>
</div></div></div><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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>