Re: [rules-users] Problem with date

2010-03-08 Thread Bertrand Grottier
-users] Problem with date Hi, What is the type of the dDeb field? It looks like you're trying to check if a date is less than a string. Enda 2010/3/3 Bertrand Grottier b_grott...@hotmail.com Dear all, I am a newbie with Drools (Drools 5). I just want to make a date comparison but failed

Re: [rules-users] Problem with date

2010-03-08 Thread Pavel Tavoda
a Date type. What is the proper/simplest way to achieve such a comparison ? Thank you in advance for your help. Regards, BenoƮt Date: Thu, 4 Mar 2010 10:01:23 + From: ejdigg...@gmail.com To: rules-users@lists.jboss.org Subject: Re: [rules-users] Problem

Re: [rules-users] Problem with date

2010-03-08 Thread Enda J Diggins
-- Date: Thu, 4 Mar 2010 10:01:23 + From: ejdigg...@gmail.com To: rules-users@lists.jboss.org Subject: Re: [rules-users] Problem with date Hi, What is the type of the dDeb field? It looks like you're trying to check if a date is less than a string. Enda 2010/3/3 Bertrand Grottier

Re: [rules-users] Problem with date

2010-03-08 Thread Bertrand Grottier
, 4 Mar 2010 10:01:23 + From: ejdigg...@gmail.com To: rules-users@lists.jboss.org Subject: Re: [rules-users] Problem with date Hi, What is the type of the dDeb field? It looks like you're trying to check if a date is less than a string. Enda 2010/3/3 Bertrand Grottier b_grott...@hotmail.com

Re: [rules-users] Problem with date

2010-03-08 Thread Enda J Diggins
I can only imagine that you have a typo somewhere... Here is some working test code: declare TestOb ddeb : java.util.Date end rule Prix premier semestre when TestOb(eval(ddeb.before(new java.util.Date(2010,3,1) ) ) ) then end ___

Re: [rules-users] Problem with date

2010-03-04 Thread Enda J Diggins
Hi, What is the type of the dDeb field? It looks like you're trying to check if a date is less than a string. Enda 2010/3/3 Bertrand Grottier b_grott...@hotmail.com Dear all, I am a newbie with Drools (Drools 5). I just want to make a date comparison but failed until now. Here is my drl