📄 20rules_3shared.drl
字号:
package org.drools.samples
import org.drools.benchmark.models.Address;
rule rule0
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed0", country == "usa")
then
System.out.println("rule0 fired");
end
rule rule1
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed1", country == "usa")
then
System.out.println("rule1 fired");
end
rule rule2
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed2", country == "usa")
then
System.out.println("rule2 fired");
end
rule rule3
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed3", country == "usa")
then
System.out.println("rule3 fired");
end
rule rule4
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed4", country == "usa")
then
System.out.println("rule4 fired");
end
rule rule5
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed5", country == "usa")
then
System.out.println("rule5 fired");
end
rule rule6
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed6", country == "usa")
then
System.out.println("rule6 fired");
end
rule rule7
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed7", country == "usa")
then
System.out.println("rule7 fired");
end
rule rule8
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed8", country == "usa")
then
System.out.println("rule8 fired");
end
rule rule9
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed9", country == "usa")
then
System.out.println("rule9 fired");
end
rule rule10
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed10", country == "usa")
then
System.out.println("rule10 fired");
end
rule rule11
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed11", country == "usa")
then
System.out.println("rule11 fired");
end
rule rule12
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed12", country == "usa")
then
System.out.println("rule12 fired");
end
rule rule13
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed13", country == "usa")
then
System.out.println("rule13 fired");
end
rule rule14
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed14", country == "usa")
then
System.out.println("rule14 fired");
end
rule rule15
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed15", country == "usa")
then
System.out.println("rule15 fired");
end
rule rule16
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed16", country == "usa")
then
System.out.println("rule16 fired");
end
rule rule17
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed17", country == "usa")
then
System.out.println("rule17 fired");
end
rule rule18
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed18", country == "usa")
then
System.out.println("rule18 fired");
end
rule rule19
when
$addr : Address(city == "boston", state == "ma", houseType == "single family", status == "not listed19", country == "usa")
then
System.out.println("rule19 fired");
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -