Hi All,<br> Can anyone tell me if there is a variable or standard way to get the <b>current date</b> and compare with the java.util.Date. I'm trying write the below rule but it doesn't work. It doesn't throw any error but the rule is not at all fired in any case<br>
<br>rule "new rule"<br>dialect "java"<br>when<br> Message(<b>testDate < new Date()</b>)<br>then<br> System.out.println("Test");<br>end<br>Do I have to insert a seperate fact which will contain the current date?<br>
Thanks in advance.<br clear="all"><br>-- <br>cheers<br>Sumatheja Dasararaju<br><br><br>