<br>&nbsp;&nbsp; This is a bug. Can you please open a JIRA for it?<br><br>&nbsp;&nbsp;&nbsp; The bug happens when you have an access path in the left side comparing to the Date as string in the right. <br><br>m:Message( first.second.date &gt; &quot;01-jan-2007&quot; ) // does not work
<br>m:Message( date &gt; &quot;01-jan-2007&quot; ) // works fine<br><br>&nbsp;&nbsp;&nbsp; Need to fix the Drools-&gt;MVEL translation of the expression.<br><br>&nbsp;&nbsp;&nbsp; Thanks,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2008/1/24, jack wu &lt;
<a href="mailto:jackxwu@yahoo.com">jackxwu@yahoo.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><h6>i copy the following from the Documentation. i thought it means that drools is going to auto convert the string &quot;27-Oct-2007&quot; into a java Date object.
<br></h6><br>+++++++++<br><h6>Date</h6><div>The date format &quot;dd-mmm-yyyy&quot; is supported by default. You               can customize this by providing an alternative date format mask               as a System property (&quot;
drools.dateformat&quot; is the name of the               property). If more control is required, use the inline-eval               constraint.</div><div><a name="117a9fcde59b6cde_d0e3466"></a><div><b>Example&nbsp;6.20.&nbsp;Date Literal Restriction
</b></div><div><pre>Cheese( bestBefore &lt; &quot;27-Oct-2007&quot; )<br>+++++++++++++++++++++++++<br></pre></div></div><br><span style="text-decoration: underline;"><br><br></span> Newsgroups: <a href="http://news.gmane.org/gmane.comp.java.drools.user" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
gmane.comp.java.drools.user</a><br> Date: 2008-01-23 23:32:42 GMT  (4 hours and 13 minutes ago)<span class="q"><br> <div> </div> <div>Were you compairing Date agaist string here, as your double quotes indicate?</div> <div>
<br></div> <div>Xiandong<br><br>Sent from my iPhone</div> </span><div><span class="e" id="q_117a9fcde59b6cde_2"><div> <br>On Jan 23, 2008, at 17:33, jack wu &lt;<a href="mailto:jackxwu%20%3Cat%3E%20yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jackxwu &lt;at&gt; yahoo.com</a>&gt; wrote:<br><br> </div>  if i have several levels of java beans, the Date is not working. example:<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; m:Message( first.second.date &gt; &quot;01-jan-2007&quot; )<br></span></div>
<span class="ad"><p> 



      </p><hr size="1">Never miss a thing.  <a href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> Make Yahoo your homepage.</a>

<p></p></span><br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div>
<br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;JBoss Drools Core Development<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com
</a>