Drools accumulate

半腔热情 提交于 2020-01-06 05:19:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!