On 07/08/2013, Kai Ruddies <KRuddies(a)proveo.com> wrote:
Thanks for responding!
It's not about repeated firing. I have a rule with a timer with only an
initial delay. When the rule fires I see the ScheduledActivation
(DebugAgendaEventListener) but my filter isn't invoked.
OK. In this case a workaround is easy: Use a plain rule to
insertLogical an auxiliary fact and make the timer depend on this fact
alone.
-W
That's why I thought
ScheduledActivations aren't handled in the same way as Activations.
Kai
-----Ursprüngliche Nachricht-----
Von: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] Im Auftrag von Wolfgang Laun
Gesendet: Mittwoch, 7. August 2013 10:43
An: Rules Users List
Betreff: Re: [rules-users] Timer and AgendaFilter
On 07/08/2013, Kai Ruddies <KRuddies(a)proveo.com> wrote:
> Anyone knows?
I don't think so, not even the Drools Team themselves - otherwise they most
certainly would have documented it ;-)
There's no reason I can see that a rule with a timer should not be subject
to the filter set with fireAlRules(). Whether the filter should only be
called once or for each execution of the RHS is debatable. I'm inclined to
see the repeated firings as a single activation executed in instalments, but
feel free to develop another opinion.
-W
>
> Von: rules-users-bounces(a)lists.jboss.org
> [mailto:rules-users-bounces@lists.jboss.org] Im Auftrag von Kai
> Ruddies
> Gesendet: Donnerstag, 25. Juli 2013 15:39
> An: rules-users(a)lists.jboss.org
> Betreff: [rules-users] Timer and AgendaFilter
>
> 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(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users