Search in sources :

Example 6 with IntermediateMessageEventCatching

use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateMessageEventCatching in project kie-wb-common by kiegroup.

the class EventCancelActivityViewHandlerTest method testHandleMessageIsCancel.

@Test
@SuppressWarnings("unchecked")
public void testHandleMessageIsCancel() {
    final IntermediateMessageEventCatching bean = new IntermediateMessageEventCatching.IntermediateMessageEventCatchingBuilder().build();
    bean.getExecutionSet().getCancelActivity().setValue(true);
    tested.handle(bean, view);
    verify(prim1).setAlpha(eq(1d));
    verify(prim2).setAlpha(eq(0d));
}
Also used : IntermediateMessageEventCatching(org.kie.workbench.common.stunner.bpmn.definition.IntermediateMessageEventCatching) Test(org.junit.Test)

Example 7 with IntermediateMessageEventCatching

use of org.kie.workbench.common.stunner.bpmn.definition.IntermediateMessageEventCatching in project kie-wb-common by kiegroup.

the class EventCancelActivityViewHandlerTest method testHandleMessageIsNotCancel.

@Test
@SuppressWarnings("unchecked")
public void testHandleMessageIsNotCancel() {
    final IntermediateMessageEventCatching bean = new IntermediateMessageEventCatching.IntermediateMessageEventCatchingBuilder().build();
    bean.getExecutionSet().getCancelActivity().setValue(false);
    tested.handle(bean, view);
    verify(prim1).setAlpha(eq(0d));
    verify(prim2).setAlpha(eq(1d));
}
Also used : IntermediateMessageEventCatching(org.kie.workbench.common.stunner.bpmn.definition.IntermediateMessageEventCatching) Test(org.junit.Test)

Aggregations

IntermediateMessageEventCatching (org.kie.workbench.common.stunner.bpmn.definition.IntermediateMessageEventCatching)7 Test (org.junit.Test)4 MessageRef (org.kie.workbench.common.stunner.bpmn.definition.property.event.message.MessageRef)4 DataIOSet (org.kie.workbench.common.stunner.bpmn.definition.property.dataio.DataIOSet)3 CancellingMessageEventExecutionSet (org.kie.workbench.common.stunner.bpmn.definition.property.event.message.CancellingMessageEventExecutionSet)3 AssignmentsInfo (org.kie.workbench.common.stunner.bpmn.definition.property.dataio.AssignmentsInfo)2 CancelActivity (org.kie.workbench.common.stunner.bpmn.definition.property.event.CancelActivity)2 BPMNGeneralSet (org.kie.workbench.common.stunner.bpmn.definition.property.general.BPMNGeneralSet)2 Metadata (org.kie.workbench.common.stunner.core.diagram.Metadata)2 Graph (org.kie.workbench.common.stunner.core.graph.Graph)2 CatchEventPropertyWriter (org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.CatchEventPropertyWriter)1 CatchEventPropertyReader (org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.properties.CatchEventPropertyReader)1 EventPropertyReader (org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.properties.EventPropertyReader)1 Documentation (org.kie.workbench.common.stunner.bpmn.definition.property.general.Documentation)1 Name (org.kie.workbench.common.stunner.bpmn.definition.property.general.Name)1 Edge (org.kie.workbench.common.stunner.core.graph.Edge)1 View (org.kie.workbench.common.stunner.core.graph.content.view.View)1