diff options
author | c00149107 <chenchuanyu@huawei.com> | 2017-12-15 15:38:49 +0800 |
---|---|---|
committer | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2018-01-04 09:25:27 +0000 |
commit | e4138949b0c7e4d5e6146f463fb47471ebfb6162 (patch) | |
tree | d347fc1cc073cb1f65337f07c5833b301a06a177 /bpmn/MSOInfrastructureBPMN/src/main/groovy | |
parent | b63648653dfaafa34a9d978e695a8b0be1408eb5 (diff) |
Fix Unexpected service create issue
Fix Unexpected service create issue.Reset the variable before update it.
Change-Id: Id0b5459ad8ea76264d8502f5d69edd4c833d8229
Issue-ID: SO-358
Signed-off-by: c00149107 <chenchuanyu@huawei.com>
Diffstat (limited to 'bpmn/MSOInfrastructureBPMN/src/main/groovy')
-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)){ |