问题
Could someone please help me with this accumulate function accumulate
($sum: Repetition(objectId == getEventKey(), "VERY_LONG".equals(getRepType()));
$count: count($sum); $count== $vlongCount)
though the $count=10 and vlongcount=11
accumulate is still happening. is there any bug associted with accumulate function in Drools
回答1:
$count:Number(intValue == $vlongCount)
from accumulate(Repetition($sum: objectId == getEventKey(), "VERY_LONG".equals(getRepType())),$count: count($sum))
来源:https://stackoverflow.com/questions/47450706/drools-accumulate