[jboss-jira] [JBoss JIRA] (DROOLS-256) Sliding Window rule duplicate fireing after fireAllRules() loop
Davide Sottara (JIRA)
jira-events at lists.jboss.org
Mon Sep 9 15:44:03 EDT 2013
[ https://issues.jboss.org/browse/DROOLS-256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802867#comment-12802867 ]
Davide Sottara commented on DROOLS-256:
---------------------------------------
Confirmed to be working 5.6 with both realtime and pseudo-clock
https://github.com/sotty/drools/commit/ca90a0516556d3d00f66d7d5bf46ac2cee27ec81
> 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: Mark Proctor
>
> 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