<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Dear all,<br><br>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 :<br><br>package com.sample<br>&nbsp;<br>import com.sample.DroolsTest.Produit;<br><br>&nbsp;<br>rule "Prix premier semestre"<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; p1 : Produit( dDeb &lt; "01-Jan-2010" )<br>&nbsp;&nbsp;&nbsp; then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; p1.setPrix( 10 );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; update( p1 );<br>end<br><br>I get a build error in Eclipse : Unable to create restriction.<br><br>This must be an obvious problem but I am struggling for a while now.<br><br>Any help would be appreciated.<br><br>Benoit<br>                                               <br /><hr />Commander un cadeau en ligne discrètement? <a href='http://clk.atdmt.com/FRM/go/207186971/direct/01/' target='_new'>Voir la solution offerte par Internet Explorer8</a></body>
</html>