There is no way of telling how the A, B, C of your data relates to the rule.
Nothing there suggests that rules 1, 2, 3 select A, B, C, respectively.

-W

On 22 July 2011 14:41, Andre <morpheusan...@web.de> wrote:

> i want to  accumulate on different properties of my event.
> i have 3 rules which all work in the same manner , accumulate on that event
> and then work with that result
> my rules are all like this
>
> rule "Request counting Subject By Id"
> when
>    $set: Set()
>            from accumulate($neu : RequestCtx() over
> window:time(1m),countMatchingSubjectIdsInRequest($neu) )
>    java.util.Map.Entry( $id: key, $count: value > 1 ) from $set
> then
>    channels["AuthZBlocking"].send(new ItemCacheEntry(new Item((String)$id),
> new Date(System.currentTimeMillis()+ 20000)));
> end
>
> these rules should work concurrently, depending on the propterties.
>
> to test this i wrote...
>
> let us assume:
> Rule1 looks for A.A and if |A.A>1| fire
> Rule2 looks for A.B and if |A.B>1| fire
> Rule3 looks for A.C and if |A.C>1| fire
> i inserted
> A.A
> A.A
> A.B
> A.B
> A.C
> A.C
> and instead of firing 1,2,3
> the engine fires : 1,1,2,1,1,2,1,2
>
> Do i have to influence the agenda , when working on the same eventtype ??
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/evaluating-different-aspects-of-the-same-event-tp3191232p3191232.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

Reply via email to