You may want to wrap your map in another class that you assert into the engines working memory.

 

Then you can access the contents of the map with an eval

 

eval(myMapWrapper.get(“KEY”).equals(“SOME_VALUE”))

 

 

Barry

 

 

From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Sascha
Sent: Wednesday, December 03, 2008 7:32 AM
To: Rules Users List
Subject: [rules-users] accessing hashmap from condition on decision table

 

i got a java class with a hashmap containing string keys and values.

 

i want to access the values from a condition on a decision table.

 

e.g. map.get("mykey")

 

how can i do this?

 

i tried but got an

unknown:7:50 Unexpected token

error.

greetings sascha