Thanks for the answer. Yes, it may be easier to achieve with simple date fact
but we have thousands of rules and each and every one of them has this temporal
requirement. I was thinking along the lines of SessionClock. I know there is a
'realtime' and 'pseudoclock' implementation of it. May be I
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:3
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 th