[jboss-jira] [JBoss JIRA] (DROOLS-256) Sliding Window rule duplicate fireing after fireAllRules() loop
Mario Fusco (JIRA)
jira-events at lists.jboss.org
Wed Nov 13 04:04:06 EST 2013
[ https://issues.jboss.org/browse/DROOLS-256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved DROOLS-256.
--------------------------------
Fix Version/s: 5.5.1.Final
Resolution: Done
> Sliding Window rule duplicate fireing after fireAllRules() loop
> ---------------------------------------------------------------
>
> Key: DROOLS-256
> URL: https://issues.jboss.org/browse/DROOLS-256
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 5.5.0.Final
> Environment: Modified 'Hello world' example, Eclipse Juno with Java 1.6 on Mac OS
> Reporter: Alexander Wolf
> Assignee: Mario Fusco
> Fix For: 5.5.1.Final
>
>
> Given the following rule:
> //counts numbers of events in the previous 3 seconds
> rule "slidingTimeCount"
> when
> $n: Number (intValue > 0) from accumulate ( $e : Message() over window:time(3s) , count($e))
> then
> System.out.println("Messages in last 3 seconds: " + $n);
> end
> When Messages (Event) are inserted in a loop and after this loop fireAllRules() on the session is invoked, the rule fires twice.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list