📄 no-loop.drl
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -