<br>    There was a limitation on MVEL on using constants as keys. I know it was fixed, but not sure about the version. Which specific version of MVEL are you using? (1.3.xx)<br><br>    Edson<br><br><div class="gmail_quote">
2010/1/30 @ndré <span dir="ltr">&lt;<a href="mailto:andre@bonkowski.net">andre@bonkowski.net</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi all!<br>
<br>
I&#39;m writing a rule that contains the following statement:<br>
<br>
$agreementOffer:AgreementOffer($logicalFixedNumber:configurationParameters[&quot;6410&quot;])<br>
<br>
This results of this is not surprisingly that both $agreementOffer and<br>
$logicalFixedNumber get assigned a value.<br>
Instead of using the &quot;magic value&quot; 6410, I want to use ParameterId constant<br>
class, which implements the toString() to return the value.<br>
<br>
I have tried several different ways to refer to the constant but without<br>
luck. The errors says:<br>
<br>
Unable to create Field Extractor for<br>
&#39;configurationParameters[ParameterId.LOGICAL_NUMBER_FIXED]<br>
I have also tried to extract the value of the<br>
ParameterId.LOGICAL_NUMBER_FIXED into a local variable, which I can see<br>
prints the correct value, but the error says the same:<br>
<br>
Unable to create Field Extractor for<br>
&#39;configurationParameters[$logicalNumberFixedConstant]<br>
<br>
Do anyone understand what is happening here and what I do wrong?<br>
<br>
I&#39;m are still on the JKD 1.4, and uses MVEL 1.3<br>
<br>
Thanks,<br>
<br>
@ndré<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/Trouble-using-constants-to-access-Maps-tp178720p178720.html" target="_blank">http://n3.nabble.com/Trouble-using-constants-to-access-Maps-tp178720p178720.html</a><br>

Sent from the Drools - Dev mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</font></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>