<div><br></div><div>   I think your data is somehow not matching, but you can try to simplify your rule like this (assuming Drools 5.2):</div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">rule &quot;transport&quot;</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">   when<br>       $pfMapType : MapType( name  ==  &quot;transport&quot; )<br>       $inputKey : InputKey( email == true )<br>
       $ldapResponseMap : Map( this[&quot;zimbraMailDeliveryAddress&quot;] == $inputKey ||<br>                                               this[&quot;zimbraDomainName&quot;] == $inputKey )<br>   then<br>       $pfMapType.setQueryFilterCheck(true);<br>
end</span></div><div><br></div><div>   Edson</div><br><br><div class="gmail_quote">2011/8/20 dvsnmurty <span dir="ltr">&lt;<a href="mailto:murty.devarakonda@teamaol.com">murty.devarakonda@teamaol.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello Wolfgang,<br>
Thanks for the quick reply.  So if equals($inputKey) is the culprit, how can<br>
I modify the rule to make it work?  My best guess is to do something like<br>
this:<br>
<div class="im"><br>
rule &quot;transport&quot;<br>
    when<br>
        $pfMapType : MapType( name  ==  &quot;transport&quot; )<br>
        $inputKey : InputKey( email == true )<br>
        $ldapResponseMap : Map()<br>
</div>    then<br>
        updateTransportMap($pfMapType, $inputKey, $ldapResponseMap)<br>
end<br>
<br>
And then add the function updateTransportMap() to do the required checks<br>
that I am doing in the eval above.  Do you think of any other way?<br>
<br>
Regards,<br>
Murty.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Do-really-support-the-containsKey-function-on-maps-tp3269570p3270684.html" target="_blank">http://drools.46999.n3.nabble.com/Do-really-support-the-containsKey-function-on-maps-tp3269570p3270684.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools: User forum 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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>