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

DMNValidate mojo fails XMLSchema validation with included models

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.34.0.Final
    • None
    • 2020 Week 16-18 (from Apr 13), 2020 Week 19-21 (from May 4), 2020 Week 22-24 (from May 25), 2020 Week 25-27 (from Jun 15)
    • 5
      1. Unzip the attached xml_validation_errors
      2. From a command line, run "mvn compile" in the root of the project
      3. Error is attached.
    • NEW
    • NEW

      The attached DMN decision project was built using Business Central 7.34.0.Final. In this project, the dmn model `Math Functions.dmn` invokes business knowledge model `Quotient` from dmn model `Divide.dmn`. Invoking the ValidateDMN mojo (enabled by default) from the kie-maven-plugin fails XML Validation. One can get past this error by disabling DMNValidation with the following configuration in the pom (though disabling DMNValidation for an XML Schema validation also prevents finding FEEL parser errors):
      ```
      <build>
      <plugins>
      <plugin>
      <groupId>org.kie</groupId>
      <artifactId>kie-maven-plugin</artifactId>
      <version>7.34.0.Final</version>
      <extensions>true</extensions>
      <!-- Can get past xml validation error by disabling the ValidateDMN Mojo -->
      <configuration>
      <validateDMN>disabled</validateDMN>
      </configuration>
      </plugin>
      </plugins>
      </build>
      ```
      When one combines the two dmn models into a single model, the XML Validation succeeds (this example is not supplied, but is trivial to re-build).

        1. ValidateDMN Mojo Failure.png
          420 kB
          Tracy Hires

              karreiro_ Guilherme Gomes (Inactive)
              tracyhires Tracy Hires (Inactive)
              Jozef Marko Jozef Marko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: