[rules-users] AGE problem

djb dbrownell83 at hotmail.com
Mon Feb 22 09:59:21 EST 2010


I am also interested in this, though my requirement specifies
DAY/WEEK/MONTH/YEAR, so it's a bit more complex.

It appears from the documentation that the way to compare dates without an
eval is:
Cheese( bestBefore < "27-Oct-2009" )

So, i reckon...

a function that subtracts a number of years/months/weeks/days using
GregorianCalendar and returns a date, can be compared with, in your case,
$now, provided that it is a String in that form.

But I'll work on it in the meantime, and get back to you if I work out
something.
Please let me know if you work out something without eval() too, thanks.
-- 
View this message in context: http://n3.nabble.com/AGE-problem-tp215215p326884.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list