diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2017-12-18 06:45:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-12-18 06:45:55 +0000 |
commit | ec328042dba6acf13fedc43fb12d659bcca08075 (patch) | |
tree | ee429bf5cf2507af35f068f1a5ddc6d57f566cb9 | |
parent | 29b48d8bbca69005499904507674b971ed9c3d3e (diff) | |
parent | 2e10063fbe0c4f407f07fb4971d629fa891b8ee2 (diff) |
Merge "Fix Unexpected service create issue"
-rw-r--r-- | bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateE2EServiceInstance.groovy | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateE2EServiceInstance.groovy b/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateE2EServiceInstance.groovy index 9404364910..d15be38042 100644 --- a/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateE2EServiceInstance.groovy +++ b/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateE2EServiceInstance.groovy @@ -413,7 +413,11 @@ public class DoCreateE2EServiceInstance extends AbstractServiceTaskProcessor { String nsServiceDescription = jsonUtil.getJsonValue(incomingRequest, "service.description") execution.setVariable("nsServiceDescription", nsServiceDescription) utils.log("INFO", "Prepare VFC Request nsServiceDescription:" + nsServiceDescription, isDebugEnabled) - List<String> resourceList = jsonUtil.StringArrayToList(execution, resourcesStr) + List<String> resourceList = jsonUtil.StringArrayToList(execution, resourcesStr) + //reset the variables + execution.setVariable("resourceUUID", "") + execution.setVariable("resourceInvariantUUID", "") + execution.setVariable("resourceParameters", "") for(String resource : resourceList){ String resourceName = jsonUtil.getJsonValue(resource, "resourceName") if(StringUtils.containsIgnoreCase(resourceName, resourceType)){ |