《Drools7.0.0.Final规则引擎教程》第4章 4.9 关键字

来源:互联网 发布:网页缓存视频提取软件 编辑:程序博客网 时间:2024/06/13 04:07

关键字

从Drools 5开始引入了硬关键字和软关键字。硬关键字是保留关键字,在命名demo对象,属性,方法,函数和规则文本中使用的其他元素时,不能使用任何硬关键字。以下是必须避免的硬关键字:
(1)true
(2)false
(3)null
软关键词只在它们的上下文中被识别,可以在其他地方使用这些词,尽管如此,仍然建议避免它们,以避免混淆。其中大多数关键字我们在前面的章节中已经介绍过。软关键词列表如下:
(1)lock-on-active
(2)date-effective
(3)date-expires
(4)no-loop
(5)auto-focus
(6)activation-group
(7)agenda-group
(8)ruleflow-group
(9)entry-point
(10)duration
(11)package
(12)import
(13)dialect
(14)salience
(15)enabled
(16)attributes
(17)rule
(18)extend
(19)when
(20)then
(21)template
(22)query
(23)declare
(24)function
(25)global
(26)eval
(27)not
(28)in
(29)or
(30)and
(31)0exists
(32)forall
(33)accumulate
(34)collect
(35)from
(36)action
(37)reverse
(38)result
(39)end
(40)over
(31)init

后语

此系列课程持续更新中,QQ群:593177274(可扫描左上侧栏目二维码),欢迎大家加入讨论。点击链接关注《Drools博客专栏》。由于Drools资料较少,教程编写不易,每篇博客都亲身实践编写demo。如果对你有帮助也欢迎赞赏(微信)! 也是对原创的最大支持!
这里写图片描述

阅读全文
1 0