流口水积累 [英] Drools accumulate
本文介绍了流口水积累的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以帮我这个累加函数累加
Could someone please help me with this accumulate function accumulate
($sum: Repetition(objectId == getEventKey(), "VERY_LONG".equals(getRepType()));
$count: count($sum); $count== $vlongCount)
尽管 $ count = 10和vlongcount = 11
仍在累积。在Drools中是否有任何与累加函数相关的bug
though the $count=10 and vlongcount=11
accumulate is still happening. is there any bug associted with accumulate function in Drools
推荐答案
$count:Number(intValue == $vlongCount)
from accumulate(Repetition($sum: objectId == getEventKey(), "VERY_LONG".equals(getRepType())),$count: count($sum))
这篇关于流口水积累的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文