How to validate DMN syntactically using VS Code DMN editor /kogito Bundle?

148 views Asked by At

I was using Drools Business central and whenever I use to modify DMN file , used to leverage validate option to check the DMN . Since Drools 8 , Business central is retired so I started leveraging VS Code plugins , I am unable to find an option to validate DMN . Hence until I don't run DMN I don't know what is the problem . I am using DMN Editor plugin v0.26.0 , VSCode v1.66 and kogito bundle plugin v0.28.2 .

I didnt find any options to validate on VSCode editor .

1

There are 1 answers

4
tarilabs On

Since Drools v7, we have offered the kie-dmn-validation module. This is the validation capability you are likely referring to as using from Business Central, you can use the standard wiring we provide for this capability as out-of-the-box, or you can roll your own usage.

In Drools v7 and v8, when your project is a KJAR, the kie-maven-plugin will ensure the DMN validation is performed; after ensuring you are using standard KJAR project (such as those from BC) as explained in the Drools manual, you can tune the validation options of the maven plugin with:

You likely want to ensure the VS Code IDE instance you are using is leveraging the Maven build, so that the kie-maven-plugin will be used per details linked above.

Finally, if you are using the KIE Sandbox, the validation is part of the KIE Extended Services running locally.