0
我可以在Drools決策表(.xls文件)中使用域特定語言(DSL)嗎?你可以在Drools決策表中使用DSL嗎?
我爲我的決策表創建了一個.dsl文件,但每當我嘗試在決策表中使用「別名」時,我都會收到Drools語法錯誤。
# Simple DSL example file
[keyword]avoid looping=no-loop true
[when]There is a Customer=$c:Customer()
[when]- with age between {low:\d*} and {high:\d*}=age >= {low}, age <= {high}
[when]- who is older than {low:\d*}=age > {low}
[when]- without a Category set=category == Customer.Category.NA
[then]Set Customer Category to {category:\w*}=modify($c)\{setCategory(Customer.Category.{category})\};
例如,如果我使用別名「有一個客戶」在我的決策表,我得到:
Line 8:8 mismatched input 'is' in rule