Skip to content
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

Adding Group node into a diagram makes the validation to fail #1832

Open
jomarko opened this issue Feb 14, 2025 · 0 comments
Open

Adding Group node into a diagram makes the validation to fail #1832

jomarko opened this issue Feb 14, 2025 · 0 comments
Labels
area:dmn Related to DMN type:bug Something is behaving unexpectedly

Comments

@jomarko
Copy link

jomarko commented Feb 14, 2025

Adding a group [1] node to any diagram using a tooling as of 14th of February 2025 makes the DMN Model validation to fail with a message [2]

Steps to reproduce

  1. open some of kogito-example projects that contians a DMN diagram
  2. run mvn clean install in such kogito-example project
  3. it will pass 🟢
  4. now open a DMN model of the selected project
  5. add a GROUP node into that diagram [1] and save the DMN model
  6. run mvn clean install
  7. It will fail 🔴 as [2]

[1]

Image

[2]

[ERROR] Errors: 
[ERROR]   TrafficViolationTest.testUtils » 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:
Utils: DMN: Unable to resolve dmnElementRef '_63A1F27D-C488-42AA-B586-8EBC54B7E868' on '[unnamed DMNShape]' (The referenced element could not be resolved) 
        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:143)
        at org.kie.kogito.codegen.decision.DecisionCodegen.internalGenerate(DecisionCodegen.java:160)
        at org.kie.kogito.codegen.core.AbstractGenerator.generate(AbstractGenerator.java:72)
        at org.kie.kogito.codegen.core.ApplicationGenerator.lambda$generateComponents$1(ApplicationGenerator.java:101)
        at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
        at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
        at org.kie.kogito.codegen.core.ApplicationGenerator.generateComponents(ApplicationGenerator.java:104)
        at org.kie.kogito.codegen.core.ApplicationGenerator.generate(ApplicationGenerator.java:78)
        at org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor.generateFiles(KogitoAssetsProcessor.java:291)
        at org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor.generateSources(KogitoAssetsProcessor.java:146)
        at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
        at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856)
        at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
        at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
        at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2516)
        at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2495)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1521)
        at java.base/java.lang.Thread.run(Thread.java:840)
        at org.jboss.threads.JBossThread.run(JBossThread.java:483)
@jomarko jomarko added area:dmn Related to DMN type:bug Something is behaving unexpectedly labels Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dmn Related to DMN type:bug Something is behaving unexpectedly
Projects
None yet
Development

No branches or pull requests

1 participant