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:
   
![image](https://github.com/user-attachments/assets/b34211f9-4df9-4a84-acc8-5deec4b41825)
   
![image](https://github.com/user-attachments/assets/f3ece9a5-544d-4ea6-b63e-56279c074c38)
   
![image](https://github.com/user-attachments/assets/73928627-9945-458d-851a-ecc385606ce7)
   
   Here is my Java class:
   
![image](https://github.com/user-attachments/assets/e9e6eacc-22be-44be-894e-110cda664c34)
   
   This is test configuration:
   
![image](https://github.com/user-attachments/assets/f382e5fb-e4fb-4878-bcf8-ba4125be0502)
   
   Here is my Test Scenario (SCESIM) configuration:
   
![image](https://github.com/user-attachments/assets/d097d0eb-f850-4da5-9e02-e988de2ee0d7)
   
   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]

Reply via email to