use of org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.SignalRef in project kie-wb-common by kiegroup.
the class ProcessSignalRefProviderTest method mockStartSignalEventNode.
private Node mockStartSignalEventNode(String signalRefValue) {
StartSignalEvent event = new StartSignalEvent();
event.setExecutionSet(new InterruptingSignalEventExecutionSet(new IsInterrupting(true), new SignalRef(signalRefValue)));
return mockNode(event);
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.SignalRef in project kie-wb-common by kiegroup.
the class ProcessSignalRefProviderTest method mockIntermediateSignalEventCatchingNode.
private Node mockIntermediateSignalEventCatchingNode(String signalRefValue) {
IntermediateSignalEventCatching event = new IntermediateSignalEventCatching();
event.setExecutionSet(new CancellingSignalEventExecutionSet(new CancelActivity(true), new SignalRef(signalRefValue)));
return mockNode(event);
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.SignalRef in project kie-wb-common by kiegroup.
the class BPMNDirectDiagramMarshallerTest method testUnmarshallStartSignalEvent.
@Test
@SuppressWarnings("unchecked")
public void testUnmarshallStartSignalEvent() throws Exception {
Diagram<Graph, Metadata> diagram = unmarshall(BPMN_STARTSIGNALEVENT);
assertDiagram(diagram, 4);
assertEquals("StartSignalEvent", diagram.getMetadata().getTitle());
Node<? extends Definition, ?> startSignalEventNode = diagram.getGraph().getNode("_1876844A-4DAC-4214-8BCD-2ABA3FCC8EB5");
StartSignalEvent startSignalEvent = (StartSignalEvent) startSignalEventNode.getContent().getDefinition();
assertNotNull(startSignalEvent.getExecutionSet());
SignalRef signalRef = startSignalEvent.getExecutionSet().getSignalRef();
assertEquals("sig1", signalRef.getValue());
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.SignalRef in project kie-wb-common by kiegroup.
the class ProcessSignalRefProviderTest method mockEndSignalEventNode.
private Node mockEndSignalEventNode(String signalRefValue) {
EndSignalEvent event = new EndSignalEvent();
event.setExecutionSet(new ScopedSignalEventExecutionSet(new SignalRef(signalRefValue), new SignalScope()));
return mockNode(event);
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.SignalRef in project kie-wb-common by kiegroup.
the class ProcessSignalRefProviderTest method mockIntermediateSignalEventThrowingNode.
private Node mockIntermediateSignalEventThrowingNode(String signalRefValue) {
IntermediateSignalEventThrowing event = new IntermediateSignalEventThrowing();
event.setExecutionSet(new ScopedSignalEventExecutionSet(new SignalRef(signalRefValue), new SignalScope()));
return mockNode(event);
}
Aggregations