use of org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.properties.CallActivityPropertyReader in project kie-wb-common by kiegroup.
the class BaseCallActivityConverter method convert.
@SuppressWarnings("unchecked")
public Result<BpmnNode> convert(CallActivity activity) {
CallActivityPropertyReader p = propertyReaderFactory.of(activity);
Node<View<R>, Edge> node = createNode(activity, p);
R definition = node.getContent().getDefinition();
definition.setGeneral(new BPMNGeneralSet(new Name(p.getName()), new Documentation(p.getDocumentation())));
definition.setExecutionSet(createReusableSubprocessTaskExecutionSet(activity, p));
definition.setDataIOSet(new DataIOSet(p.getAssignmentsInfo()));
node.getContent().setBounds(p.getBounds());
definition.setSimulationSet(p.getSimulationSet());
definition.setDimensionsSet(p.getRectangleDimensionsSet());
definition.setFontSet(p.getFontSet());
definition.setBackgroundSet(p.getBackgroundSet());
definition.setAdvancedData(new AdvancedData(p.getMetaDataAttributes()));
return Result.success(BpmnNode.of(node, p));
}
Aggregations