[rules-users] Date for 2 years ago

Brian Enderle brianke at gmail.com
Mon Sep 17 21:36:45 EDT 2007


I need to code a rule which checks that the begin date for an object is at 
least two years ago (from todays date).  Is there an easy way to code this 
within Drools rule, something like:

when
   Reference(fromDate > (todaysDate - 2 years))
then
   <Output error>
end

Thanks in advance,
Brian Enderle




More information about the rules-users mailing list