/*-\r
* ============LICENSE_START=======================================================\r
- * OPENECOMP - MSO\r
+ * ONAP - SO\r
* ================================================================================\r
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
* ================================================================================\r
\r
import java.text.SimpleDateFormat\r
\r
-import org.camunda.bpm.engine.runtime.Execution\r
+import org.camunda.bpm.engine.delegate.DelegateExecution\r
import org.openecomp.mso.bpmn.core.WorkflowException\r
\r
\r
ExceptionUtil exceptionUtil = new ExceptionUtil()\r
\r
// Script Task: Process SDNC Workflow Request\r
- // Params: Workflow Execution\r
+ // Params: Workflow DelegateExecution\r
// Assume: Received SDNCAdapterWorkflowRequest is in variable 'sdncAdapterWorkflowRequest'\r
// Put created SDNCAdapterRequest in variable 'sdncAdapterRequest'\r
- public void preProcessRequest (Execution execution) {\r
+ public void preProcessRequest (DelegateExecution execution) {\r
def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
try{\r
\r
utils.log("DEBUG","=========== End pre Process SDNCRequestScript ===========", isDebugEnabled)\r
}\r
\r
- public void postProcessResponse (Execution execution) {\r
+ public void postProcessResponse (DelegateExecution execution) {\r
\r
def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
try{\r
utils.log("DEBUG","=========== End POSTProcess SDNCAdapter ===========", isDebugEnabled)\r
}\r
\r
- public void callbackResponsecheck(Execution execution){\r
+ public void callbackResponsecheck(DelegateExecution execution){\r
\r
def sdnccallbackreq=execution.getVariable("sdncAdapterCallbackRequest")\r
utils.logAudit("sdncAdapterCallbackRequest :" + sdnccallbackreq)\r
}\r
}\r
\r
- public void resetCallbackRequest(Execution execution) {\r
+ public void resetCallbackRequest(DelegateExecution execution) {\r
\r
def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
\r
}\r
\r
\r
- public void prepareDBMessage(Execution execution) {\r
+ public void prepareDBMessage(DelegateExecution execution) {\r
\r
def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
\r
return utcTime;\r
}\r
\r
- public void toggleSuccessIndicator(Execution execution){\r
+ public void toggleSuccessIndicator(DelegateExecution execution){\r
def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
execution.setVariable("SDNCA_SuccessIndicator", true)\r
utils.log("DEBUG","Setting SDNCA Success Indicator to True", isDebugEnabled)\r
}\r
\r
- public void assignError(Execution execution){\r
+ public void assignError(DelegateExecution execution){\r
def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
utils.log("DEBUG","=========== Started Assign Error ===========", isDebugEnabled)\r
WorkflowException wf = execution.getVariable("WorkflowException")\r
utils.log("DEBUG","=========== End Assign Error ===========", isDebugEnabled)\r
}\r
\r
- public void setTimeout(Execution execution){\r
+ public void setTimeout(DelegateExecution execution){\r
def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
utils.log("DEBUG","=========== Started SetTimeout ===========", isDebugEnabled)\r
utils.log("DEBUG", "Timer expired, telling correlation service to stop listening", isDebugEnabled)\r