use of org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.properties.DefinitionsPropertyReader in project kie-wb-common by kiegroup.
the class BaseRootProcessConverter method convertProcessNode.
private BpmnNode convertProcessNode(String id, Process process) {
Node<View<D>, Edge> diagramNode = createNode(id);
D definition = diagramNode.getContent().getDefinition();
DefinitionsPropertyReader d = delegate.propertyReaderFactory.of(delegate.definitionResolver.getDefinitions());
ProcessPropertyReader p = delegate.propertyReaderFactory.of(process);
definition.setDiagramSet(createDiagramSet(process, p, d));
definition.setCaseManagementSet(new CaseManagementSet(new CaseIdPrefix(p.getCaseIdPrefix()), new CaseRoles(p.getCaseRoles()), new CaseFileVariables(p.getCaseFileVariables())));
definition.setProcessData(createProcessData(p.getProcessVariables()));
definition.setAdvancedData(createAdvancedData(p.getGlobalVariables(), p.getMetaDataAttributes()));
diagramNode.getContent().setBounds(p.getBounds());
definition.setFontSet(p.getFontSet());
definition.setBackgroundSet(p.getBackgroundSet());
return BpmnNode.of(diagramNode, p);
}
Aggregations