Can you offset the sliding window functionality to look for a window in the past? What I'm trying to do is offset the window from 'now'. E.g. Assuming it is 12:05 and I have been receiving objects for 5 minutes, I'm trying to get this to sum received objects between 2 and 3 minutes ago.
rule "Accumulate attempts over 1 minute (window over time)" when $measure : Number() from accumulate( MyData( $m:measures["attempts"], objectType=="climber" ) over window:time( 2m, 3m ) from entry-point "My Stream", sum($m)) then # end Looking at the SlidingTimeWindow source code, it looks as though you can't offset the window by a delay? Is that accurate? If you can't do that directly via a sliding window, is there a way to work around this? TIA. -- View this message in context: http://drools.46999.n3.nabble.com/CEP-sliding-window-in-the-past-tp3314638p3314638.html Sent from the Drools: User forum mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users