I created JBRULES-2881 and noted the possibility of it being related to 2862 (where there is a comment from you, Edson, which seems to fit).

-W


2011/1/30 Edson Tirelli <ed.tirelli@gmail.com>

   This must be a bug. It should match only the latest event of each type. Would you please open a JIRA specifically with your description of the problem and let me know?

   Thanks,
       Edson

2011/1/29 OlliSee <o.roess@seeburger.de>

Hey again everyone,

I seem to be having another problem.

When I have a rule like that

when
       A() over window:length(1)
       B() over window:length(1)
then
       ...

I imagine now having two windows of length 1. One always keeping the latest
A event and one always keeping the latest B event. And I expect them to
update themselves once a new event comes in.

But if I have events coming in like this...

A1, A2, B1

The rule fires for (A2, B1)

then another event B2 is coming in and it fires for (A2,B2)
So far so good.

Then another event A3 is coming in and the rule fires for (A3,B2) and
(A3,B1).
Why? Shouldn't the B window only have B2 inside since it arrived and thus
fire only for (A3,B2)?

I have already been searching for this problem, found this
http://drools-java-rules-engine.46999.n3.nabble.com/DROOLS-problem-with-sliding-windows-td2039892.html
but I'm not sure if this is the same problem as mine.

Helping me understand this is highly appreciated, since I thought I had
completely understood the window behaviour.

Thanks in advance.
Kind regards
Oliver
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Sliding-window-of-length-1-equals-latest-event-tp2370162p2370162.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users