[rules-users] How to use global hashmap in drools

bbarani bbarani at gmail.com
Wed Oct 30 13:11:10 EDT 2013


Sorry for the confusion.

I am just trying to store the value in to a global hashmap (more like a
counter) and get back the total size of the hashmap after all the data is
processed.

function setValue(String a, String b){ 
    hashValue.put(a,b);
}

function int getValue(){ 
    return hashValue.size();
}



--
View this message in context: http://drools.46999.n3.nabble.com/How-to-use-global-hashmap-in-drools-tp4026555p4026557.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list