[rules-users] Sliding window "full" length question

Wolfgang Laun wolfgang.laun at gmail.com
Thu Mar 20 15:36:39 EDT 2014


I'd start a one-shot timer on the arrival of the first Event, to fire
after 60 seconds and insert an auxiliary fact "OneMinute" and make
those rules depend on the presence of this fact. (Hint: Use extends)

-W

On 20/03/2014, GrantWang <grant.wang at intrado.com> wrote:
> Hi, I found the following statements in Drools document:
>
> "Sliding windows start to match immediately and defining a sliding window
> does not imply that the rule has to wait for the sliding window to be
> "full"
> in order to match. For instance, a rule that calculates the average of an
> event property on a window:length(10) will start calculating the average
> immediately, and it will start at 0 (zero) for no-events, and will update
> the average as events arrive one by one."
>
> Would someone please let me know how I can wait for the sliding windows to
> be full to match? Our requirement is always use the average reading over at
> least 60 seconds.
>
> Thanks!
> Grant
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Sliding-window-full-length-question-tp4028829.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list