aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2018-04-24 15:29:30 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-24 15:29:30 +0000
commit4e40f1186d6dac2bf112ee21dccf5b6a463c00b8 (patch)
tree655aebac176012cb0ee97cd8b7c50269f51c0b81
parentf6ed022b9b87153d5af9f9f4d08231ecbb36fadb (diff)
parent6a119f03179c53e94992d5b9af71ce92d6516186 (diff)
Merge "Fix to get the resource from ordered list"
-rw-r--r--bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoDeleteResourcesV1.groovy4
1 files changed, 2 insertions, 2 deletions
diff --git a/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoDeleteResourcesV1.groovy b/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoDeleteResourcesV1.groovy
index 46dd7d6128..5dd8109c74 100644
--- a/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoDeleteResourcesV1.groovy
+++ b/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoDeleteResourcesV1.groovy
@@ -193,7 +193,7 @@ public class DoDeleteResourcesV1 extends AbstractServiceTaskProcessor {
String isContainsWanResource = wanResources.isEmpty() ? "false" : "true"
execution.setVariable("isContainsWanResource", isContainsWanResource)
execution.setVariable("currentResourceIndex", 0)
- execution.setVariable("resourceSequence", resourceSequence)
+ execution.setVariable("resourceSequence", sequencedResourceList)
utils.log("INFO", "resourceSequence: " + resourceSequence, isDebugEnabled)
execution.setVariable("wanResources", wanResources)
utils.log("INFO", " ======== END sequenceResource Process ======== ", isDebugEnabled)
@@ -208,7 +208,7 @@ public class DoDeleteResourcesV1 extends AbstractServiceTaskProcessor {
utils.log("INFO", " ======== STARTED preResourceDelete Process ======== ", isDebugEnabled)
- List<Resource> existResourceList = execution.getVariable("deleteResourceList")
+ List<Resource> existResourceList = execution.getVariable("resourceSequence")
int currentIndex = execution.getVariable("currentResourceIndex")
Resource curResource = existResourceList.get(currentIndex);