no-loop.drl
来自「jboss规则引擎」· DRL 代码 · 共 17 行
DRL
17 行
package org.drools.test;
import org.drools.Cheese;
global java.util.List list
rule "Do not loop forever"
no-loop true
when
cheese : Cheese( )
then
list.add( cheese );
if ( list.size() > 2 ) {
throw new Exception( "this should not loop" );
}
modify( cheese );
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?