Drools EscapeQuotes 设置

Drools EscapeQuotes settings

我们可以在下面的 Drools 应用程序中进行更改。我是 Drools 新手。

EscapeQuotes:可以是“true”或“false”。如果为“true”,则引号将被转义,以便它们按字面意义出现在 DRL 中。如果省略,引号将被转义。

我也找到了这篇文章,但正在弄清楚我们需要对其进行更改的地方。

http://www.mastertheboss.com/jboss-jbpm/drools/getting-started-with-decision-tables-in-drools

它进入决策 table 定义的规则集区域。

来自文档:

16.7.2.1. RuleSet definitions

Entries in the RuleSet area of a decision table define DRL constructs and rule attributes that you want to apply to all rules in a package (not only in the spreadsheet). Entries must be in a vertically stacked sequence of cell pairs, where the first cell contains a label and the cell to the right contains the value. A decision table spreadsheet can have only one RuleSet area.

The following table lists the supported labels and values for RuleSet definitions:

Label Value Usage
EscapeQuotes true or false. If true, then quotation marks are escaped so that they appear literally in the DRL. Optional, at most once. If omitted, quotation marks are escaped.

为了将来参考,您应该参考 official documentation 而不是 Internet 上的随机站点。与其他一些库相比,Drools 人员拥有非常好的文档,而且该库的开发非常积极,以至于在出版一本书或博客时,它可能已经过时或不完整。