⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 20rules_2ce_4shared.drl

📁 jboss规则引擎
💻 DRL
字号:
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(city == "boston", state == "ma", houseType == "single family", status == "not listed", country == "usa0") 
  then
    System.out.println("rule0 fired");
end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

⌨️ 快捷键说明

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