[rules-users] Timer and AgendaFilter
Mark Proctor
mproctor at codehaus.org
Wed Aug 7 11:40:56 EDT 2013
The agendaFilter is passed to the fireAllRules method, and applied in the outer loop of that:
if ( filter == null || filter.accept( item ) ) {
// fire it
fireActivation( item);
localFireCount++;
}
The timer is called async, so it has no agendaFilter in scope, and it calls fireActivation directly.
Mark
On 25 Jul 2013, at 14:38, Kai Ruddies <KRuddies at proveo.com> wrote:
> Hi,
>
> I have a rule with a timer and call fireAllRules(AgendaFilter agendaFilter) with an AgendaFilter. I can see the Activation is fired after the delay but accept(Activation activation) in my AgendaFilter isn’t invoked. My AgendaFilter is working well for other rules without timers.
>
> Is this a bug or wanted that ScheduledActivations aren’t passed to the AgendaFilter?
>
> I‘m using drools expert 5.5.0.Final.
>
>
> Thanks,
> Kai
>
> _______________________________________________
> 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/20130807/7adf78e6/attachment-0001.html
More information about the rules-users
mailing list