Build of executable-model with Map literal expression in constraint causes ParseProblemException
Issue
When MAP literal expression is used in LHS like the following
when
$fact: Fact(
calc(["src":name, "target":"TEST"])
)
...
KieBase build as Executable Model (e.g. mvn clean install -DgenerateModel=YES) fails with parser error like:
org.drools.javaparser.ParseProblemException:
Encountered unexpected token: "[" "["
at line 1, column 6.
Was expecting one of:
")"
This error does not happen when building this rule as normal kjar (i.e. mvn clean install).
Environment
- Red Hat Decision Manager
- 7.3.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.