[jboss-jira] [JBoss JIRA] Closed: (JBRULES-2237) Collect + Sliding Window not working properly
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Fri Aug 7 19:33:29 EDT 2009
[ https://jira.jboss.org/jira/browse/JBRULES-2237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Edson Tirelli closed JBRULES-2237.
----------------------------------
Resolution: Done
Fixed.
> Collect + Sliding Window not working properly
> ---------------------------------------------
>
> Key: JBRULES-2237
> URL: https://jira.jboss.org/jira/browse/JBRULES-2237
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-compiler, drools-compiler (expert), drools-compiler (fusion), drools-core, drools-core (expert), drools-core (fusion)
> Affects Versions: 5.0.1.FINAL
> Reporter: Edson Tirelli
> Assignee: Edson Tirelli
> Fix For: 5.1.0.M1
>
>
> Collect is not working properly when operating over a sliding window, like:
> package org.drools;
> import java.util.List
> global List timeResults;
> global List lengthResults;
> declare OrderEvent
> @role( event )
> @expires( 2m )
> end
> rule "collect with time window"
> when
> $list : List( empty == false ) from collect(
> $o : OrderEvent() over window:time(30s) )
> then
> timeResults.add( $list.size() );
> end
> rule "collect with length window"
> when
> $list : List( empty == false ) from collect(
> $o : OrderEvent() over window:length(3) )
> then
> lengthResults.add( $list.size() );
> end
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list