dschulten opened a new issue, #6881: URL: https://github.com/apache/incubator-kie/issues/6881
### Describe the bug I run the following scenario simulation: [Kostenkennwerte pro Gebaeudeart.scesim.xml](https://github.com/user-attachments/files/30794976/Kostenkennwerte.pro.Gebaeudeart.scesim.xml) Against this model: [Kostenkennwerte pro Gebaeudeart.dmn.xml](https://github.com/user-attachments/files/30795006/Kostenkennwerte.pro.Gebaeudeart.dmn.xml) which includes 2 models: [Basiskostenkennwert.dmn.xml](https://github.com/user-attachments/files/30794992/Basiskostenkennwert.dmn.xml) [Korrekturfaktor Gebaeudegroesse BGF.dmn.xml](https://github.com/user-attachments/files/30795023/Korrekturfaktor.Gebaeudegroesse.BGF.dmn.xml) The scesim Junit Test ``` @TestScenarioActivator public class TestScenarioJunitActivatorTest { } ``` fails: Error invoking function 'Basiskostenkennwert Service' on node 'Basiskostenkennwert Service' Internally, a NPE occurs: "java.lang.NullPointerException: Kie DMN API parameter 'model' cannot be null." whose stacktrace points to: org.kie.dmn.core.impl.DMNRuntimeImpl#evaluateById It appears that the scesim testrunner somehow is unable to execute DMN Services from included models. When I run the same service as a Spring Boot Rest Service, the DMN Service evaluates the expression just fine. Also, the sandbox happily delivers the expected result `Kostenkennwert: 825` ``` ### POST Kostenkennwert 4.1 mit Korrekturen POST {{host}}:{{port}}/KostenkennwerteProGebaeudeart Content-Type: application/json { "Gebäudeart": "Mehrfamilienhäuser", "Gebäudetyp": "mit bis zu 6 WE", "Weitere Merkmale": null, "Gebäudestandard": 3, "Angepasster Basiskostenkennwert": { "wert": null }, "Abweichende Dachgeometrie": { "prozent": null }, "Gebäudegröße BGF": { "flaecheQm": null }, "Durchschnittliche Wohnungsgröße": { "flaecheQm": null }, "Grundrissart": { "grundrissart": null }, "Zweifamilienhaus": null } ``` ### Expected behavior The JUnit scesim Runner should come to the same results as the actual DMN Rest Service and the Sandbox. ### Actual behavior The scesim Runner treats included models differently. ### How to Reproduce? See above ### Output of `uname -a` or `ver` _No response_ ### Output of `java -version` openjdk version "21.0.9" 2025-10-21 LTS OpenJDK Runtime Environment Corretto-21.0.9.10.1 (build 21.0.9+10-LTS) OpenJDK 64-Bit Server VM Corretto-21.0.9.10.1 (build 21.0.9+10-LTS, mixed mode, sharing) ### GraalVM version (if different from Java) _No response_ ### Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM) 10.2.0 ### Build tool (ie. output of `mvnw --version` or `gradlew --version`) _No response_ ### Additional information _No response_ -- 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]
