[jboss-jira] [JBoss JIRA] (DROOLS-256) Sliding Window rule duplicate fireing after fireAllRules() loop
Alexander Wolf (JIRA)
jira-events at lists.jboss.org
Mon Sep 9 06:26:03 EDT 2013
Alexander Wolf created DROOLS-256:
-------------------------------------
Summary: 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