You did not pass a Map object to the session object. See the API StatefulKnowledgeSession, putGlobal.<br>-W<br><br><br><div class="gmail_quote">On 4 July 2011 16:21, esstrata <span dir="ltr"><<a href="mailto:esstrata@yahoo.es">esstrata@yahoo.es</a>></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;">Yes, I used eval.<br>
In fact this is the error I'm getting<br>
<br>
org.drools.RuntimeDroolsException: productMap.containsKey($pid) == false :<br>
[Error: unable to access property (null parent): containsKey]<br>
[Near : {... Unknown ....}]<br>
<br>
And this is the line<br>
eval(productMap.containsKey($pid) == false)<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/check-whether-a-key-is-present-in-global-Map-i-e-mimicking-containsKey-behavior-tp3137610p3137694.html" target="_blank">http://drools.46999.n3.nabble.com/check-whether-a-key-is-present-in-global-Map-i-e-mimicking-containsKey-behavior-tp3137610p3137694.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>