phungvannarich-kepler-aavn opened a new issue, #1732: URL: https://github.com/apache/incubator-kie-issues/issues/1732
Hi, here is my configuration in the DMN file:    Here is my Java class:  This is test configuration:  Here is my Test Scenario (SCESIM) configuration:  When I run the test scenario, there are no logs from the Java function, and the return value is always null. Could you please help me figure out what’s wrong with my code? %TSTTREE2,test,true,1,false,-1,test,, %TSTTREE3,#1: test(test),false,1,false,-1,#1: test(test),, %TESTS 2,test %TESTS 3,#1: test(test) %FAILED 3,#1: test(test) %TRACES org.drools.scenariosimulation.backend.runner.IndexedScenarioAssertionError: #1 test: Failed in "UpdateFunction": The expected value is ""Data from Java Code"" but the actual one is "null" (test) at org.drools.scenariosimulation.backend.runner.AbstractScenarioRunner.defineFailureException(AbstractScenarioRunner.java:139) at org.drools.scenariosimulation.backend.runner.AbstractScenarioRunner.singleRunScenario(AbstractScenarioRunner.java:127) at org.drools.scenariosimulation.backend.runner.AbstractScenarioRunner.run(AbstractScenarioRunner.java:103) at org.kogito.scenariosimulation.runner.KogitoJunitActivator.runChild(KogitoJunitActivator.java:35) at org.kogito.scenariosimulation.runner.KogitoJunitActivator.runChild(KogitoJunitActivator.java:26) 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.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:93) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:40) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:520) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:748) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:443) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:211) Caused by: org.drools.scenariosimulation.backend.runner.ScenarioException: Failed in "UpdateFunction": The expected value is ""Data from Java Code"" but the actual one is "null" at org.drools.scenariosimulation.backend.runner.AbstractRunnerHelper.throwScenarioException(AbstractRunnerHelper.java:286) at org.drools.scenariosimulation.backend.runner.AbstractRunnerHelper.validateAssertion(AbstractRunnerHelper.java:272) at org.drools.scenariosimulation.backend.runner.AbstractRunnerHelper.run(AbstractRunnerHelper.java:104) at org.drools.scenariosimulation.backend.runner.AbstractScenarioRunner.internalRunScenario(AbstractScenarioRunner.java:150) at org.drools.scenariosimulation.backend.runner.AbstractScenarioRunner.singleRunScenario(AbstractScenarioRunner.java:124) ... 16 more %TRACEE %TESTE 3,#1: test(test) %TESTS 2,test %RUNTIME2102 -- 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]
