Search in sources :

Example 1 with SignalObjectReport

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());
}
Also used : VariableInstanceLog(org.kie.api.runtime.manager.audit.VariableInstanceLog) SignalObjectReport(org.jbpm.test.iodata.SignalObjectReport) KieSession(org.kie.api.runtime.KieSession) Test(org.junit.Test) BZ(qa.tools.ikeeper.annotation.BZ)

Aggregations

SignalObjectReport (org.jbpm.test.iodata.SignalObjectReport)1 Test (org.junit.Test)1 KieSession (org.kie.api.runtime.KieSession)1 VariableInstanceLog (org.kie.api.runtime.manager.audit.VariableInstanceLog)1 BZ (qa.tools.ikeeper.annotation.BZ)1