Search in sources :

Example 6 with SignalRef

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);
}
Also used : SignalRef(org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.SignalRef) StartSignalEvent(org.kie.workbench.common.stunner.bpmn.definition.StartSignalEvent) IsInterrupting(org.kie.workbench.common.stunner.bpmn.definition.property.event.IsInterrupting) InterruptingSignalEventExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.InterruptingSignalEventExecutionSet)

Example 7 with SignalRef

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);
}
Also used : SignalRef(org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.SignalRef) IntermediateSignalEventCatching(org.kie.workbench.common.stunner.bpmn.definition.IntermediateSignalEventCatching) CancellingSignalEventExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.CancellingSignalEventExecutionSet) CancelActivity(org.kie.workbench.common.stunner.bpmn.definition.property.event.CancelActivity)

Example 8 with SignalRef

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());
}
Also used : SignalRef(org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.SignalRef) StartSignalEvent(org.kie.workbench.common.stunner.bpmn.definition.StartSignalEvent) Graph(org.kie.workbench.common.stunner.core.graph.Graph) Metadata(org.kie.workbench.common.stunner.core.diagram.Metadata) Test(org.junit.Test)

Example 9 with SignalRef

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);
}
Also used : SignalRef(org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.SignalRef) ScopedSignalEventExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.ScopedSignalEventExecutionSet) EndSignalEvent(org.kie.workbench.common.stunner.bpmn.definition.EndSignalEvent) SignalScope(org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.SignalScope)

Example 10 with SignalRef

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);
}
Also used : SignalRef(org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.SignalRef) ScopedSignalEventExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.ScopedSignalEventExecutionSet) SignalScope(org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.SignalScope) IntermediateSignalEventThrowing(org.kie.workbench.common.stunner.bpmn.definition.IntermediateSignalEventThrowing)

Aggregations

SignalRef (org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.SignalRef)11 ScopedSignalEventExecutionSet (org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.ScopedSignalEventExecutionSet)5 SignalScope (org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.SignalScope)5 EventPropertyReader (org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.properties.EventPropertyReader)4 StartSignalEvent (org.kie.workbench.common.stunner.bpmn.definition.StartSignalEvent)4 DataIOSet (org.kie.workbench.common.stunner.bpmn.definition.property.dataio.DataIOSet)4 BPMNGeneralSet (org.kie.workbench.common.stunner.bpmn.definition.property.general.BPMNGeneralSet)4 Documentation (org.kie.workbench.common.stunner.bpmn.definition.property.general.Documentation)4 Name (org.kie.workbench.common.stunner.bpmn.definition.property.general.Name)4 Edge (org.kie.workbench.common.stunner.core.graph.Edge)4 View (org.kie.workbench.common.stunner.core.graph.content.view.View)4 Test (org.junit.Test)3 CatchEventPropertyReader (org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.properties.CatchEventPropertyReader)2 ThrowEventPropertyReader (org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.properties.ThrowEventPropertyReader)2 EndSignalEvent (org.kie.workbench.common.stunner.bpmn.definition.EndSignalEvent)2 IntermediateSignalEventCatching (org.kie.workbench.common.stunner.bpmn.definition.IntermediateSignalEventCatching)2 IntermediateSignalEventThrowing (org.kie.workbench.common.stunner.bpmn.definition.IntermediateSignalEventThrowing)2 CancelActivity (org.kie.workbench.common.stunner.bpmn.definition.property.event.CancelActivity)2 IsInterrupting (org.kie.workbench.common.stunner.bpmn.definition.property.event.IsInterrupting)2 CancellingSignalEventExecutionSet (org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.CancellingSignalEventExecutionSet)2