Drools累积

时间:2017-11-23 08:24:39

标签: function drools accumulate

有人可以帮助我累积这个累积函数

($sum: Repetition(objectId == getEventKey(), "VERY_LONG".equals(getRepType())); 
  $count: count($sum); $count== $vlongCount)

尽管$count=10 and vlongcount=11积累仍在发生。在Drools

中是否存在与累积功能相关的任何错误

1 个答案:

答案 0 :(得分:0)

$count:Number(intValue == $vlongCount)
from accumulate(Repetition($sum: objectId == getEventKey(), "VERY_LONG".equals(getRepType())),$count: count($sum))