Skip to content

Commit 4e62efe

Browse files
tarilabssterobin
authored andcommitted
BXMSDOC-6656 RN update DTAnalysis wired plugin (Kie7 RN) (#2901)
Co-authored-by: sterobin <[email protected]>
1 parent c099c84 commit 4e62efe

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
[id='dmn-validation-con_{context}']
2+
= Configurable DMN validation in {PRODUCT}
3+
4+
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:
5+
6+
* `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.
7+
* `VALIDATE_MODEL`: The pre-compilation analysis is performed for the DMN model to ensure that the basic semantic is aligned with the DMN specification.
8+
* `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.
9+
10+
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:
11+
12+
.Default configuration for DMN validation and decision table analysis
13+
[source,xml]
14+
----
15+
<plugin>
16+
<groupId>org.kie</groupId>
17+
<artifactId>kie-maven-plugin</artifactId>
18+
<extensions>true</extensions>
19+
<configuration>
20+
<validateDMN>VALIDATE_SCHEMA,VALIDATE_MODEL,ANALYZE_DECISION_TABLE</validateDMN>
21+
</configuration>
22+
</plugin>
23+
----
24+
25+
.Configuration to perform only the DMN decision table static analysis
26+
[source,xml]
27+
----
28+
<plugin>
29+
<groupId>org.kie</groupId>
30+
<artifactId>kie-maven-plugin</artifactId>
31+
<extensions>true</extensions>
32+
<configuration>
33+
<validateDMN>ANALYZE_DECISION_TABLE</validateDMN>
34+
</configuration>
35+
</plugin>
36+
----
37+
38+
.Configuration to perform only the XSD schema validation
39+
[source,xml]
40+
----
41+
<plugin>
42+
<groupId>org.kie</groupId>
43+
<artifactId>kie-maven-plugin</artifactId>
44+
<extensions>true</extensions>
45+
<configuration>
46+
<validateDMN>VALIDATE_SCHEMA</validateDMN>
47+
</configuration>
48+
</plugin>
49+
----
50+
51+
.Configuration to perform only the DMN model validation
52+
[source,xml]
53+
----
54+
<plugin>
55+
<groupId>org.kie</groupId>
56+
<artifactId>kie-maven-plugin</artifactId>
57+
<extensions>true</extensions>
58+
<configuration>
59+
<validateDMN>VALIDATE_MODEL</validateDMN>
60+
</configuration>
61+
</plugin>
62+
----
63+
64+
.Configuration to disable all DMN validation
65+
[source,xml]
66+
----
67+
<plugin>
68+
<groupId>org.kie</groupId>
69+
<artifactId>kie-maven-plugin</artifactId>
70+
<extensions>true</extensions>
71+
<configuration>
72+
<validateDMN>disable</validateDMN>
73+
</configuration>
74+
</plugin>
75+
----
76+
77+
NOTE: If you enter an unrecognized `<validateDMN>` configuration flag, all pre-compilation validation is disabled and the Maven plugin emits related log messages.

0 commit comments

Comments
 (0)