/*-\r
* ============LICENSE_START=======================================================\r
- * OPENECOMP - MSO\r
+ * ONAP - SO\r
* ================================================================================\r
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
* ================================================================================\r
\r
package org.openecomp.mso.bpmn.common.scripts\r
\r
-import org.camunda.bpm.engine.runtime.Execution\r
+import org.camunda.bpm.engine.delegate.DelegateExecution\r
import org.apache.commons.lang3.*\r
\r
class TrinityExceptionUtil {\r
\r
\r
\r
- String mapAdapterExecptionToCommonException(String response, Execution execution)\r
+ String mapAdapterExecptionToCommonException(String response, DelegateExecution execution)\r
{\r
def utils=new MsoUtils()\r
def method = getClass().getSimpleName() + '.mapAdapterExecptionToCommonException(' +\r
* @param execution\r
* @return mapped exception\r
*/\r
- String mapAOTSExecptionToCommonException(String response, Execution execution)\r
+ String mapAOTSExecptionToCommonException(String response, DelegateExecution execution)\r
{\r
def utils=new MsoUtils()\r
\r
}\r
}\r
\r
- String mapSDNCAdapterExceptionToErrorResponse(String sdncAdapterCallbackRequest, Execution execution) {\r
+ String mapSDNCAdapterExceptionToErrorResponse(String sdncAdapterCallbackRequest, DelegateExecution execution) {\r
def utils=new MsoUtils()\r
def prefix=execution.getVariable("prefix")\r
def method = getClass().getSimpleName() + '.mapSDNCAdapterExceptionToErrorResponse(' +\r
* @param execution\r
* @return an error response conforming to the common \r
*/\r
- String mapAAIExceptionTCommonException(String response, Execution execution)\r
+ String mapAAIExceptionTCommonException(String response, DelegateExecution execution)\r
{\r
def utils=new MsoUtils()\r
def isDebugLogEnabled=execution.getVariable("isDebugLogEnabled")\r
\r
}\r
\r
- String parseError(Execution execution){\r
+ String parseError(DelegateExecution execution){\r
def isDebugLogEnabled = execution.getVariable('isDebugLogEnabled')\r
def utils=new MsoUtils()\r
def prefix=execution.getVariable("prefix")\r