[rules-users] Date for 2 years ago

Mark Proctor mproctor at codehaus.org
Mon Sep 17 21:53:00 EDT 2007


Not at the moment, easiest way is to use a function call in a return value.

Mark
Brian Enderle wrote:
> 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
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>   




More information about the rules-users mailing list