From 70b78e89bc8041f9a54013214b2f660e8c8e1fb1 Mon Sep 17 00:00:00 2001 From: hyu2010 Date: Fri, 15 Jan 2021 19:23:41 -0500 Subject: Fixes for bugs found in Transport Slicing integration This update contains for the fixes for the following JIRAs: SO-3483: Transport Slicing integration: status field in resource_operation_status table should be in capital letters SO-3488: Transport Slicing integration: orchestration status of TN NSSI is missing a 'd' in 'activate' and 'deactivate' Issue-ID: SO-3483 Issue-ID: SO-3488 Signed-off-by: hyu2010 Change-Id: I0e3ce5b8819aab61138d3eb7e119b9c9aa7e5a55 --- .../so/bpmn/infrastructure/scripts/DoActivateTnNssi.groovy | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'bpmn/so-bpmn-infrastructure-common') diff --git a/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DoActivateTnNssi.groovy b/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DoActivateTnNssi.groovy index f3f8c8bacf..ff7b0a3b6d 100644 --- a/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DoActivateTnNssi.groovy +++ b/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DoActivateTnNssi.groovy @@ -117,6 +117,19 @@ public class DoActivateTnNssi extends AbstractServiceTaskProcessor { } + String getOrchStatusBasedOnActionType(String actionType) { + String res = "unknown" + if (actionType.equals("activate")) { + res = "activated" + } else if (actionType.equals("deactivate")) { + res = "deactivated" + } else { + logger.error("ERROR: getOrchStatusBasedOnActionType bad actionType= \n" + actionType) + } + + return res + } + void updateAAIOrchStatus(DelegateExecution execution) { logger.debug("Start updateAAIOrchStatus") String tnNssiId = execution.getVariable("sliceServiceInstanceId") -- cgit 1.2.3-korg