<br> This is a bug. Can you please open a JIRA for it?<br><br> 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 > "01-jan-2007" ) // does not work
<br>m:Message( date > "01-jan-2007" ) // works fine<br><br> Need to fix the Drools->MVEL translation of the expression.<br><br> Thanks,<br> Edson<br><br><div><span class="gmail_quote">2008/1/24, jack wu <
<a href="mailto:jackxwu@yahoo.com">jackxwu@yahoo.com</a>>:</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 "27-Oct-2007" into a java Date object.
<br></h6><br>+++++++++<br><h6>Date</h6><div>The date format "dd-mmm-yyyy" is supported by default. You can customize this by providing an alternative date format mask as a System property ("
drools.dateformat" 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 6.20. Date Literal Restriction
</b></div><div><pre>Cheese( bestBefore < "27-Oct-2007" )<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 <<a href="mailto:jackxwu%20%3Cat%3E%20yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jackxwu <at> yahoo.com</a>> wrote:<br><br> </div> if i have several levels of java beans, the Date is not working. example:<br><br> m:Message( first.second.date > "01-jan-2007" )<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> Edson Tirelli<br> JBoss Drools Core Development<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com
</a>