modify bugs of Update E2E Rollback bpmn 59/36959/2
authorYulian Han <elaine.hanyulian@huawei.com>
Tue, 20 Mar 2018 07:02:27 +0000 (15:02 +0800)
committerYulian Han <elaine.hanyulian@huawei.com>
Tue, 20 Mar 2018 07:12:38 +0000 (07:12 +0000)
Change-Id: Idaa55084f5ecb0dd3636c232cebc14fa5f0641e0
Issue-ID: SO-419
Signed-off-by: Yulian Han <elaine.hanyulian@huawei.com>
bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoUpdateE2EServiceInstanceRollback.groovy

index 2891855..1e70f95 100644 (file)
@@ -77,8 +77,9 @@ public class DoUpdateE2EServiceInstanceRollback extends AbstractServiceTaskProce
                List addResourceList = execution.getVariable("addResourceList")
         List delResourceList = execution.getVariable("delResourceList")
         execution.setVariable("addResourceList_o",  addResourceList)
-        execution.setVariable("addResourceList",  delResourceList)
         execution.setVariable("delResourceList_o",  delResourceList)
+        //exchange add and delete resource list
+        execution.setVariable("addResourceList",  delResourceList)        
         execution.setVariable("delResourceList",  addResourceList)
 
                try {
@@ -204,7 +205,7 @@ public class DoUpdateE2EServiceInstanceRollback extends AbstractServiceTaskProce
     
     } 
 
-       public void preProcessAAIGET2(DelegateExecution execution) {
+       public void preProcessAAIGET(DelegateExecution execution) {
         def isDebugEnabled=execution.getVariable("isDebugLogEnabled")  
        }
        
@@ -264,7 +265,7 @@ public class DoUpdateE2EServiceInstanceRollback extends AbstractServiceTaskProce
 
                String serviceInstanceData =
                                """<service-instance xmlns=\"${namespace}\">
-                              <resource-version">${serviceInstanceVersion}</resource-version>
+                              <resource-version">${modelUuid}</resource-version>
                                 </service-instance>""".trim()
 
                execution.setVariable("serviceInstanceData", serviceInstanceData)
@@ -310,7 +311,7 @@ public class DoUpdateE2EServiceInstanceRollback extends AbstractServiceTaskProce
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                utils.log("DEBUG"," ***** processRollbackException ***** ", isDebugEnabled)
                try{
-                       utils.log("DEBUG", "Caught an Exception in DoCreateServiceInstanceRollback", isDebugEnabled)
+                       utils.log("DEBUG", "Caught an Exception in DoUpdateE2EServiceInstanceRollback", isDebugEnabled)
                        execution.setVariable("rollbackData", null)
                        execution.setVariable("rollbackError", "Caught exception in ServiceInstance Update Rollback")
                        execution.setVariable("WorkflowException", null)