use of org.eclipse.bpmn2.StartEvent in project kie-wb-common by kiegroup.
the class StartEventConverter method signalEvent.
private PropertyWriter signalEvent(Node<View<StartSignalEvent>, ?> n) {
StartEvent event = bpmn2.createStartEvent();
event.setId(n.getUUID());
StartSignalEvent definition = n.getContent().getDefinition();
CatchEventPropertyWriter p = propertyWriterFactory.of(event);
BPMNGeneralSet general = definition.getGeneral();
p.setName(general.getName().getValue());
p.setDocumentation(general.getName().getValue());
p.setAssignmentsInfo(definition.getDataIOSet().getAssignmentsinfo());
InterruptingSignalEventExecutionSet executionSet = definition.getExecutionSet();
p.addSignal(executionSet.getSignalRef());
p.setBounds(n.getContent().getBounds());
return p;
}
Aggregations