[rules-users] Re: Date problem

Xiandong Su xiandongsu at yahoo.com
Thu Jan 24 13:02:05 EST 2008


I just played with it and it works fine for my 4.0.3 version.

----- Original Message ----
From: jack wu <jackxwu at yahoo.com>
To: rules-users at lists.jboss.org
Sent: Wednesday, January 23, 2008 10:54:39 PM
Subject: [rules-users] Re: Date problem


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.

+++++++++
DateThe 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 Restriction
Cheese( 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 iPhone
  
On Jan 23, 2008, at 17:33, jack wu <jackxwu <at> yahoo.com> wrote:

 
  if 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.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080124/05ef64b1/attachment.html 


More information about the rules-users mailing list