use of org.jbpm.test.iodata.SignalObjectReport in project jbpm by kiegroup.
the class StartEventTest method testSignalOutputType.
@Test
@BZ("1090375")
public void testSignalOutputType() throws Exception {
KieSession ksession = createKSession(SIGNAL_OUTPUT_TYPE);
SignalObjectReport report = new SignalObjectReport("Type of signal object report");
ksession.signalEvent("SignalObjectReport", report);
List<? extends VariableInstanceLog> vars = getLogService().findVariableInstancesByName("report", false);
VariableInstanceLog lastvar = vars.get(vars.size() - 1);
Assertions.assertThat(lastvar.getValue()).isEqualTo(report.toString());
}
Aggregations