From 2bbef5a5554ada0d12f7e9ae3bf88efbca68d8a8 Mon Sep 17 00:00:00 2001 From: "Kuleshov, Elena" Date: Wed, 29 Apr 2020 16:19:17 -0400 Subject: mso to support rollback for Add Rollback and Manual for CM BBs for rainy day handling table Add rollback flow generation logic for Change Management flows. Update Robot tests for ConfigModify Manual Task Add a test for rollback for inPlaceSoftwareUpdate, remove manualhandling tests for inPlaceSoftwareUpdate Issue-ID: SO-2853 Signed-off-by: Benjamin, Max (mb388a) Change-Id: I6a68662fee5295117f6f39ffe3fa97b7ef4e2116 --- .../infrastructure/workflow/tasks/WorkflowActionBBTasks.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bpmn/so-bpmn-tasks/src/main/java/org/onap') diff --git a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowActionBBTasks.java b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowActionBBTasks.java index 5edb2b9dd8..86f7d12ad6 100644 --- a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowActionBBTasks.java +++ b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowActionBBTasks.java @@ -305,6 +305,18 @@ public class WorkflowActionBBTasks { flowName = flowName.replaceFirst("Activate", "Deactivate"); } else if (flowName.startsWith("Add")) { flowName = flowName.replaceFirst("Add", "Delete"); + } else if (flowName.startsWith("VNF")) { + if (flowName.startsWith("VNFSet")) { + flowName = flowName.replaceFirst("VNFSet", "VNFUnset"); + } else if (flowName.startsWith("VNFLock")) { + flowName = flowName.replaceFirst("VNFLock", "VNFUnlock"); + } else if (flowName.startsWith("VNFStop")) { + flowName = flowName.replaceFirst("VNFStop", "VNFStart"); + } else if (flowName.startsWith("VNFQuiesce")) { + flowName = flowName.replaceFirst("VNFQuiesce", "VNFResume"); + } else { + continue; + } } else { continue; } -- cgit 1.2.3-korg