Fix variable name and logging 55/42855/1
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Sat, 14 Apr 2018 12:37:32 +0000 (12:37 +0000)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Sat, 14 Apr 2018 12:37:32 +0000 (12:37 +0000)
Fix variable name and logging

Change-Id: I773b32427470a889d09e1b7920ba5985aaae3689
Issue-ID: SO-422
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoDeleteE2EServiceInstance.groovy

index e799ecf..98a1a43 100644 (file)
@@ -358,16 +358,18 @@ public class DoDeleteE2EServiceInstance extends AbstractServiceTaskProcessor {
     public void postDecomposeService(DelegateExecution execution) {
         def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
 
-        utils.log("DEBUG", " ***** Inside processDecomposition() of  create generic e2e service flow ***** ", isDebugEnabled)
+        utils.log("DEBUG", " ***** Inside processDecomposition() of  delete generic e2e service flow ***** ", isDebugEnabled)
         try {
             ServiceDecomposition serviceDecomposition = execution.getVariable("serviceDecomposition")
             List<Resource> deleteResourceList = serviceDecomposition.getServiceResources()
             execution.setVariable("deleteResourceList", deleteResourceList)
+            execution.setVariable("resourceInstanceIDs", execution.getVariable("serviceRelationShip"))
         } catch (Exception ex) {
             String exceptionMessage = "Bpmn error encountered in  create generic e2e service flow. processDecomposition() - " + ex.getMessage()
             utils.log("DEBUG", exceptionMessage, isDebugEnabled)
             exceptionUtil.buildAndThrowWorkflowException(execution, 7000, exceptionMessage)
         }
+        utils.log("DEBUG", " ***** exit processDecomposition() of  delete generic e2e service flow ***** ", isDebugEnabled)
     }
 
     public void preInitResourcesOperStatus(DelegateExecution execution){