[rules-users] check whether a key is present in global Map, i.e. mimicking containsKey() behavior

Wolfgang Laun wolfgang.laun at gmail.com
Mon Jul 4 10:39:02 EDT 2011


You did not pass a Map object to the session object. See the API
StatefulKnowledgeSession, putGlobal.
-W


On 4 July 2011 16:21, esstrata <esstrata at yahoo.es> wrote:

> Yes, I used eval.
> In fact this is the error I'm getting
>
> org.drools.RuntimeDroolsException: productMap.containsKey($pid) == false :
> [Error: unable to access property (null parent): containsKey]
> [Near : {... Unknown ....}]
>
> And this is the line
> eval(productMap.containsKey($pid) == false)
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/check-whether-a-key-is-present-in-global-Map-i-e-mimicking-containsKey-behavior-tp3137610p3137694.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110704/cdfd3bc4/attachment.html 


More information about the rules-users mailing list