On 26 July 2011 17:40, Andre <morpheusan...@web.de> wrote: > does that also mean, that when for example 2 threads insert objects , they > also will evaluate the accumulate function twice? >
No. > > there will also be 2 contexts Why - do you assume they'll be kept on the thread stack? > so that this example doesnt count the Requests > of the WorkingMemory, it just counts the Requests the thread has inserted? > That would be a bug. -W > > Example > $set: Set() > from accumulate($neu : RequestCtx() over > window:time(1m),countMatchingSubjectIdsInRequest($neu) ) > java.util.Map.Entry( $id: key, $count: value > 1 ) from $set > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/evaluating-different-aspects-of-the-same-event-tp3191232p3200687.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users >
_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users