20rules_2ce_0shared.drl

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

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

rule rule0
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc0", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule0 fired");
end

rule rule1
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc1", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule1 fired");
end

rule rule2
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc2", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule2 fired");
end

rule rule3
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc3", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule3 fired");
end

rule rule4
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc4", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule4 fired");
end

rule rule5
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc5", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule5 fired");
end

rule rule6
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc6", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule6 fired");
end

rule rule7
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc7", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule7 fired");
end

rule rule8
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc8", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule8 fired");
end

rule rule9
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc9", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule9 fired");
end

rule rule10
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc10", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule10 fired");
end

rule rule11
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc11", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule11 fired");
end

rule rule12
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc12", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule12 fired");
end

rule rule13
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc13", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule13 fired");
end

rule rule14
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc14", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule14 fired");
end

rule rule15
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc15", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule15 fired");
end

rule rule16
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc16", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule16 fired");
end

rule rule17
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc17", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule17 fired");
end

rule rule18
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc18", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule18 fired");
end

rule rule19
  when
    $acc : Account(status == "standard")
    $addr : Address(accountId == "acc19", city == "boston", state == "ma", houseType == "single family", status == "not listed")
  then
    System.out.println("rule19 fired");
end

⌨️ 快捷键说明

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