What is the class of $ldapResponseMap.get(&quot;zimbraDomainName&quot;)? Is it really an InputKey? And if so, how is equals() defined in this class? Does it return true for two different objects, one inserted in Working Memory and another one in the Map()?<br>
<br>Did you explore the truth of the eval expression components?<br><br>-W<br><br><br><div class="gmail_quote">On 20 August 2011 18:55, dvsnmurty <span dir="ltr">&lt;<a href="mailto:murty.devarakonda@teamaol.com">murty.devarakonda@teamaol.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello Edson/Wolfgang,<br>
Thanks for the reply.  I am stuck with 5.0.1 in our company.  Would the map<br>
expression that you gave work with 5.0.1?  I tried to reason it out if there<br>
is anything wrong with my logic itself, but can think of any.  Essentially,<br>
I have a map of Map&amp;lt;String, String&amp;gt; type, where I want to see if a key<br>
is present and if so, compare the value of that key to an expected string.<br>
For me it sounds like a simple logic, but please correct me if I am wrong<br>
here.  May be my logic is not correct in drools semantics????<br>
<br>
Here is what I want to do in Java terms:<br>
<br>
if( ldapResponseMap.get(&quot;zimbraMailDeliveryAddress&quot;).equals(&quot;abc&quot;) ) {<br>
        pfMapType.setQueryFilterCheck(true);<br>
}  else {<br>
        if( ldapResponseMap.containsKey(&quot;zimbraDomainName&quot;) ) {<br>
                if(ldapResponseMap.get(&quot;zimbraDomainName&quot;).equals(&quot;abc&quot;) {<br>
                        pfMapType.setQueryFilterCheck(true);<br>
                }<br>
        }<br>
}<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-tp3269570p3270932.html" target="_blank">http://drools.46999.n3.nabble.com/Do-really-support-the-containsKey-function-on-maps-tp3269570p3270932.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>