I&#39;m not 100% sure, but you might need to use the MVEL dialect to access maps in this way.<br><br><div class="gmail_quote">On 4 April 2011 21:51, AberAber <span dir="ltr">&lt;<a href="mailto:maryellenbench@hotmail.com">maryellenbench@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Using Drools 5.1.1<br>
<br>
Is there anything I can do except to make a method/property in my original<br>
class to do the .get into map for me?  According to drools specs this should<br>
work.<br>
<br>
This gets the error:<br>
<br>
rule &quot;Find Lowest Score&quot;<br>
salience 100<br>
when<br>
        $aobject : DataObject($index: extracted.indexString)<br>
        $node : Information($classScore : adjustedScores[$index])<br>
then<br>
        System.out.println(&quot; Class score &quot; + $classScore);<br>
end<br>
<br>
Description     Resource        Path    Location        Type<br>
BuildError: Unable to create Field Extractor for &#39;adjustedScores[$index]&#39;<br>
droolsLocal.drl /src/main/resources     line 30 Drools Error<br>
<br>
<br>
This works:<br>
rule &quot;Find Lowest Score&quot;<br>
salience 100<br>
when<br>
        $aobject : DataObject($index: extracted.indexString)<br>
        $node : Information($classScore : adjustedScores[&quot;ASTRING&quot;])<br>
then<br>
        System.out.println(&quot; Class score &quot; + $classScore);<br>
end<br>
<font color="#888888"><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Map-Accessor-not-allowing-using-a-parameter-gets-field-extractor-error-tp2776894p2776894.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Map-Accessor-not-allowing-using-a-parameter-gets-field-extractor-error-tp2776894p2776894.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<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>
</font></blockquote></div><br>