AT&T 1712 and 1802 release code
[so.git] / bpmn / MSOCommonBPMN / src / main / groovy / org / openecomp / mso / bpmn / common / scripts / FalloutHandler.groovy
index 8237fcf..0356397 100644 (file)
@@ -23,13 +23,13 @@ package org.openecomp.mso.bpmn.common.scripts
 import java.text.SimpleDateFormat\r
 \r
 import org.apache.commons.lang3.*\r
-import org.camunda.bpm.engine.runtime.Execution\r
+import org.camunda.bpm.engine.delegate.DelegateExecution\r
 \r
 public class FalloutHandler extends AbstractServiceTaskProcessor {\r
        String Prefix="FH_"\r
        ExceptionUtil exceptionUtil = new ExceptionUtil()\r
        \r
-       public initializeProcessVariables(Execution execution){\r
+       public initializeProcessVariables(DelegateExecution execution){\r
                def method = getClass().getSimpleName() + '.initializeProcessVariables(' +'execution=' + execution.getId() +')'\r
                def isDebugLogEnabled = execution.getVariable('isDebugLogEnabled')\r
                logDebug('Entered ' + method, isDebugLogEnabled)\r
@@ -93,7 +93,7 @@ public class FalloutHandler extends AbstractServiceTaskProcessor {
                }\r
        }\r
        \r
-       public void preProcessRequest (Execution execution) {\r
+       public void preProcessRequest (DelegateExecution execution) {\r
                def method = getClass().getSimpleName() + '.preProcessRequest(' +'execution=' + execution.getId() +')'\r
                def isDebugLogEnabled = execution.getVariable('isDebugLogEnabled')\r
                logDebug('Entered ' + method, isDebugLogEnabled)\r
@@ -207,7 +207,7 @@ public class FalloutHandler extends AbstractServiceTaskProcessor {
                utils.log("DEBUG","OUTOF --> Initialize Variables Fallout Handler #########",isDebugLogEnabled);\r
        }\r
        \r
-       public String updateRequestPayload (Execution execution){\r
+       public String updateRequestPayload (DelegateExecution execution){\r
                def method = getClass().getSimpleName() + '.updateRequestPayload(' +'execution=' + execution.getId() +')'\r
                def isDebugLogEnabled = execution.getVariable('isDebugLogEnabled')\r
                logDebug('Entered ' + method, isDebugLogEnabled)\r
@@ -238,7 +238,7 @@ public class FalloutHandler extends AbstractServiceTaskProcessor {
                }\r
        }\r
        \r
-       public String updateRequestInfraPayload (Execution execution){\r
+       public String updateRequestInfraPayload (DelegateExecution execution){\r
                def method = getClass().getSimpleName() + '.updateRequestInfraPayload(' +'execution=' + execution.getId() +')'\r
                def isDebugLogEnabled = execution.getVariable('isDebugLogEnabled')\r
                logDebug('Entered ' + method, isDebugLogEnabled)\r
@@ -268,7 +268,7 @@ public class FalloutHandler extends AbstractServiceTaskProcessor {
                }\r
        }\r
        \r
-       public String updateRequestGammaPayload (Execution execution){\r
+       public String updateRequestGammaPayload (DelegateExecution execution){\r
                def method = getClass().getSimpleName() + '.updateRequestGammaPayload(' +'execution=' + execution.getId() +')'\r
                def isDebugLogEnabled = execution.getVariable('isDebugLogEnabled')\r
                logDebug('Entered ' + method, isDebugLogEnabled)\r
@@ -298,7 +298,7 @@ public class FalloutHandler extends AbstractServiceTaskProcessor {
                }\r
        }\r
        \r
-       public String updateResponseStatusPayload (Execution execution){\r
+       public String updateResponseStatusPayload (DelegateExecution execution){\r
                def method = getClass().getSimpleName() + '.updateResponseStatusPayload(' +'execution=' + execution.getId() +')'\r
                def isDebugLogEnabled = execution.getVariable('isDebugLogEnabled')\r
                logDebug('Entered ' + method, isDebugLogEnabled)\r
@@ -326,7 +326,7 @@ public class FalloutHandler extends AbstractServiceTaskProcessor {
                }\r
        }\r
        \r
-       public void buildDBWorkflowException(Execution execution, String responseCodeVariable) {\r
+       public void buildDBWorkflowException(DelegateExecution execution, String responseCodeVariable) {\r
                def method = getClass().getSimpleName() + '.buildDBWorkflowException(' +\r
                        'execution=' + execution.getId() +\r
                        ', responseCodeVariable=' + responseCodeVariable + ')'\r
@@ -348,7 +348,7 @@ public class FalloutHandler extends AbstractServiceTaskProcessor {
        /**\r
         * Used to create a workflow response in success and failure cases.\r
         */\r
-       public void postProcessResponse (Execution execution) {\r
+       public void postProcessResponse (DelegateExecution execution) {\r
                def method = getClass().getSimpleName() + '.postProcessResponse(' +'execution=' + execution.getId() +')'\r
                def isDebugLogEnabled = execution.getVariable('isDebugLogEnabled')\r
                logDebug('Entered ' + method, isDebugLogEnabled)\r