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
* \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
* 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
* \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
* 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
* @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
* @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
*\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
*\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
* 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
* 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
* 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
* 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