use of org.kie.workbench.common.stunner.bpmn.definition.property.event.link.LinkEventExecutionSet in project kie-wb-common by kiegroup.
the class IntermediateThrowEventConverter method linkEvent.
protected BpmnNode linkEvent(IntermediateThrowEvent event) {
Node<View<IntermediateLinkEventThrowing>, Edge> node = factoryManager.newNode(event.getId(), IntermediateLinkEventThrowing.class);
IntermediateLinkEventThrowing definition = node.getContent().getDefinition();
EventPropertyReader p = propertyReaderFactory.of(event);
node.getContent().setBounds(p.getBounds());
definition.setGeneral(new BPMNGeneralSet(new Name(p.getName()), new Documentation(p.getDocumentation())));
definition.setAdvancedData(new AdvancedData(p.getMetaDataAttributes()));
definition.setDimensionsSet(p.getCircleDimensionSet());
definition.setFontSet(p.getFontSet());
definition.setBackgroundSet(p.getBackgroundSet());
definition.setDataIOSet(new DataIOSet(p.getAssignmentsInfo()));
definition.setExecutionSet(new LinkEventExecutionSet(new LinkRef(p.getLinkRef())));
return BpmnNode.of(node, p);
}
Aggregations