Search in sources :

Example 6 with EndEvent

use of org.eclipse.bpmn2.EndEvent in project kie-wb-common by kiegroup.

the class EndEventConverter method signalEvent.

private PropertyWriter signalEvent(Node<View<EndSignalEvent>, ?> n) {
    EndEvent event = bpmn2.createEndEvent();
    event.setId(n.getUUID());
    EndSignalEvent definition = n.getContent().getDefinition();
    ThrowEventPropertyWriter p = propertyWriterFactory.of(event);
    BPMNGeneralSet general = definition.getGeneral();
    p.setName(general.getName().getValue());
    p.setDocumentation(general.getDocumentation().getValue());
    p.setAssignmentsInfo(definition.getDataIOSet().getAssignmentsinfo());
    p.addSignal(definition.getExecutionSet().getSignalRef());
    p.setBounds(n.getContent().getBounds());
    return p;
}
Also used : EndSignalEvent(org.kie.workbench.common.stunner.bpmn.definition.EndSignalEvent) BaseEndEvent(org.kie.workbench.common.stunner.bpmn.definition.BaseEndEvent) EndEvent(org.eclipse.bpmn2.EndEvent) BPMNGeneralSet(org.kie.workbench.common.stunner.bpmn.definition.property.general.BPMNGeneralSet) ThrowEventPropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.ThrowEventPropertyWriter)

Aggregations

EndEvent (org.eclipse.bpmn2.EndEvent)6 BPMNGeneralSet (org.kie.workbench.common.stunner.bpmn.definition.property.general.BPMNGeneralSet)6 ThrowEventPropertyWriter (org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.ThrowEventPropertyWriter)5 BaseEndEvent (org.kie.workbench.common.stunner.bpmn.definition.BaseEndEvent)5 EndErrorEvent (org.kie.workbench.common.stunner.bpmn.definition.EndErrorEvent)2 EndMessageEvent (org.kie.workbench.common.stunner.bpmn.definition.EndMessageEvent)2 EndSignalEvent (org.kie.workbench.common.stunner.bpmn.definition.EndSignalEvent)2 EndTerminateEvent (org.kie.workbench.common.stunner.bpmn.definition.EndTerminateEvent)2 ErrorEventExecutionSet (org.kie.workbench.common.stunner.bpmn.definition.property.event.error.ErrorEventExecutionSet)2 MessageEventExecutionSet (org.kie.workbench.common.stunner.bpmn.definition.property.event.message.MessageEventExecutionSet)2 List (java.util.List)1 CancelEventDefinition (org.eclipse.bpmn2.CancelEventDefinition)1 CompensateEventDefinition (org.eclipse.bpmn2.CompensateEventDefinition)1 ErrorEventDefinition (org.eclipse.bpmn2.ErrorEventDefinition)1 EscalationEventDefinition (org.eclipse.bpmn2.EscalationEventDefinition)1 EventDefinition (org.eclipse.bpmn2.EventDefinition)1 MessageEventDefinition (org.eclipse.bpmn2.MessageEventDefinition)1 SignalEventDefinition (org.eclipse.bpmn2.SignalEventDefinition)1 TerminateEventDefinition (org.eclipse.bpmn2.TerminateEventDefinition)1 Match (org.kie.workbench.common.stunner.bpmn.backend.converters.Match)1