[rules-users] new bee writing rules
temp temp
miroconnect at yahoo.com
Thu Mar 29 16:06:04 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"))
}
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070329/36dc0123/attachment.html
More information about the rules-users
mailing list