Skip to content

BXMSDOC-6656 RN update DTAnalysis wired plugin (Kie7 RN) #2901

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions assemblies/assembly-dmn-models.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ endif::DROOLS[]

include::{drools-dir}/DMN/dmn-properties-ref.adoc[leveloffset=+2]

include::{drools-dir}/DMN/dmn-validation-con.adoc[leveloffset=+2]

include::{drools-dir}/DMN/dmn-model-creating-proc.adoc[leveloffset=+1]

include::{drools-dir}/DMN/dmn-logic-defining-proc.adoc[leveloffset=+2]
Expand Down
2 changes: 2 additions & 0 deletions doc-content/drools-docs/src/main/asciidoc/DMN-chapter.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ endif::DROOLS[]

include::DMN/dmn-properties-ref.adoc[leveloffset=+2]

include::DMN/dmn-validation-con.adoc[leveloffset=+2]

include::DMN/dmn-model-creating-proc.adoc[leveloffset=+1]

include::DMN/dmn-logic-defining-proc.adoc[leveloffset=+2]
Expand Down
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.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//include::ReleaseNotes/ReleaseNotesDrools.7.24.0.Final/ReleaseNotesDrools.7.24.0.Final-section.adoc[leveloffset=+1]
//include::{shared-dir}/Workbench/ReleaseNotes/ReleaseNotesWorkbench.7.24.0.Final/ReleaseNotesWorkbench.7.24.0.Final-section.adoc[leveloffset=+1]

include::ReleaseNotes/ReleaseNotesDrools.7.45.0.Final/ReleaseNotesDrools.7.45.0.Final-section.adoc[leveloffset=+1]

include::{shared-dir}/Workbench/ReleaseNotes/ReleaseNotesWorkbench.7.44.0.Final/ReleaseNotesWorkbench.7.44.0.Final-section.adoc[leveloffset=+1]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
= New and Noteworthy in Drools 7.34.0

include::support-for-multisheet-decisiontables.adoc[leveloffset=+1]
include::kie-dmn-validation-in-maven-plugin.adoc[leveloffset=+1]
include::kie-dmn-validation-in-maven-plugin-con.adoc[leveloffset=+1]
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[id='kie-dmn-validation-in-maven-plugin-con']

= KIE DMN validation in Maven plugin

The `kie-maven-plugin` component now performs default pre-compilation validation of DMN model assets. The `kie-maven-plugin` component includes the following enhancements:

* DMN model files are verified against the DMN specification XSD schema to ensure that the files are valid XML and compliant with the specification.
* The pre-compilation analysis is performed for the DMN model to ensure that the basic semantic is aligned with the DMN specification.

You can modify the default DMN validation 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
[source,xml]
----
<plugin>
<groupId>org.kie</groupId>
<artifactId>kie-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<validateDMN>VALIDATE_SCHEMA,VALIDATE_MODEL</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 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.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[id='drools.releasenotesdrools.7.45.0']

= New and Noteworthy in Drools 7.45.0

include::kie-dmn-validation-in-maven-plugin-dtanalysis-con.adoc[leveloffset=+1]
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
[id='kie-dmn-validation-in-maven-plugin-dtanalysis-con']

= KIE DMN validation in Maven plugin

The `kie-maven-plugin` component now performs DMN decision table static analysis, in addition to pre-compilation validation of DMN model assets.

With this enhancement, the `kie-maven-plugin` component now includes the following features for pre-compilation and DMN decision table static analysis:

* DMN model files are verified against the DMN specification XSD schema to ensure that the files are valid XML and compliant with the specification.
* The pre-compilation analysis is performed for the DMN model to ensure that the basic semantic is aligned with the DMN specification.
* 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 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.