AT&T 1712 and 1802 release code
[so.git] / bpmn / MSOInfrastructureBPMN / src / main / groovy / org / openecomp / mso / bpmn / infrastructure / scripts / DoUpdateE2EServiceInstance.groovy
index 857ed8d..0372d95 100644 (file)
@@ -42,7 +42,7 @@ import javax.xml.parsers.DocumentBuilder
 import javax.xml.parsers.DocumentBuilderFactory\r
 \r
 import org.camunda.bpm.engine.delegate.BpmnError\r
-import org.camunda.bpm.engine.runtime.Execution\r
+import org.camunda.bpm.engine.delegate.DelegateExecution\r
 import org.json.JSONObject;\r
 import org.json.JSONArray;\r
 import org.apache.commons.lang3.*\r
@@ -87,7 +87,7 @@ public class DoUpdateE2EServiceInstance extends AbstractServiceTaskProcessor {
        ExceptionUtil exceptionUtil = new ExceptionUtil()\r
        JsonUtils jsonUtil = new JsonUtils()\r
 \r
-       public void preProcessRequest (Execution execution) {\r
+       public void preProcessRequest (DelegateExecution execution) {\r
            //only for dug\r
                execution.setVariable("isDebugLogEnabled","true")\r
                execution.setVariable("unit_test", "true")\r
@@ -231,7 +231,7 @@ public class DoUpdateE2EServiceInstance extends AbstractServiceTaskProcessor {
                utils.log("INFO", "Exited " + method, isDebugEnabled)\r
        }\r
        \r
-       public void postProcessAAIGET(Execution execution) {\r
+       public void postProcessAAIGET(DelegateExecution execution) {\r
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
                utils.log("INFO"," ***** postProcessAAIGET ***** ", isDebugEnabled)\r
                String msg = ""\r
@@ -378,7 +378,7 @@ public class DoUpdateE2EServiceInstance extends AbstractServiceTaskProcessor {
        }\r
        \r
        \r
-       public void preInitResourcesOperStatus(Execution execution){\r
+       public void preInitResourcesOperStatus(DelegateExecution execution){\r
         def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
 \r
         utils.log("INFO", " ======== STARTED preInitResourcesOperStatus Process ======== ", isDebugEnabled)\r
@@ -439,7 +439,7 @@ public class DoUpdateE2EServiceInstance extends AbstractServiceTaskProcessor {
     /**\r
         * Init the service Operation Status\r
         */\r
-       public void preUpdateServiceOperationStatus(Execution execution){\r
+       public void preUpdateServiceOperationStatus(DelegateExecution execution){\r
         def method = getClass().getSimpleName() + '.preUpdateServiceOperationStatus(' +'execution=' + execution.getId() +')'\r
                def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
                utils.log("INFO","Entered " + method, isDebugEnabled)\r
@@ -502,36 +502,36 @@ public class DoUpdateE2EServiceInstance extends AbstractServiceTaskProcessor {
         utils.log("INFO", "Exited " + method, isDebugEnabled)\r
        }\r
     \r
-    public void postResourcesOperStatus(Execution execution) {\r
+    public void postResourcesOperStatus(DelegateExecution execution) {\r
         def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
     \r
     }\r
     \r
-    public void preCompareModelVersions(Execution execution) {\r
+    public void preCompareModelVersions(DelegateExecution execution) {\r
         def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
 \r
     }\r
 \r
-    public void postCompareModelVersions(Execution execution) {\r
+    public void postCompareModelVersions(DelegateExecution execution) {\r
         def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
     }\r
     \r
-    public void preProcessForAddResource(Execution execution) {\r
+    public void preProcessForAddResource(DelegateExecution execution) {\r
         def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
 \r
     }\r
 \r
-    public void postProcessForAddResource(Execution execution) {\r
+    public void postProcessForAddResource(DelegateExecution execution) {\r
         def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
     \r
     }\r
     \r
-    public void preProcessForDeleteResource(Execution execution) {\r
+    public void preProcessForDeleteResource(DelegateExecution execution) {\r
         def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
 \r
     }\r
 \r
-    public void postProcessForDeleteResource(Execution execution) {\r
+    public void postProcessForDeleteResource(DelegateExecution execution) {\r
         def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
     \r
     }    \r