5_rules.drl

来自「jboss规则引擎」· DRL 代码 · 共 39 行

DRL
39
字号
package org.drools.samples
import org.drools.benchmark.models.Account;

rule rule0
  when
    $acc : Account(status == "standard", title == "mr", accountId == "acc0")
  then
    System.out.println("rule0 fired");
end

rule rule1
  when
    $acc : Account(status == "standard", title == "mr", accountId == "acc1")
  then
    System.out.println("rule1 fired");
end

rule rule2
  when
    $acc : Account(status == "standard", title == "mr", accountId == "acc2")
  then
    System.out.println("rule2 fired");
end

rule rule3
  when
    $acc : Account(status == "standard", title == "mr", accountId == "acc3")
  then
    System.out.println("rule3 fired");
end

rule rule4
  when
    $acc : Account(status == "standard", title == "mr", accountId == "acc4")
  then
    System.out.println("rule4 fired");
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?