evalmodify.drl
来自「jboss规则引擎」· DRL 代码 · 共 16 行
DRL
16 行
package evalmodify;
import org.drools.Cell
import java.lang.Integer
rule "test eval"
when
cell1 : Cell(value1:value != 0)
cell2 : Cell(value2:value < value1)
eval (true)
then
System.out.println("setting value to " + (value2.intValue() + 1));
cell2.setValue(value2.intValue() + 1);
modify(cell2);
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?