[rules-users] Evaluation of the of rules with 'window:length' event windows
Vincent LEGENDRE
vincent.legendre at eurodecision.com
Wed May 16 07:56:31 EDT 2012
>On 16/05/2012, Vincent LEGENDRE <vincent.legendre at eurodecision.com> wrote:
>> Seems that there is a confusion here ...
>>
>> window:length(X) is constraining the events timestamps to be in a
>> time-windows of length X (in seconds).
>
>Definitely not. It's window:time that restricts by a time interval.
oups ... Should have checked before ... sorry.
So window:length(X) take only a max of X previous events (so including from 0 to X, which the problem here)
>> @wolfgang : if you use an internal counter in the accumulate, how can you
>> test it internaly ?
>
> accumulate( Whatever(...), $count: count(1), ... )
> eval( $count == X )
strange construction ...
"$count: count(1)" is part of the pattern ? then automatically incremented in $count variable ?
Does the accumulate still return a List or something else ?
More information about the rules-users
mailing list