<div><br></div><div>   Hi Tom,</div><div><br></div><div>   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:</div>
<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: Calibri, sans-serif; "><div>                MortageInsurance{ getMICompanyMarketClassification() in (“2”, “3”) }</div>
<div><br></div></span></div><div>     Edson</div><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>
<font face="Calibri, sans-serif" size="2">
<div>In the following rule, the element MICompanyMarketClassification is capitalized due to the MI portion being an acronym for Mortgage Insurance. </div>
<div>This comes from our enterprise data model and is not something I can change.</div>
<div> </div>
<div>rule “R1234”</div>
<div>        dialect “java”</div>
<div>        when</div>
<div>                MortageInsurance{ MICompanyMarketClassification in (“2”, “3”) }</div>
<div>        then </div>
<div>                system.out.printLn(“something”);</div>
<div>end</div>
<div> </div>
<div>The rule refuses to compile, giving a message “Unable to Analyse Expression MICompanyMarketClassification == &quot;2&quot; || MICompanyMarketClassification == &quot;3&quot;:</div>
<div>[Error: no such identifier: MICompanyMarketClassification]</div>
<div>[Near : {... MICompanyMarketClassification ....}]”</div>
<div> </div>
<div>I assume this is caused by the capitalized first letter?</div>
<div>Anything I can do to fix the issue or work around it?</div>
<div> </div>
<div>Drools 5.2 community edition</div>
<div style="margin-top:5pt;margin-bottom:5pt"><font face="Georgia, serif" size="2" color="#365F91"><b>Tom Murphy<br>

<br>

</b><font face="Verdana, sans-serif" size="1" color="#000000">Systems Architect<br>

Wells Fargo HCFG - CORE Deal Decisioning Platform<br>

<br>

<br>

<br>

</font><font face="Verdana, sans-serif" size="1" color="#7F7F7F">800 S. Jordan Creek Parkway | West Des Moines, IA 50266<br>

MAC: X2301-01B<br>

</font><font face="Verdana, sans-serif" size="1" color="#7F7F7F">Office: 515 324 4853 | Mobile: 515 423 4334<br>

<br>

</font><a href="mailto:tom.e.murphy@wellsfargo.com" target="_blank"><font face="Verdana, sans-serif" size="1" color="#0000FF"><u>tom.e.murphy@wellsfargo.com</u></font></a><br>

<br>

<font face="Verdana, sans-serif" size="1" 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.</font></font></div>
<div><font color="#1F497D"> </font></div>
<div> </div>
<div> </div>
<div> </div>
</font>
</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>