use of org.kie.workbench.common.stunner.bpmn.definition.StartTimerEvent in project kie-wb-common by kiegroup.
the class StartEventConverter method timerEvent.
private PropertyWriter timerEvent(Node<View<StartTimerEvent>, ?> n) {
StartEvent event = bpmn2.createStartEvent();
event.setId(n.getUUID());
StartTimerEvent definition = n.getContent().getDefinition();
CatchEventPropertyWriter p = propertyWriterFactory.of(event);
BPMNGeneralSet general = definition.getGeneral();
p.setName(general.getName().getValue());
p.setDocumentation(general.getName().getValue());
InterruptingTimerEventExecutionSet executionSet = definition.getExecutionSet();
event.setIsInterrupting(executionSet.getIsInterrupting().getValue());
p.addTimer(executionSet.getTimerSettings());
p.setSimulationSet(definition.getSimulationSet());
p.setBounds(n.getContent().getBounds());
return p;
}
Aggregations