The desired effect might be easier to achieve with a fact EffectiveDate { Date date; } and a pattern specifying the limits. <br><br>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.<br>
<br>-W<br><br><div class="gmail_quote">On 17 March 2011 00:33, Faisal Shafique <span dir="ltr"><<a href="mailto:just_faisal@yahoo.com">just_faisal@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
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.<br>
<br>
Thanks<br>
<br>
Faisal Shafique<br>
<br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>