1
使用我有以下Drools的DSL 「句」:從{X}點域在DSL在Drools中
[when]The field {field} in the module {module} contains value {value}=$a : {module} ({field} != null)
String(this.equalsIgnoreCase("{value}")) from $a.{field}
其中field
是一個字符串Set
。
現在,如果我有兩個這些規則,它顯然不會工作,因爲變量$a
發生兩次。所以我想提高規則把這些變量,那麼,變量:
[when]The field {field} in the module {module} contains value {value} as {a}={a} : {module} ({field} != null)
String(this.equalsIgnoreCase("{value}")) from {a}.{field}
這是不行的,我不能使用的部分{a}.
,打破。
所以,我的問題是:是否有重寫規則的方法或允許{variable}.
表示法工作的方法?或者,是否有一個不區分大小寫的contains
運算符?