[rules-users] Accumulator being executed depending on the number of events

Wolfgang Laun wolfgang.laun at gmail.com
Thu Jun 21 09:11:39 EDT 2012


On 21/06/2012, ekzl at yahoo.com <ekzl at yahoo.com> wrote:
> Hi Wolfgang,
>
> thanks for the swift reply. Probalby you are right about the fact that a
> new
> context is created instead of a new accumulator. But why is it looping over
> all the context that are created for that accumulator?

Think logically. If your accumulate should make do with a single
context, it will have to be prepared for all contigencies.

So, what are these contigencies?

Is your accumulate function really prepared for all of them, so that
it would be worth preserving the context?

>
> Surely the output attached to the first thread is not what you would
> expect,
> is it?

Yes and no.

> I would like to just have 1 context, is that possbile?

Yes, but... See preceding remarks.

Cheers
Wolfgang

>
>
>
> Regards,
> e
>


More information about the rules-users mailing list