AT&T 1712 and 1802 release code
[so.git] / bpmn / MSOInfrastructureBPMN / src / main / groovy / org / openecomp / mso / bpmn / infrastructure / scripts / DeleteNetworkInstance.groovy
index dab1892..a9aef7f 100644 (file)
@@ -29,7 +29,7 @@ import org.openecomp.mso.bpmn.core.json.JsonUtils;
 import org.openecomp.mso.rest.APIResponse
 import java.util.UUID;
 import org.camunda.bpm.engine.delegate.BpmnError
-import org.camunda.bpm.engine.runtime.Execution
+import org.camunda.bpm.engine.delegate.DelegateExecution
 import org.apache.commons.lang3.*
 import org.apache.commons.codec.binary.Base64;
 import org.springframework.web.util.UriUtils
@@ -45,7 +45,7 @@ public class DeleteNetworkInstance extends AbstractServiceTaskProcessor {
        NetworkUtils networkUtils = new NetworkUtils()
 
 
-       public InitializeProcessVariables(Execution execution){
+       public InitializeProcessVariables(DelegateExecution execution){
                
                execution.setVariable(Prefix + "Success", false)
                
@@ -59,7 +59,7 @@ public class DeleteNetworkInstance extends AbstractServiceTaskProcessor {
        //     Pre or Prepare Request Section
        // **************************************************
 
-       public void preProcessRequest (Execution execution) {
+       public void preProcessRequest (DelegateExecution execution) {
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix",Prefix)
 
@@ -145,7 +145,7 @@ public class DeleteNetworkInstance extends AbstractServiceTaskProcessor {
 
        }
 
-       public void getNetworkModelInfo (Execution execution) {
+       public void getNetworkModelInfo (DelegateExecution execution) {
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix", Prefix)
 
@@ -169,7 +169,7 @@ public class DeleteNetworkInstance extends AbstractServiceTaskProcessor {
 
        }
        
-       public void sendSyncResponse (Execution execution) {
+       public void sendSyncResponse (DelegateExecution execution) {
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix",Prefix)
 
@@ -196,7 +196,7 @@ public class DeleteNetworkInstance extends AbstractServiceTaskProcessor {
 
        }
 
-       public void prepareCompletion (Execution execution) {
+       public void prepareCompletion (DelegateExecution execution) {
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix",Prefix)
 
@@ -236,7 +236,7 @@ public class DeleteNetworkInstance extends AbstractServiceTaskProcessor {
 
        }
        
-       public void prepareDBRequestError (Execution execution) {
+       public void prepareDBRequestError (DelegateExecution execution) {
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix", Prefix)
 
@@ -284,7 +284,7 @@ public class DeleteNetworkInstance extends AbstractServiceTaskProcessor {
        //     Post or Validate Response Section
        // **************************************************
 
-       public void postProcessResponse (Execution execution) {
+       public void postProcessResponse (DelegateExecution execution) {
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix", Prefix)
        
@@ -318,7 +318,7 @@ public class DeleteNetworkInstance extends AbstractServiceTaskProcessor {
        // *******************************
 
        // Prepare for FalloutHandler
-       public void buildErrorResponse (Execution execution) {
+       public void buildErrorResponse (DelegateExecution execution) {
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix", Prefix)
 
@@ -380,7 +380,7 @@ public class DeleteNetworkInstance extends AbstractServiceTaskProcessor {
        }
 
 
-       public void sendSyncError (Execution execution) {
+       public void sendSyncError (DelegateExecution execution) {
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix", Prefix)
 
@@ -400,7 +400,7 @@ public class DeleteNetworkInstance extends AbstractServiceTaskProcessor {
                }
        }
 
-       public void processJavaException(Execution execution){
+       public void processJavaException(DelegateExecution execution){
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix",Prefix)
                try{