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

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Fri May 20 12:56:01 EDT 2011


     [ https://issues.jboss.org/browse/JBRULES-2881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edson Tirelli resolved JBRULES-2881.
------------------------------------

    Resolution: Done


Done. Thanks for reporting.

> 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, drools-core (fusion)
>    Affects Versions: 5.1.1.FINAL
>            Reporter: Wolfgang Laun
>            Assignee: Edson Tirelli
>            Priority: Critical
>             Fix For: 5.2.0.CR1
>
>
> 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