use of org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.properties.DataObjectPropertyReader in project kie-wb-common by kiegroup.
the class ArtifactsConverter method toDataObject.
private BpmnNode toDataObject(org.eclipse.bpmn2.DataObjectReference element) {
DataObjectPropertyReader p = propertyReaderFactory.of(element);
Node<View<DataObject>, Edge> node = typedFactoryManager.newNode(element.getId(), DataObject.class);
DataObject definition = node.getContent().getDefinition();
definition.setName(new Name(revertIllegalCharsAttribute(p.getName())));
definition.setType(new DataObjectType(new DataObjectTypeValue(p.getType())));
node.getContent().setBounds(p.getBounds());
definition.setDimensionsSet(p.getRectangleDimensionsSet());
definition.setFontSet(p.getFontSet());
definition.setBackgroundSet(p.getBackgroundSet());
definition.setAdvancedData(new AdvancedData(p.getMetaDataAttributes()));
return BpmnNode.of(node, p);
}
Aggregations