[rules-users] Evaluation of the of rules with 'window:length' event windows

Vincent LEGENDRE vincent.legendre at eurodecision.com
Wed May 16 08:32:14 EDT 2012


ok, got it.
not a strange construction, but a beautiful one !!
thx

----- Mail original -----

If you want to have a list, you can have it in addition to count:
   accumulate( $w: Whatever(...) from window:length( 10 ),
                        $count: count(1), $list: collectList( $w ),... )

although that would be redundant. But if you'd just need the (for
instance) sum, it would be useful.
  accumulate( Whatever( $x:x, ... ) from window:length( 10 ),
                        $count: count(1), $sum: sum( $x ) )

Note that this is a *complete* CE, beginning with "accumulate".

-W

> _______________________________________________
> rules-users mailing list
> 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


More information about the rules-users mailing list