以下是使用“无循环”的规则示例:
rule "Even Number Rule"
dialect "java"
no-loop
when
n : Number( number !=0 && (number%2)==0 , value : number)
then
modify(n){setNumber(8)};
end
以下是使用“无循环”的规则示例:
rule "Even Number Rule"
dialect "java"
no-loop
when
n : Number( number !=0 && (number%2)==0 , value : number)
then
modify(n){setNumber(8)};
end
长话短说:
长话短说:http: //ilesteban.wordpress.com/2012/11/16/about-drools-and-infinite-execution-loops/
希望能帮助到你,