Skip to content

Commit

Permalink
BXMSDOC-6656 RN update DTAnalysis wired plugin (Kie7 RN) (apache#2901)
Browse files Browse the repository at this point in the history
Co-authored-by: sterobin <sterobin@redhat.com>
  • Loading branch information
2 people authored and nprentza committed Jul 15, 2022
1 parent d013d21 commit f12509f
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions drools-docs/src/modules/ROOT/pages/DMN/dmn-validation-con.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
[id='dmn-validation-con_{context}']
= Configurable DMN validation in {PRODUCT}

By default, the `kie-maven-plugin` component in the `pom.xml` file of your {PRODUCT} project uses the following `<validateDMN>` configurations to perform pre-compilation validation of DMN model assets and to perform DMN decision table static analysis:

* `VALIDATE_SCHEMA`: DMN model files are verified against the DMN specification XSD schema to ensure that the files are valid XML and compliant with the specification.
* `VALIDATE_MODEL`: The pre-compilation analysis is performed for the DMN model to ensure that the basic semantic is aligned with the DMN specification.
* `ANALYZE_DECISION_TABLE`: DMN decision tables are statically analyzed for gaps or overlaps and to ensure that the semantic of the decision table follows best practices.

You can modify the default DMN validation and DMN decision table analysis behavior to perform only a specified validation during the project build, or you can disable this default behavior completely, as shown in the following examples:

.Default configuration for DMN validation and decision table analysis
[source,xml]
----
<plugin>
<groupId>org.kie</groupId>
<artifactId>kie-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<validateDMN>VALIDATE_SCHEMA,VALIDATE_MODEL,ANALYZE_DECISION_TABLE</validateDMN>
</configuration>
</plugin>
----

.Configuration to perform only the DMN decision table static analysis
[source,xml]
----
<plugin>
<groupId>org.kie</groupId>
<artifactId>kie-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<validateDMN>ANALYZE_DECISION_TABLE</validateDMN>
</configuration>
</plugin>
----

.Configuration to perform only the XSD schema validation
[source,xml]
----
<plugin>
<groupId>org.kie</groupId>
<artifactId>kie-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<validateDMN>VALIDATE_SCHEMA</validateDMN>
</configuration>
</plugin>
----

.Configuration to perform only the DMN model validation
[source,xml]
----
<plugin>
<groupId>org.kie</groupId>
<artifactId>kie-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<validateDMN>VALIDATE_MODEL</validateDMN>
</configuration>
</plugin>
----

.Configuration to disable all DMN validation
[source,xml]
----
<plugin>
<groupId>org.kie</groupId>
<artifactId>kie-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<validateDMN>disable</validateDMN>
</configuration>
</plugin>
----

NOTE: If you enter an unrecognized `<validateDMN>` configuration flag, all pre-compilation validation is disabled and the Maven plugin emits related log messages.

0 comments on commit f12509f

Please sign in to comment.