Merge "Reorder modifiers"
[so.git] / bpmn / MSOCommonBPMN / src / main / groovy / org / openecomp / mso / bpmn / common / scripts / TrinityExceptionUtil.groovy
index 03fa63e..e75b115 100644 (file)
@@ -1,6 +1,6 @@
 /*-\r
  * ============LICENSE_START=======================================================\r
- * OPENECOMP - MSO\r
+ * ONAP - SO\r
  * ================================================================================\r
  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
  * ================================================================================\r
@@ -20,7 +20,7 @@
 \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
@@ -60,7 +60,7 @@ class TrinityExceptionUtil {
 \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
@@ -93,7 +93,7 @@ class TrinityExceptionUtil {
         * @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
@@ -128,7 +128,7 @@ class TrinityExceptionUtil {
                }\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
@@ -182,7 +182,7 @@ class TrinityExceptionUtil {
         * @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
@@ -315,7 +315,7 @@ class TrinityExceptionUtil {
 \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