[rules-users] Problem with date

Bertrand Grottier b_grottier at hotmail.com
Wed Mar 3 08:18:41 EST 2010


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
 		 	   		  
_________________________________________________________________
Hotmail et MSN dans la poche? HOTMAIL et MSN sont dispo gratuitement sur votre téléphone!
http://www.messengersurvotremobile.com/?d=Hotmail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100303/41fc11a3/attachment.html 


More information about the rules-users mailing list