drools 规则语法_Drools:规则编写或语法基础

本文介绍了Drools规则的基础,包括包的概念作为规则的命名空间,如何导入FACTS类和辅助类,规则定义中的专用关键字,以及如何使用全局变量在规则中传递应用对象和数据。内容详细解释了Drools规则语法中的`package`、`import`、`rule`定义以及`global`变量的用法。
摘要由CSDN通过智能技术生成

drools 规则语法

If you see the default rule which is written in the FirstDroolsProgram project(Sample.drl), there are a lot of keywords used. Let us explain them one by one now :

如果您看到在FirstDroolsProgram项目(Sample.drl)中编写的默认规则,则使用了很多keywords 。 现在让我们一一解释:

Different Terms used in Drools
  1. Package: Every Rule starts with a package name. The package acts as a namespace for Rules. Package name has to be defined while creating the Rule resource. Rule names within a package must be unique. Packages in Rules are similar to packages in Java. When you create a new Rule by New -> Rule Resource -> then in the below window you need to mention the Rule name as well

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值