Build of executable-model with Map literal expression in constraint causes ParseProblemException

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content