drools 用法

rule "filter bus  Points"
when
blist :  ArrayList(size>0) from collect(BusRoute(routeId>0))
toel : Integer(intValue >0) from accumulate (
link:BusRoute(),
init(int  tol =0; ),
action(tol += link.getRouteId();),
reverse(tol =  3;),
result(tol) )

then
System.out.println(toel);
end
workmemory中存在list<BusRout>

你可能感兴趣的:(drools)