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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.18.0.Final
    • executable model
    • 2019 Week 14-16, 2019 Week 17-19
    • 5
    • Hide

      run attached reproduce by the following fommand:

      $ mvn clean test

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

      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
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: