renameNodeTemplate(topology, nodeName, newName); if (parsingErrors != null) { Node node = (Node) MapUtil.get(objectToNodeMap, nodeName);
@Override public void process(Csar csar, Topology topology, RenameNodeOperation operation) { NameValidationUtils.validateNodeName(operation.getNewName()); AlienUtils.failIfExists(topology.getNodeTemplates(), operation.getNewName(), "A node template with the given name {} already exists in the topology {}.", operation.getNodeName(), topology.getId()); log.debug("Renaming the Node template [ {} ] with [ {} ] in the topology [ {} ] .", operation.getNodeName(), operation.getNewName(), topology.getId()); TopologyUtils.renameNodeTemplate(topology, operation.getNodeName(), operation.getNewName()); workflowBuilderService.renameNode(topology, csar, operation.getNodeName(), operation.getNewName()); } }