📄 20rules_2ce_2shared.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 family0", status == "not listed", country == "usa")
then
System.out.println("rule0 fired");
end
rule rule1
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family1", status == "not listed", country == "usa")
then
System.out.println("rule1 fired");
end
rule rule2
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family2", status == "not listed", country == "usa")
then
System.out.println("rule2 fired");
end
rule rule3
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family3", status == "not listed", country == "usa")
then
System.out.println("rule3 fired");
end
rule rule4
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family4", status == "not listed", country == "usa")
then
System.out.println("rule4 fired");
end
rule rule5
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family5", status == "not listed", country == "usa")
then
System.out.println("rule5 fired");
end
rule rule6
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family6", status == "not listed", country == "usa")
then
System.out.println("rule6 fired");
end
rule rule7
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family7", status == "not listed", country == "usa")
then
System.out.println("rule7 fired");
end
rule rule8
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family8", status == "not listed", country == "usa")
then
System.out.println("rule8 fired");
end
rule rule9
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family9", status == "not listed", country == "usa")
then
System.out.println("rule9 fired");
end
rule rule10
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family10", status == "not listed", country == "usa")
then
System.out.println("rule10 fired");
end
rule rule11
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family11", status == "not listed", country == "usa")
then
System.out.println("rule11 fired");
end
rule rule12
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family12", status == "not listed", country == "usa")
then
System.out.println("rule12 fired");
end
rule rule13
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family13", status == "not listed", country == "usa")
then
System.out.println("rule13 fired");
end
rule rule14
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family14", status == "not listed", country == "usa")
then
System.out.println("rule14 fired");
end
rule rule15
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family15", status == "not listed", country == "usa")
then
System.out.println("rule15 fired");
end
rule rule16
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family16", status == "not listed", country == "usa")
then
System.out.println("rule16 fired");
end
rule rule17
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family17", status == "not listed", country == "usa")
then
System.out.println("rule17 fired");
end
rule rule18
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family18", status == "not listed", country == "usa")
then
System.out.println("rule18 fired");
end
rule rule19
when
$acc : Account(status == "standard")
$addr : Address(city == "boston", state == "ma", houseType == "single family19", status == "not listed", country == "usa")
then
System.out.println("rule19 fired");
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -