On 26 July 2011 17:40, Andre <morpheusandre(a)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-sam...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users