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