forked from apache/incubator-kie-drools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BXMSDOC-6656 RN update DTAnalysis wired plugin (Kie7 RN) (apache#2901)
Co-authored-by: sterobin <sterobin@redhat.com>
- Loading branch information
Showing
1 changed file
with
77 additions
and
0 deletions.
There are no files selected for viewing
77 changes: 77 additions & 0 deletions
77
drools-docs/src/modules/ROOT/pages/DMN/dmn-validation-con.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |