I am unit testing a simple Case. I have two user tasks with one terminating the other. There are other tasks around.
Terminating sentry has a variable demoVar1>500 requirement.
Two scenarios:
FIRST - task7 sets the variable and closes. Both tasks terminate (!)
variables.put(“demoVar1”, 500);
CmmnAwareTests.complete(execution7, variables);
CmmnAwareTests.assertThat(execution7).isTerminated();
CmmnAwareTests.assertThat(execution8).isTerminated();
SECOND - task7 closes. Later on task1 sets variable and closes. Tasks1 and task7 are closed, task9 is terminated.
CmmnAwareTests.complete(execution7);
variables.put(“demoVar1”, 500);
CmmnAwareTests.complete(execution1, variables);
CmmnAwareTests.assertThat(execution8).isTerminated();
CmmnAwareTests.assertThat(execution1).isCompleted();
CmmnAwareTests.assertThat(execution7).isCompleted();
Is the first scenario a bug or am I missing something?