Re: [rules-users] Do really support the containsKey() function on maps?

2011-08-20 Thread Wolfgang Laun
What is the class of $ldapResponseMap.get("zimbraDomainName")? 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()? Did you explore the truth of the eval expression co

Re: [rules-users] Do really support the containsKey() function on maps?

2011-08-20 Thread dvsnmurty
Hello Edson/Wolfgang, Thanks for the reply. I am stuck with 5.0.1 in our company. Would the map expression that you gave work with 5.0.1? I tried to reason it out if there is anything wrong with my logic itself, but can think of any. Essentially, I have a map of Map type, where

Re: [rules-users] Do really support the containsKey() function on maps?

2011-08-20 Thread Edson Tirelli
I think your data is somehow not matching, but you can try to simplify your rule like this (assuming Drools 5.2): rule "transport" when $pfMapType : MapType( name == "transport" ) $inputKey : InputKey( email == true ) $ldapResponseMap : Map( this["zimbraMailDeliveryAdd

Re: [rules-users] Do really support the containsKey() function on maps?

2011-08-20 Thread dvsnmurty
Hello Wolfgang, Thanks for the quick reply. So if equals($inputKey) is the culprit, how can I modify the rule to make it work? My best guess is to do something like this: rule "transport" when $pfMapType : MapType( name == "transport" ) $inputKey : InputKey( email == tru

Re: [rules-users] Do really support the containsKey() function on maps?

2011-08-19 Thread Wolfgang Laun
Try rule "transport" without the eval and print all components of the boolean expression in the consequence. This will show you where it fails. (My money would be on the equals($inputKey) comparisons.) -W On 20 August 2011 01:36, dvsnmurty wrote: > Hello all, > I am having trouble with the foll

Re: [rules-users] Do really support the containsKey() function on maps?

2011-08-19 Thread dvsnmurty
Forgot to tell you. There is no exception on the logs. Just the rule is not setting the flag in the THEN portion of the rule. -- View this message in context: http://drools.46999.n3.nabble.com/Do-really-support-the-containsKey-function-on-maps-tp3269570p3269594.html Sent from the Drools: User f

[rules-users] Do really support the containsKey() function on maps?

2011-08-19 Thread dvsnmurty
Hello all, I am having trouble with the following drools file: === rule "vam" when $pfMapType : MapType( name == "vam" ) $inputKey : InputKey( email == true ) $ldapResponseMap : Map() then $pfMapType.s