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

Fail to create executable model with DSL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 7.59.0.Final
    • executable model
    • None
    • 2021 Week 37-39 (from Sep 13), 2022 Week 17-19 (from Apr 25)
    • NEW
    • NEW

    Description

      I have a scenario where it's needed to evaluate data from Map<String, Map<String, String>>.
      There is a DSL for this purpose and currently works like it should, since the amount of rules in my project is getting huge I want to use an executable model.
       
      To reproduce this scenario I used troubleticket drools example and it's available at [drools-test|https://github.com/ricamn/drools-test]
       
      As said before, rule works as expected when running TroubleTicketExampleWithDSL, but when running maven clean package to generate executable model I got the following error:
       
      [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.59.0.Final:generateModel (default-generateModel) on project drools-test: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.59.0.Final:generateModel failed: Unable to get KieModule, Errors Existed: Error Messages:
      [ERROR] Message [id=1, kieBase=TroubleTicketWithDSLKB, level=ERROR, path=org/drools/examples/troubleticketWithDSL/TroubleTicketWithDSL.dslr, line=-1, column=0
      [ERROR]    text=Unable to parse left part of expression: complexOptions["COMPLEX_OPTION"]["OPTION_1"]=="VALUE_1"]
       

      Attachments

        Issue Links

          Activity

            People

              mfusco@redhat.com Mario Fusco
              ricamn Ricardo Martins (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: