From a8480d1fec5b5696be04eb887f4cbed6b56238be Mon Sep 17 00:00:00 2001 From: mojahidi Date: Thu, 19 Jul 2018 12:35:31 +0530 Subject: Add support for workflowId and workflowVersionId Enhance operation data model and APIs to support workflowId and workflowVersionId Change-Id: Ib8772027a3e0147ae0bb59811a9b31fe46975ac6 Issue-ID: SDC-1535 Signed-off-by: mojahidi --- .../sdc/be/components/impl/InterfaceOperationBusinessLogic.java | 5 ++++- .../openecomp/sdc/be/datamodel/utils/InterfaceUIDataConverter.java | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'catalog-be/src/main/java/org') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/InterfaceOperationBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/InterfaceOperationBusinessLogic.java index e61e925e97..3fd5df0ba9 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/InterfaceOperationBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/InterfaceOperationBusinessLogic.java @@ -47,7 +47,7 @@ import java.util.*; @Component("interfaceOperationBusinessLogic") public class InterfaceOperationBusinessLogic extends ComponentBusinessLogic{ - private static final Logger LOGGER = LoggerFactory.getLogger(ResourceBusinessLogic.class); + private static final Logger LOGGER = LoggerFactory.getLogger(InterfaceOperationBusinessLogic.class); @Autowired private InterfaceOperationValidation interfaceOperationValidation; @@ -227,6 +227,9 @@ public class InterfaceOperationBusinessLogic extends ComponentBusinessLogic{ dbOperation.setName(updatedOperation.getName()); dbOperation.setDescription(updatedOperation.getDescription()); dbOperation.setInputs(updatedOperation.getInputs()); + dbOperation.setOutputs(updatedOperation.getOutputs()); + dbOperation.setWorkflowId(updatedOperation.getWorkflowId()); + dbOperation.setWorkflowVersionId(updatedOperation.getWorkflowVersionId()); return dbOperation; } diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/utils/InterfaceUIDataConverter.java b/catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/utils/InterfaceUIDataConverter.java index d7d2c6b7ef..98a49b023d 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/utils/InterfaceUIDataConverter.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/datamodel/utils/InterfaceUIDataConverter.java @@ -56,6 +56,8 @@ public class InterfaceUIDataConverter { operationData.setUniqueId(interfaceOperation.getUniqueId()); operationData.setInputs(inputs); operationData.setOutputs(outputs); + operationData.setWorkflowId(interfaceOperation.getWorkflowId()); + operationData.setWorkflowVersionId(interfaceOperation.getWorkflowVersionId()); return operationData; } @@ -84,6 +86,8 @@ public class InterfaceUIDataConverter { interfaceOperationDataDefinition.setInputParams(inputParams); interfaceOperationDataDefinition.setOutputParams(outputParams); interfaceOperationDataDefinition.setArtifactUUID(operationData.getImplementation().getArtifactUUID()); + interfaceOperationDataDefinition.setWorkflowId(operationData.getWorkflowId()); + interfaceOperationDataDefinition.setWorkflowVersionId(operationData.getWorkflowVersionId()); return interfaceOperationDataDefinition; } -- cgit 1.2.3-korg