[rules-users] evaluating different aspects of the same event

Wolfgang Laun wolfgang.laun at gmail.com
Wed Jul 27 01:56:19 EDT 2011


On 26 July 2011 17:40, Andre <morpheusandre at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110727/317df1b7/attachment.html 


More information about the rules-users mailing list