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).
- Red Hat Decision Manager
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.