[rules-users] Custom dates with @date-effective and @date-expires

Wolfgang Laun wolfgang.laun at gmail.com
Thu Mar 17 02:34:10 EDT 2011


The desired effect might be easier to achieve with a fact EffectiveDate {
Date date; } and a pattern specifying the limits.

The rule attributes (not metadata) are based on the system data, and you
wouldn't want to mess with it just to use data-effective and date-expires.

-W

On 17 March 2011 00:33, Faisal Shafique <just_faisal at yahoo.com> wrote:

> Hi,
>
> Can I use any arbitrary date for the drools execution so that correct rules
> are fired based on not current date but any arbitrary date? This is in the
> context of @date-effective and @date-expires metadata that can be specified
> as part of a rule. Drools expert documentation seems to imply that this
> metadata uses "current date" though I am not clear what current date (system
> date?) means.
>
> Thanks
>
> Faisal Shafique
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110317/54eeb81d/attachment.html 


More information about the rules-users mailing list