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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to