[rules-users] Timer Cron reevaluating same facts again and gain

Wolfgang Laun wolfgang.laun at gmail.com
Thu Aug 30 05:50:46 EDT 2012


On 30/08/2012, rvkhakhkhar1 <rvkhakhkhar at gmail.com> wrote:
> That means, a rule with timer don't remeber for which facts it has executed
> consequence part previosly and when its time arrive it just execute
> consequence part on available facts.

A rule never "remembers" anything, with or without timers.

A rule with a timer results in an activation which is a combination of a rule
and a tuple of matching facts; one rule may have any number of pending
activations at any time.

An activation of a rule with a timer will become reactivated (after
having been fired before) when the timer fires again and the rule
condition still holds for the associated tuple of fact.

-W


> I checked using AgendaListner, just after rule fire(afterActivationFired)
> isActive becomes false, but for the next time in beforeActivationFired the
> same fact's isActive become true.
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Timer-Cron-re-evaluating-same-facts-again-and-again-tp4019422p4019437.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> 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