Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-3800

Parser error with executable-model on Map literal expression in constraint

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.18.0.Final
    • Fix Version/s: None
    • Component/s: executable model
    • Labels:
    • Environment:

      7.18.0.Final
      7.18.0.Final-redhat-00002 (RHDM7.3.0)
      7.14.0.Final-redhat-00004 (RHDM7.1.2)

    • Sprint:
      2019 Week 14-16, 2019 Week 17-19
    • Story Points:
      5
    • Steps to Reproduce:
      Hide

      run attached reproduce by the following fommand:

      $ mvn clean test

      Show
      run attached reproduce by the following fommand: $ mvn clean test
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  volothamp Luca Molteni
                  Reporter:
                  hiroko Hiroko Miura
                  Tester:
                  Tibor Zimanyi
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: