There are two points to tackle here, one is related to the error you faced, and the second is to understand how to debug a scesim
asset during its running phase.
- Your case failure: Unfortunately,
scesim
assets have a well-known limitation in the case of nested Collection in type, which is your case. In particular, you defined the following list for your Simple
type in the expected column:

The problem here is with ages
fields, which is a nested List. Providing [12,13]
as a parameter of that list, is formally correct. But, due to the limitation I mentioned, it currently it doesn't work. There's a workaround you can use, which is to Define a List using an expression, as shown in the following screenshot:

The expression ? = {"name":"jose","ages":[12, 13]}
means to check for the equality of the actual value (?
) with an object which contains a field name
with value jose
and a field ages
with [12, 13]
as the value. Please note, according to your defined logic, you expect a Simple
type list with one item only. If you Simple
type returns a list with multiple items, the expression should be composed by a List rather than a single object (Eg. ? = [{"name":"jose","ages":[12, 13]}, {"name":"john","ages":[1, 3]}, .. ]
We are aware this is not ideal, we are defining a way to improve this use-case experience. Stay tuned with KIE channels to know more or to give hints to improve this!
- How to debug a Test Scenario assets: In this example I'm using IntelliJ as IDE, but it works on VSCode too. Referring to your
scesim
file, let's run it with mvn clean install
. As you reported it will fail, with an exception. Let's try to put a breakpoint in one of the reported line in the stacktrace (Eg. at org.drools.scenariosimulation.backend.runner.AbstractScenarioRunner.singleRunScenario(AbstractScenarioRunner.java:125
)

Put a breakpoint on that line. Now, to launch the scesim
engine in debug mode, go to your scesim
activator class (typically named KogitoScenarioJunitActivatorTest
). Here, you can Run/Debug your scesim
assets like a Junit test class.
