AT&T 1712 and 1802 release code
[so.git] / bpmn / MSOInfrastructureBPMN / src / main / groovy / org / openecomp / mso / bpmn / infrastructure / scripts / UpdateNetworkInstance.groovy
index 05fde9d..33eb4f9 100644 (file)
@@ -30,7 +30,7 @@ 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
@@ -44,7 +44,7 @@ public class UpdateNetworkInstance extends AbstractServiceTaskProcessor {
        ExceptionUtil exceptionUtil = new ExceptionUtil()
        JsonUtils jsonUtil = new JsonUtils()
 
-       public InitializeProcessVariables(Execution execution){
+       public InitializeProcessVariables(DelegateExecution execution){
 
                execution.setVariable(Prefix + "source", "")
                execution.setVariable(Prefix + "Success", false)
@@ -67,7 +67,7 @@ public class UpdateNetworkInstance extends AbstractServiceTaskProcessor {
         * This method is executed during the preProcessRequest task of the <class>UpdateNetworkInstance.bpmn</class> process.
         * @param execution
         */
-       public void preProcessRequest (Execution execution) {
+       public void preProcessRequest (DelegateExecution execution) {
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix",Prefix)
 
@@ -150,7 +150,7 @@ public class UpdateNetworkInstance extends AbstractServiceTaskProcessor {
                }
        }
 
-       public void sendSyncResponse (Execution execution) {
+       public void sendSyncResponse (DelegateExecution execution) {
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix",Prefix)
 
@@ -175,7 +175,7 @@ public class UpdateNetworkInstance extends AbstractServiceTaskProcessor {
        }
 
 
-       public void getNetworkModelInfo (Execution execution) {
+       public void getNetworkModelInfo (DelegateExecution execution) {
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix", Prefix)
 
@@ -200,7 +200,7 @@ public class UpdateNetworkInstance extends AbstractServiceTaskProcessor {
        }
 
 
-       public void sendSyncError (Execution execution) {
+       public void sendSyncError (DelegateExecution execution) {
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix", Prefix)
 
@@ -222,7 +222,7 @@ public class UpdateNetworkInstance extends AbstractServiceTaskProcessor {
 
        }
 
-       public void prepareDBRequestError (Execution execution) {
+       public void prepareDBRequestError (DelegateExecution execution) {
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix",Prefix)
 
@@ -270,7 +270,7 @@ public class UpdateNetworkInstance extends AbstractServiceTaskProcessor {
 
         }
 
-       public void prepareCompletion (Execution execution) {
+       public void prepareCompletion (DelegateExecution execution) {
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix",Prefix)
 
@@ -318,7 +318,7 @@ public class UpdateNetworkInstance 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)
 
@@ -352,7 +352,7 @@ public class UpdateNetworkInstance extends AbstractServiceTaskProcessor {
        //     Build Error Section
        // *******************************
 
-       public void processRollbackData (Execution execution) {
+       public void processRollbackData (DelegateExecution execution) {
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix", Prefix)
 
@@ -373,7 +373,7 @@ public class UpdateNetworkInstance extends AbstractServiceTaskProcessor {
        }
 
        // Prepare for FalloutHandler
-       public void buildErrorResponse (Execution execution) {
+       public void buildErrorResponse (DelegateExecution execution) {
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix", Prefix)
 
@@ -434,7 +434,7 @@ public class UpdateNetworkInstance extends AbstractServiceTaskProcessor {
 
        }
 
-       public void processJavaException(Execution execution){
+       public void processJavaException(DelegateExecution execution){
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
                execution.setVariable("prefix",Prefix)
                try{