Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-898

[GSS](7.3.z) Parser error with executable-model on Map literal expression in constraint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 7.2.1.GA, 7.3.0.GA
    • BRE
    • 7.18.0.Final
      7.18.0.Final-redhat-00002 (RHDM7.3.0)
      7.14.0.Final-redhat-00004 (RHDM7.1.2)

    • Hide

      run attached reproducer by the following fommand:

      $ mvn clean test

      Show
      run attached reproducer by the following fommand: $ mvn clean test

      When MAP literal expression is used in LHS like the following

        when
          $fact: Fact(
            calc(["src":name, "target":"TEST"])
          )
       ...
      

      KieBase build as Executable Model 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.

              lmolteni@redhat.com Luca Molteni
              rhn-support-hmiura Hiroko Miura
              Tibor Zimányi Tibor Zimányi
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: