My fault. Here you are the drls:
package it.intext.unity.test
import it.intext.unity.test.SynthEvent;
global org.slf4j.Logger logger;
declare SynthEvent // The class is the same you used in previous tests
$e : SynthEvent() from entry-point "synth"
entryPoints["counters"].insert( new EventCounter( $e.getId(), "event", $e.getTimestamp() ) );
// if (Math.random() < 0.001) logger.debug("New event: {}", $e.getId());
timer ( cron: 0/10 * * * * ? )
Number( $count : intValue ) from accumulate(
EventCounter( key == "event" ) over window:time( 60s ) from entry-point "counters", count(1) )
logger.debug("epm = {}", $count );
rule "Count live counters"
timer ( cron: 0/60 * * * * ? )
Number( $count : intValue ) from accumulate(
EventCounter( key == "event" ) from entry-point "counters", count(1) )
logger.debug("Live counters = {}", $count );
Working (log #3 in my last mail)
[This is the drl you posted in your reply. Here you can see the CronTrigger usage. Cron based rule has empty LHS, and RHS inserts a trigger, accumulate occurs in a standard (not cron based) rule]