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
。 现在让我们一一解释:
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