[rules-users] Can an Object inside a map be used in guvnor

abhinay_agarwal abhinay_agarwal at infosys.com
Wed Mar 20 01:29:38 EDT 2013


For example,

I have a HasMap

Map<String, Integer> map = new HashMap<String,Integer>();
map.put("amount",12);

My DRL is as follows :

when
       $h : HashMap(this["amount"]!=null)
then
      //something

or

when
       $h : HashMap(this["amount"]> 10)
then
      //something

i just want the object inserted inside the map to be used. I know this can
be done usind DRL but can this be achieved in GUVNOR ???



--
View this message in context: http://drools.46999.n3.nabble.com/Can-an-Object-inside-a-map-be-used-in-guvnor-tp4022907.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list