-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
7.63.0.Final
-
None
-
-
NEW
-
NEW
DMNScenarioRunnerHelper.getSingleFactValueResult raises the exception
"Wrong resultRaw structure because it is not a complex type as expected" if the result of a Java function evaluation is not a Map. The exception is raised even if the returned object correctly matches the specified type in the DMN file.
org.drools.scenariosimulation.backend.runner.IndexedScenarioException:
Test1: Wrong resultRaw structure because it is not a complex type as expected (Reproducer)
at org.drools.scenariosimulation.backend.runner.AbstractScenarioRunner.defineFailureException(AbstractScenarioRunner.java:142)
at org.drools.scenariosimulation.backend.runner.AbstractScenarioRunner.singleRunScenario(AbstractScenarioRunner.java:125)
at org.drools.scenariosimulation.backend.runner.AbstractScenarioRunner.run(AbstractScenarioRunner.java:101)
at org.drools.scenariosimulation.backend.runner.ScenarioJunitActivator.runChild(ScenarioJunitActivator.java:74)
at org.drools.scenariosimulation.backend.runner.ScenarioJunitActivator.runChild(ScenarioJunitActivator.java:43)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
Caused by: org.drools.scenariosimulation.backend.runner.ScenarioException: Wrong resultRaw structure because it is not a complex type as expected
at org.drools.scenariosimulation.backend.runner.DMNScenarioRunnerHelper.getSingleFactValueResult(DMNScenarioRunnerHelper.java:230)
at org.drools.scenariosimulation.backend.runner.DMNScenarioRunnerHelper.lambda$verifyConditions$3(DMNScenarioRunnerHelper.java:196)
at org.drools.scenariosimulation.backend.runner.AbstractRunnerHelper.fillResult(AbstractRunnerHelper.java:306)
at org.drools.scenariosimulation.backend.runner.DMNScenarioRunnerHelper.verifyConditions(DMNScenarioRunnerHelper.java:195)
at org.drools.scenariosimulation.backend.runner.AbstractRunnerHelper.run(AbstractRunnerHelper.java:97)
at org.drools.scenariosimulation.backend.runner.AbstractScenarioRunner.internalRunScenario(AbstractScenarioRunner.java:148)
at org.drools.scenariosimulation.backend.runner.AbstractScenarioRunner.singleRunScenario(AbstractScenarioRunner.java:122)
... 15 more