summaryrefslogtreecommitdiffstats
path: root/bpmn/so-bpmn-infrastructure-common/src/main
diff options
context:
space:
mode:
authorhyu2010 <hyu2010b@gmail.com>2021-01-15 19:23:41 -0500
committerhyu2010 <hyu2010b@gmail.com>2021-01-19 11:47:26 -0500
commit70b78e89bc8041f9a54013214b2f660e8c8e1fb1 (patch)
tree179733c3b5bc387ccd55504e7992798adf7420dc /bpmn/so-bpmn-infrastructure-common/src/main
parentfbb5a5dd77092f0fd07ef2c1c0c27f1502f14a91 (diff)
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 <hyu2010b@gmail.com> Change-Id: I0e3ce5b8819aab61138d3eb7e119b9c9aa7e5a55
Diffstat (limited to 'bpmn/so-bpmn-infrastructure-common/src/main')
-rw-r--r--bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DoActivateTnNssi.groovy13
1 files changed, 13 insertions, 0 deletions
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")