[rules-users] Re: How to validate boolean values..using Drools

Alexander Claus styjdt at claus4joy.de
Wed Jun 18 08:08:00 EDT 2008


> There was a question about Timestamp in my table.
>
> Condtion is : compare to start_timestamp can not be less than or equal
> Current Date.
>
> i am trying to like this ,
>
> EmployeEx(eval(startTimestamp.after(new
> Timestamp(System.currentTimeMillis()))))
>
> In This case No Rules to fired.Please review this condition sytex is 
> correct
> or not.

Manya,

I don't know what your Timestamp class does. It is a wrapper around 
java.util.Date? Are you sure that your facts support firing the rule? 
Meaning that the start timestamp of your EmployeEx object is really in the 
future?
When I do a test with java.util.Date instead of Timestamp, this expression 
behaves well.

Alexander 




More information about the rules-users mailing list