<br><br><div class="gmail_quote">On 26 July 2011 17:40, Andre <span dir="ltr">&lt;<a href="mailto:morpheusandre@web.de">morpheusandre@web.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
does that also mean, that when for example 2 threads insert objects ,  they<br>
also will evaluate the accumulate function twice?<br></blockquote><div><br>No.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
there will also be 2 contexts</blockquote><div><br>Why - do you assume they&#39;ll be kept on the thread stack? <br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 so that this example doesnt count the Requests<br>
of the WorkingMemory, it just counts the Requests the thread has inserted?<br></blockquote><div><br>That would be a bug. <br>-W<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
Example<br>
   $set: Set()<br>
            from accumulate($neu : RequestCtx() over<br>
window:time(1m),countMatchingSubjectIdsInRequest($neu) )<br>
    java.util.Map.Entry( $id: key, $count: value &gt; 1 ) from $set<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/evaluating-different-aspects-of-the-same-event-tp3191232p3200687.html" target="_blank">http://drools.46999.n3.nabble.com/evaluating-different-aspects-of-the-same-event-tp3191232p3200687.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>