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_grottier(a)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 file :
package com.sample
import com.sample.DroolsTest.Produit;
rule "Prix premier semestre"
when
p1 : Produit( dDeb < "01-Jan-2010" )
then
p1.setPrix( 10 );
update( p1 );
end
I get a build error in Eclipse : Unable to create restriction.
This must be an obvious problem but I am struggling for a while now.
Any help would be appreciated.
Benoit
------------------------------
Commander un cadeau en ligne discrètement? Voir la solution offerte par
Internet Explorer8 <
http://clk.atdmt.com/FRM/go/207186971/direct/01/>
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Enda J Diggins