[rules-users] New bee writing rules
miro
miroconnect at yahoo.com
Thu Mar 29 15:24:15 EDT 2007
I have a n object which has a method which returns java.util.Map .
Is it easy to implement a rule which calls the gettter method on this object
for the map and get the value for a specified key and check condition on
that value ?
Example
class MyObject {
private Map properties;
public Map getProperties(){
return properties;
}
public void setProperties(Map aMap){
this.properties=aMap;
}
Now the rule I need is
MyObject aObject= new MyObject();
return (
aObject.getPorperties().get("price").toString.equals("aproperty"))
}
--
View this message in context: http://www.nabble.com/New-bee-writing-rules-tf3488367.html#a9740856
Sent from the drools - user mailing list archive at Nabble.com.
More information about the rules-users
mailing list