timwuthenow opened a new issue, #975:
URL: https://github.com/apache/incubator-kie-issues/issues/975
When working with projects that have DMN models in them for Kogito (or even
KIE Server), if you edit a DMN using the new editor, the project gets migrated
to DMN 1.5 specification. When this change is committed the model will forever
be 1.5, but not all engines that we run in are compatible with this. Having
either A) a confirmation to push the project forward so you're aware of the
change or B) Opening by default in legacy editor and then asking to go to 1.5
would be preferred. This would be helpful in the cases when working with a
project that might not be ready to go to 1.5 yet (e.g. Java 17 might not be
certified yet, I'm still running KIE Server, etc). What makes this harder is
that you don't know when you've done this, that that is what occurs until you
go to execute your model in your project when you get an error similar to the
one below. This would help prevent potentially major rework in projects that
aren't ready to move forward right away.
~~~log
[ERROR] Errors:
[ERROR] GreetingResourceTest.testHelloEndpoint ยป Runtime
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure:
Build failed due to errors
[error]: Build step
org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor#generateSources
threw an exception: java.lang.RuntimeException: DMN Validation schema and model
validation contained errors
You may configure kogito.decisions.validation=IGNORE to ignore validation
errors
DMN Validation errors:
: Failed XML validation of DMN file: cvc-elt.1.a: Cannot find the
declaration of element 'dmn:definitions'.,
: One of the supplied DMN Models has failed validation; cannot proceed to
validation of the remaining DMN Models.
at
org.kie.kogito.codegen.decision.DecisionValidation.processMessagesHandleErrors(DecisionValidation.java:195)
at
org.kie.kogito.codegen.decision.DecisionValidation.dmnValidateResources(DecisionValidation.java:90)
at
org.kie.kogito.codegen.decision.DecisionCodegen.loadModelsAndValidate(DecisionCodegen.java:103)
~~~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]