test_evalexception.drl
来自「jboss规则引擎」· DRL 代码 · 共 15 行
DRL
15 行
package org.drools.test;
import org.drools.Cheese;
function boolean throwException(Object object) {
throw new Exception( "this should throw an exception" );
}
rule "Throw Eval Exception"
when
cheese : Cheese( )
eval( throwException( cheese ) )
then
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?