[jboss-jira] [JBoss JIRA] Created: (JBRULES-2881) sliding window:length(1) sticks to old event

Wolfgang Laun (JIRA) jira-events at lists.jboss.org
Sun Jan 30 11:20:39 EST 2011


sliding window:length(1) sticks to old event
--------------------------------------------

                 Key: JBRULES-2881
                 URL: https://issues.jboss.org/browse/JBRULES-2881
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-core
    Affects Versions: 5.1.1.FINAL
            Reporter: Wolfgang Laun
            Assignee: Mark Proctor


A rule combining two events of type A and B, each "seen" through a sliding window of length 1 misfires. Rather that combining the latest A with the latest B, it keeps firing the latest B together with *all* old A's.

Interestingly, this effect disappears if the order of patterns in the rule is inverted. Given the event sequence: A, A, B, A, B, the
   rule ab when A() over window:length(1) B() over window:length(1) then ... end
misfires, but 
   rule ba when B() over window:length(1) A() over window:length(1) then ... end
works correctly.

This may be related to JBRULES-2862.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list