AT&T 1712 and 1802 release code
[so.git] / bpmn / MSOInfrastructureBPMN / src / main / groovy / org / openecomp / mso / bpmn / infrastructure / scripts / UpdateVfModuleVolumeInfraV1.groovy
index 3d5a31c..913046b 100644 (file)
@@ -25,7 +25,7 @@ import groovy.json.JsonSlurper
 import java.util.concurrent.ExecutionException;\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.apache.commons.lang3.*\r
 import org.springframework.web.util.UriUtils\r
 import org.openecomp.mso.bpmn.common.scripts.AaiUtil;\r
@@ -44,7 +44,7 @@ class UpdateVfModuleVolumeInfraV1 extends VfModuleBase {
         * \r
         * @param execution The flow's execution instance.\r
         */\r
-       private void initProcessVariables(Execution execution) {\r
+       private void initProcessVariables(DelegateExecution execution) {\r
                execution.setVariable('prefix', 'UPDVfModVol_')\r
                execution.setVariable('UPDVfModVol_Request', null)\r
                execution.setVariable('UPDVfModVol_requestInfo', null)\r
@@ -67,12 +67,12 @@ class UpdateVfModuleVolumeInfraV1 extends VfModuleBase {
         * Perform initial processing, such as request validation, initialization of variables, etc.\r
         * * @param execution\r
         */\r
-       public void preProcessRequest (Execution execution) {\r
+       public void preProcessRequest (DelegateExecution execution) {\r
                def isDebugEnabled=execution.getVariable("isDebugLogEnabled")\r
                preProcessRequest(execution, isDebugEnabled)\r
        }\r
        \r
-       public void preProcessRequest(Execution execution, isDebugLogEnabled) {\r
+       public void preProcessRequest(DelegateExecution execution, isDebugLogEnabled) {\r
 \r
                initProcessVariables(execution)\r
                String jsonRequest = validateRequest(execution)\r
@@ -135,7 +135,7 @@ class UpdateVfModuleVolumeInfraV1 extends VfModuleBase {
         * \r
         * @param execution The flow's execution instance.\r
         */\r
-       public void sendSynchResponse(Execution execution, isDebugLogEnabled) {\r
+       public void sendSynchResponse(DelegateExecution execution, isDebugLogEnabled) {\r
 \r
                def requestInfo = execution.getVariable('UPDVfModVol_requestInfo')\r
                def requestId = execution.getVariable('UPDVfModVol_requestId')\r
@@ -185,7 +185,7 @@ class UpdateVfModuleVolumeInfraV1 extends VfModuleBase {
         * Volume Group Id and Aic Cloud Region.\r
         * @param execution The flow's execution instance.\r
         */\r
-       public void queryAAIForVolumeGroup(Execution execution, isDebugLogEnabled) {\r
+       public void queryAAIForVolumeGroup(DelegateExecution execution, isDebugLogEnabled) {\r
 \r
                def volumeGroupId = execution.getVariable('UPDVfModVol_volumeGroupId')\r
                def aicCloudRegion = execution.getVariable('UPDVfModVol_aicCloudRegion')\r
@@ -244,7 +244,7 @@ class UpdateVfModuleVolumeInfraV1 extends VfModuleBase {
         * @param execution\r
         * @param isDebugEnabled\r
         */\r
-       public void queryAAIForGenericVnf(Execution execution, isDebugEnabled) {\r
+       public void queryAAIForGenericVnf(DelegateExecution execution, isDebugEnabled) {\r
                \r
                def vnfId = execution.getVariable('vnfId')\r
                \r
@@ -285,7 +285,7 @@ class UpdateVfModuleVolumeInfraV1 extends VfModuleBase {
         * @param execution\r
         * @param isDebugLogEnabled\r
         */\r
-       public void queryAAIForVfModule(Execution execution, isDebugLogEnabled) {\r
+       public void queryAAIForVfModule(DelegateExecution execution, isDebugLogEnabled) {\r
                \r
                        AaiUtil aaiUtil = new AaiUtil(this)\r
                        String queryAAIVfModuleRequest = execution.getVariable('UPDVfModVol_relatedVfModuleLink')\r
@@ -346,7 +346,7 @@ class UpdateVfModuleVolumeInfraV1 extends VfModuleBase {
         *\r
         * @param execution The flow's execution instance.\r
         */\r
-       public void prepVnfAdapterRest(Execution execution, isDebugLogEnabled) {\r
+       public void prepVnfAdapterRest(DelegateExecution execution, isDebugLogEnabled) {\r
                \r
                def aicCloudRegion = execution.getVariable('UPDVfModVol_aicCloudRegion')\r
                def tenantId = execution.getVariable('UPDVfModVol_tenantId')\r
@@ -433,7 +433,7 @@ class UpdateVfModuleVolumeInfraV1 extends VfModuleBase {
         *\r
         * @param execution The flow's execution instance.\r
         */\r
-       public void prepDbInfraDbRequest(Execution execution, isDebugLogEnabled) {\r
+       public void prepDbInfraDbRequest(DelegateExecution execution, isDebugLogEnabled) {\r
 \r
                def requestId = execution.getVariable('UPDVfModVol_requestId')\r
                ExceptionUtil exceptionUtil = new ExceptionUtil();\r
@@ -462,7 +462,7 @@ class UpdateVfModuleVolumeInfraV1 extends VfModuleBase {
         * Build a "CompletionHandler" request.\r
         * @param execution The flow's execution instance.\r
         */\r
-       public void prepCompletionHandlerRequest(Execution execution, requestId, action, source, isDebugLogEnabled) {\r
+       public void prepCompletionHandlerRequest(DelegateExecution execution, requestId, action, source, isDebugLogEnabled) {\r
 \r
                String content = """\r
                <aetgt:MsoCompletionRequest xmlns:aetgt="http://org.openecomp/mso/workflow/schema/v1"\r
@@ -486,7 +486,7 @@ class UpdateVfModuleVolumeInfraV1 extends VfModuleBase {
         * Build a "FalloutHandler" request.\r
         * @param execution The flow's execution instance.\r
         */\r
-       public void prepFalloutHandler(Execution execution, isDebugLogEnabled) {\r
+       public void prepFalloutHandler(DelegateExecution execution, isDebugLogEnabled) {\r
                def requestId = execution.getVariable('UPDVfModVol_requestId')\r
                def source = execution.getVariable('UPDVfModVol_source')\r
                \r
@@ -527,7 +527,7 @@ class UpdateVfModuleVolumeInfraV1 extends VfModuleBase {
         * AAI did not match the Tenant Id in the incoming request.\r
         * @param execution The flow's execution instance.\r
         */\r
-       public void handleTenantIdMismatch(Execution execution, isDebugLogEnabled) {\r
+       public void handleTenantIdMismatch(DelegateExecution execution, isDebugLogEnabled) {\r
                \r
                def volumeGroupId = execution.getVariable('UPDVfModVol_volumeGroupId')\r
                def aicCloudRegion = execution.getVariable('UPDVfModVol_aicCloudRegion')\r
@@ -547,7 +547,7 @@ class UpdateVfModuleVolumeInfraV1 extends VfModuleBase {
         * AAI did not match the model invariant ID in the incoming request.\r
         * @param execution The flow's execution instance.\r
         */\r
-       public void handlePersonaModelIdMismatch(Execution execution, isDebugLogEnabled) {\r
+       public void handlePersonaModelIdMismatch(DelegateExecution execution, isDebugLogEnabled) {\r
                \r
                def modelInvariantId = execution.getVariable('UPDVfModVol_modelInvariantId')\r
                def personaModelId = execution.getVariable('UPDVfModVol_personaModelId')\r