use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.TextAnnotationPropertyWriter in project kie-wb-common by kiegroup.
the class ArtifactsConverter method toTextAnnotation.
private PropertyWriter toTextAnnotation(Node<View<TextAnnotation>, ?> node) {
org.eclipse.bpmn2.TextAnnotation element = bpmn2.createTextAnnotation();
element.setId(node.getUUID());
TextAnnotationPropertyWriter writer = propertyWriterFactory.of(element);
TextAnnotation definition = node.getContent().getDefinition();
BPMNGeneralSet general = definition.getGeneral();
writer.setName(general.getName().getValue());
writer.setDocumentation(general.getDocumentation().getValue());
writer.setMetaData(definition.getAdvancedData().getMetaDataAttributes());
writer.setAbsoluteBounds(node);
return writer;
}
Aggregations