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"))
}
Is this possible to write in a drl file and is this a good approach also is
using eval in a drl file is not a good solution ie it has any problems ?
Thanks
Miro
---------------------------------
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar._______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users