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"))
}
Can this code be easily implemented in a drl file and what is with the
eval ?
--
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.