-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
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
--
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
, 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
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
___
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