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

ekzl at yahoo.com ekzl at yahoo.com
Thu Jun 21 10:02:31 EDT 2012


Wolfgang,

Again many thanks for you response but it's just not clear for me. 

According to me if i have 1 million TestEvents and after each insert I call
fireAllRules i will end up with 1 million accumulate context of type test in
my example. 

Meaning that if the event in my case belongs to the same customer the
accumulate method will be called 1 million x 1 million. 

So that seems to me not really scalable. 

So i wonder as there is already a context created after the first accumulate
and it seems to me that the engine is aware of it as for consecutive events
it also calls the accumulate method on that context it should not create a
new context. What is the purpose of a new context?


The accumulate doesn't stop when i return a null contex, is there any other
way to avoid creating that context?

Regards,
e


Thx,
e


--
View this message in context: http://drools.46999.n3.nabble.com/Accumulator-being-executed-depending-on-the-number-of-events-tp4018128p4018138.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list