i copy the following from the Documentation. i thought it means that drools is going to auto convert the string "27-Oct-2007" into a java Date object.
+++++++++Date
The date format "dd-mmm-yyyy" is supported by default. You can customize this by providing an alternative date format mask as a System property (" drools.dateformat" is the name of the property). If more control is required, use the inline-eval constraint.Example 6.20. Date Literal RestrictionCheese( bestBefore < "27-Oct-2007" )
+++++++++++++++++++++++++
Newsgroups: gmane.comp.java.drools.user
Date: 2008-01-23 23:32:42 GMT (4 hours and 13 minutes ago)
Were you compairing Date agaist string here, as your double quotes indicate?Xiandong
Sent from my iPhoneif i have several levels of java beans, the Date is not working. example:
m:Message( first.second.date > "01-jan-2007" )
Never miss a thing. Make Yahoo your homepage.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users