Drools 口水积聚问题

Drools 口水积聚问题,drools,Drools,我流口水有问题5.4秒。我想做的是在给定时间内发生多个事件时触发一条规则: when $things : List() from collect (TimedThings () over window:time(5ms)) $thing_list : List(size > 10) from accumulate( $thing : TimedThings (eval(testMe(attribute, "1"))) from $things, co

我流口水有问题5.4秒。我想做的是在给定时间内发生多个事件时触发一条规则:

when

$things : List() from collect (TimedThings () over window:time(5ms)) 

$thing_list  : List(size > 10) from accumulate(
        $thing : TimedThings (eval(testMe(attribute, "1"))) from $things,
        collectList($thing)
            )
then
现在我希望这只会在thing_列表中有10个东西时触发,但我看到它会在少于10个东西时触发


我的规则不正确吗?

我正试图解决一个类似的问题。你做完了吗?我正试图解决一个类似的问题。你做完了吗?