[rules-users] problem in sliding window

Davide Sottara dsotty at gmail.com
Mon Mar 17 07:58:26 EDT 2014


It is possible to declare sliding windows

A possible problem (I didn't check the logic) is that
you are not inserting the new Events you create.



On 03/17/2014 12:13 PM, Sandhya Sree wrote:
> i found this type of declaration in a site and thought this is allowed..
> also it doesnt throw any compilation error and works the same way as
> declared like this:
>
> accumulate( $e :Event (name == "new file added") *over window :
> time(1m)*, count($e)
>
>
> On Mon, Mar 17, 2014 at 4:23 PM, Wolfgang Laun
> <wolfgang.laun at gmail.com <mailto:wolfgang.laun at gmail.com>> wrote:
>
>     On 17/03/2014, Sandhya Sree <sandhyachinnaraj at gmail.com
>     <mailto:sandhyachinnaraj at gmail.com>> wrote:
>
>     > declare window Ticks
>     >     Event()
>     >         over window:time(1m )
>     > end
>
>     Is there any documentation snippet that says you can declare a fact
>     (not even an event) like this, restricting its existence?
>
>     If not, why does this not cause an compilation error?
>
>     -W
>     _______________________________________________
>     rules-users mailing list
>     rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140317/0c80a5a6/attachment-0001.html 


More information about the rules-users mailing list