📄 rule_with_expander_dsl.drl
字号:
package test
#must be in the following order.
import org.drools.Person
import org.drools.Cheese
#refer to test_expander.dsl
expander test_expander.dsl
global java.util.List messages;
rule "my rule"
when
#Person(name=="Bob", likes=="stilton")
#Cheese(type=="stilton")
There is a person with the name of Bob who likes "http://foo.bar"
There is some stilton cheese available
then
Add the message "We have a winner"
#messages.add("We have a winner");
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -