--- /dev/null
+/*-\r
+ * ============LICENSE_START=======================================================\r
+ * ONAP - SO\r
+ * ================================================================================\r
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
+ * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved. \r
+ * ================================================================================\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ============LICENSE_END=========================================================\r
+ */\r
+package org.openecomp.mso.bpmn.infrastructure.scripts;\r
+\r
+import static org.apache.commons.lang3.StringUtils.*;\r
+import groovy.xml.XmlUtil\r
+import groovy.json.*\r
+\r
+import org.openecomp.mso.bpmn.core.domain.ServiceDecomposition\r
+import org.openecomp.mso.bpmn.core.domain.ServiceInstance\r
+import org.openecomp.mso.bpmn.core.domain.ModelInfo\r
+import org.openecomp.mso.bpmn.core.json.JsonUtils\r
+import org.openecomp.mso.bpmn.common.scripts.AaiUtil\r
+import org.openecomp.mso.bpmn.common.scripts.AbstractServiceTaskProcessor\r
+import org.openecomp.mso.bpmn.common.scripts.ExceptionUtil\r
+import org.openecomp.mso.bpmn.common.scripts.SDNCAdapterUtils\r
+import org.openecomp.mso.bpmn.core.RollbackData\r
+import org.openecomp.mso.bpmn.core.WorkflowException\r
+import org.openecomp.mso.rest.APIResponse;\r
+import org.openecomp.mso.rest.RESTClient\r
+import org.openecomp.mso.rest.RESTConfig\r
+\r
+import java.util.UUID;\r
+\r
+import org.camunda.bpm.engine.delegate.BpmnError\r
+import org.camunda.bpm.engine.runtime.Execution\r
+import org.json.JSONObject;\r
+import org.json.JSONArray;\r
+import org.apache.commons.lang3.*\r
+import org.apache.commons.codec.binary.Base64;\r
+import org.springframework.web.util.UriUtils;\r
+\r
+/**\r
+ * This groovy class supports the <class>DoCreateServiceInstance.bpmn</class> process.\r
+ *\r
+ * Inputs:\r
+ * @param - msoRequestId\r
+ * @param - globalSubscriberId\r
+ * @param - subscriptionServiceType\r
+ * @param - serviceInstanceId\r
+ * @param - serviceInstanceName - O\r
+ * @param - serviceModelInfo\r
+ * @param - productFamilyId\r
+ * @param - disableRollback\r
+ * @param - failExists - TODO\r
+ * @param - serviceInputParams (should contain aic_zone for serviceTypes TRANSPORT,ATM)\r
+ * @param - sdncVersion ("1610")\r
+ * @param - serviceDecomposition - Decomposition for R1710 \r
+ * (if macro provides serviceDecompsition then serviceModelInfo, serviceInstanceId & serviceInstanceName will be ignored)\r
+ *\r
+ * Outputs:\r
+ * @param - rollbackData (localRB->null)\r
+ * @param - rolledBack (no localRB->null, localRB F->false, localRB S->true)\r
+ * @param - WorkflowException\r
+ * @param - serviceInstanceName - (GET from AAI if null in input)\r
+ *\r
+ */\r
+public class DoCreateE2EServiceInstanceV2 extends AbstractServiceTaskProcessor {\r
+\r
+ String Prefix="DCRESI_"\r
+ private static final String DebugFlag = "isDebugEnabled"\r
+ \r
+ ExceptionUtil exceptionUtil = new ExceptionUtil()\r
+ JsonUtils jsonUtil = new JsonUtils()\r
+\r
+ public void preProcessRequest (Execution execution) {\r
+ //only for dug\r
+ execution.setVariable("isDebugLogEnabled","true")\r
+ execution.setVariable("unit_test", "true")\r
+ execution.setVariable("skipVFC", "true")\r
+ \r
+ def method = getClass().getSimpleName() + '.preProcessRequest(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ String msg = ""\r
+ utils.log("INFO"," ***** Enter DoCreateE2EServiceInstanceV2 preProcessRequest *****", isDebugEnabled)\r
+ \r
+ utils.log("INFO"," unit test : " + execution.getVariable("unit_test"), isDebugEnabled) \r
+\r
+ try {\r
+ execution.setVariable("prefix", Prefix)\r
+ //Inputs\r
+ //requestDetails.subscriberInfo. for AAI GET & PUT & SDNC assignToplology\r
+ String globalSubscriberId = execution.getVariable("globalSubscriberId") //globalCustomerId\r
+ utils.log("INFO"," ***** globalSubscriberId *****" + globalSubscriberId, isDebugEnabled)\r
+ \r
+ //requestDetails.requestParameters. for AAI PUT & SDNC assignTopology\r
+ String serviceType = execution.getVariable("serviceType")\r
+ utils.log("INFO"," ***** serviceType *****" + serviceType, isDebugEnabled)\r
+ \r
+ //requestDetails.requestParameters. for SDNC assignTopology\r
+ String productFamilyId = execution.getVariable("productFamilyId") //AAI productFamilyId\r
+\r
+ if (isBlank(globalSubscriberId)) {\r
+ msg = "Input globalSubscriberId is null"\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 500, msg)\r
+ }\r
+ \r
+ if (isBlank(serviceType)) {\r
+ msg = "Input serviceType is null"\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 500, msg)\r
+ }\r
+ \r
+ if (productFamilyId == null) {\r
+ execution.setVariable("productFamilyId", "")\r
+ }\r
+ \r
+ String sdncCallbackUrl = execution.getVariable('URN_mso_workflow_sdncadapter_callback')\r
+ if (isBlank(sdncCallbackUrl)) {\r
+ msg = "URN_mso_workflow_sdncadapter_callback is null"\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 500, msg)\r
+ }\r
+ execution.setVariable("sdncCallbackUrl", sdncCallbackUrl)\r
+ utils.log("INFO","SDNC Callback URL: " + sdncCallbackUrl, isDebugEnabled)\r
+\r
+ //requestDetails.modelInfo.for AAI PUT servieInstanceData \r
+ //requestDetails.requestInfo. for AAI GET/PUT serviceInstanceData \r
+ String serviceInstanceName = execution.getVariable("serviceInstanceName")\r
+ String serviceInstanceId = execution.getVariable("serviceInstanceId")\r
+ String uuiRequest = execution.getVariable("uuiRequest")\r
+ utils.log("INFO","uuiRequest: " + uuiRequest, isDebugEnabled)\r
+ \r
+ String modelInvariantUuid = jsonUtil.getJsonValue(uuiRequest, "service.serviceDefId")\r
+ utils.log("INFO","modelInvariantUuid: " + modelInvariantUuid, isDebugEnabled)\r
+ \r
+ String modelUuid = jsonUtil.getJsonValue(uuiRequest, "service.templateId")\r
+ utils.log("INFO","modelUuid: " + modelUuid, isDebugEnabled)\r
+ \r
+ String serviceModelName = jsonUtil.getJsonValue(uuiRequest, "service.parameters.templateName")\r
+ utils.log("INFO","serviceModelName: " + serviceModelName, isDebugEnabled)\r
+ execution.setVariable("serviceModelName", serviceModelName)\r
+ \r
+ //aai serviceType and Role can be setted as fixed value now.\r
+ String aaiServiceType = serviceType\r
+ String aaiServiceRole = serviceType+"Role"\r
+ \r
+ execution.setVariable("modelInvariantUuid", modelInvariantUuid)\r
+ execution.setVariable("modelUuid", modelUuid)\r
+\r
+ //AAI PUT\r
+ String oStatus = execution.getVariable("initialStatus") ?: ""\r
+ utils.log("INFO","oStatus: " + oStatus, isDebugEnabled)\r
+ if ("TRANSPORT".equalsIgnoreCase(serviceType))\r
+ {\r
+ oStatus = "Created"\r
+ }\r
+ \r
+ \r
+\r
+ String statusLine = isBlank(oStatus) ? "" : "<orchestration-status>${oStatus}</orchestration-status>"\r
+ utils.log("INFO","statusLine: " + statusLine, isDebugEnabled) \r
+ AaiUtil aaiUriUtil = new AaiUtil(this)\r
+ utils.log("INFO","start create aai uri: " + aaiUriUtil, isDebugEnabled) \r
+ String aai_uri = aaiUriUtil.getBusinessCustomerUri(execution)\r
+ utils.log("INFO","aai_uri: " + aai_uri, isDebugEnabled)\r
+ String namespace = aaiUriUtil.getNamespaceFromUri(aai_uri)\r
+ utils.log("INFO","namespace: " + namespace, isDebugEnabled)\r
+ /*\r
+ String serviceInstanceData =\r
+ """<service-instance xmlns=\"${namespace}\">\r
+ <service-instance-id>${serviceInstanceId}</service-instance-id>\r
+ <service-instance-name>${serviceInstanceName}</service-instance-name>\r
+ <service-type>${aaiServiceType}</service-type>\r
+ <service-role>${aaiServiceRole}</service-role>\r
+ ${statusLine}\r
+ <model-invariant-id>${modelInvariantUuid}</model-invariant-id>\r
+ <model-version-id>${modelUuid}</model-version-id>\r
+ </service-instance>""".trim()\r
+ */\r
+ //begin only for test\r
+ String serviceInstanceData =\r
+ """<service-instance xmlns=\"${namespace}\">\r
+ <service-instance-id>${serviceInstanceId}</service-instance-id>\r
+ <service-instance-name>${serviceInstanceName}</service-instance-name>\r
+ <service-type>${aaiServiceType}</service-type>\r
+ <service-role>${aaiServiceRole}</service-role>\r
+ ${statusLine}\r
+ </service-instance>""".trim()\r
+ //end only for test\r
+ execution.setVariable("serviceInstanceData", serviceInstanceData)\r
+ utils.log("INFO","serviceInstanceData: " + serviceInstanceData, isDebugEnabled)\r
+ utils.logAudit(serviceInstanceData)\r
+ utils.log("INFO", " aai_uri " + aai_uri + " namespace:" + namespace, isDebugEnabled)\r
+ utils.log("INFO", " 'payload' to create Service Instance in AAI - " + "\n" + serviceInstanceData, isDebugEnabled)\r
+ \r
+ execution.setVariable("serviceSDNCCreate", "false")\r
+ execution.setVariable("operationStatus", "Waiting deploy resource...") \r
+\r
+ } catch (BpmnError e) {\r
+ throw e;\r
+ } catch (Exception ex){\r
+ msg = "Exception in preProcessRequest " + ex.getMessage()\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+\r
+ public void postProcessAAIGET(Execution execution) {\r
+ def method = getClass().getSimpleName() + '.postProcessAAIGET(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO"," ***** Enter DoCreateE2EServiceInstanceV2 postProcessAAIGET ***** ", isDebugEnabled)\r
+ String msg = ""\r
+\r
+ try {\r
+ String serviceInstanceName = execution.getVariable("serviceInstanceName")\r
+ boolean succInAAI = execution.getVariable("GENGS_SuccessIndicator")\r
+ if(succInAAI != true){\r
+ utils.log("INFO","Error getting Service-instance from AAI", + serviceInstanceName, isDebugEnabled)\r
+ WorkflowException workflowException = execution.getVariable("WorkflowException")\r
+ utils.logAudit("workflowException: " + workflowException)\r
+ if(workflowException != null){\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, workflowException.getErrorCode(), workflowException.getErrorMessage())\r
+ }\r
+ else\r
+ {\r
+ msg = "Failure in postProcessAAIGET GENGS_SuccessIndicator:" + succInAAI\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 2500, msg)\r
+ }\r
+ }\r
+ else\r
+ {\r
+ boolean foundInAAI = execution.getVariable("GENGS_FoundIndicator")\r
+ if(foundInAAI == true){\r
+ utils.log("INFO","Found Service-instance in AAI", isDebugEnabled)\r
+ msg = "ServiceInstance already exists in AAI:" + serviceInstanceName\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 2500, msg)\r
+ }\r
+ }\r
+ } catch (BpmnError e) {\r
+ throw e;\r
+ } catch (Exception ex) {\r
+ msg = "Exception in DoCreateServiceInstance.postProcessAAIGET. " + ex.getMessage()\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+\r
+ public void postProcessAAIPUT(Execution execution) {\r
+ def method = getClass().getSimpleName() + '.postProcessAAIPUT(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO"," ***** Enter DoCreateE2EServiceInstanceV2 postProcessAAIPUT ***** ", isDebugEnabled)\r
+ String msg = ""\r
+ try {\r
+ String serviceInstanceId = execution.getVariable("serviceInstanceId")\r
+ boolean succInAAI = execution.getVariable("GENPS_SuccessIndicator")\r
+ if(succInAAI != true){\r
+ utils.log("INFO","Error putting Service-instance in AAI", + serviceInstanceId, isDebugEnabled)\r
+ WorkflowException workflowException = execution.getVariable("WorkflowException")\r
+ utils.logAudit("workflowException: " + workflowException)\r
+ if(workflowException != null){\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, workflowException.getErrorCode(), workflowException.getErrorMessage())\r
+ }\r
+ }\r
+ else\r
+ {\r
+ //start rollback set up\r
+ RollbackData rollbackData = new RollbackData()\r
+ def disableRollback = execution.getVariable("disableRollback")\r
+ rollbackData.put("SERVICEINSTANCE", "disableRollback", disableRollback.toString())\r
+ rollbackData.put("SERVICEINSTANCE", "rollbackAAI", "true")\r
+ rollbackData.put("SERVICEINSTANCE", "serviceInstanceId", serviceInstanceId)\r
+ rollbackData.put("SERVICEINSTANCE", "subscriptionServiceType", execution.getVariable("subscriptionServiceType"))\r
+ rollbackData.put("SERVICEINSTANCE", "globalSubscriberId", execution.getVariable("globalSubscriberId"))\r
+ execution.setVariable("rollbackData", rollbackData)\r
+ }\r
+\r
+ } catch (BpmnError e) {\r
+ throw e;\r
+ } catch (Exception ex) {\r
+ msg = "Exception in DoCreateServiceInstance.postProcessAAIDEL. " + ex.getMessage()\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+ \r
+ public void postProcessAAIGET2(Execution execution) {\r
+ def method = getClass().getSimpleName() + '.postProcessAAIGET2(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO"," ***** Enter DoCreateE2EServiceInstanceV2 postProcessAAIGET2 ***** ", isDebugEnabled)\r
+ String msg = ""\r
+\r
+ try {\r
+ String serviceInstanceName = execution.getVariable("serviceInstanceName")\r
+ boolean succInAAI = execution.getVariable("GENGS_SuccessIndicator")\r
+ if(succInAAI != true){\r
+ utils.log("INFO","Error getting Service-instance from AAI in postProcessAAIGET2", + serviceInstanceName, isDebugEnabled)\r
+ WorkflowException workflowException = execution.getVariable("WorkflowException")\r
+ utils.logAudit("workflowException: " + workflowException)\r
+ if(workflowException != null){\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, workflowException.getErrorCode(), workflowException.getErrorMessage())\r
+ }\r
+ else\r
+ {\r
+ msg = "Failure in postProcessAAIGET2 GENGS_SuccessIndicator:" + succInAAI\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 2500, msg)\r
+ }\r
+ }\r
+ else\r
+ {\r
+ boolean foundInAAI = execution.getVariable("GENGS_FoundIndicator")\r
+ if(foundInAAI == true){\r
+ String aaiService = execution.getVariable("GENGS_service")\r
+ if (!isBlank(aaiService) && (utils.nodeExists(aaiService, "service-instance-name"))) {\r
+ execution.setVariable("serviceInstanceName", utils.getNodeText1(aaiService, "service-instance-name"))\r
+ utils.log("INFO","Found Service-instance in AAI.serviceInstanceName:" + execution.getVariable("serviceInstanceName"), isDebugEnabled)\r
+ }\r
+ }\r
+ }\r
+ } catch (BpmnError e) {\r
+ throw e;\r
+ } catch (Exception ex) {\r
+ msg = "Exception in DoCreateServiceInstance.postProcessAAIGET2 " + ex.getMessage()\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+\r
+ public void preProcessRollback (Execution execution) {\r
+ def method = getClass().getSimpleName() + '.preProcessRollback(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO"," ***** Enter DoCreateE2EServiceInstanceV2 preProcessRollback ***** ", isDebugEnabled)\r
+ try {\r
+ \r
+ Object workflowException = execution.getVariable("WorkflowException");\r
+\r
+ if (workflowException instanceof WorkflowException) {\r
+ utils.log("INFO", "Prev workflowException: " + workflowException.getErrorMessage(), isDebugEnabled)\r
+ execution.setVariable("prevWorkflowException", workflowException);\r
+ //execution.setVariable("WorkflowException", null);\r
+ }\r
+ } catch (BpmnError e) {\r
+ utils.log("INFO", "BPMN Error during preProcessRollback", isDebugEnabled)\r
+ } catch(Exception ex) {\r
+ String msg = "Exception in preProcessRollback. " + ex.getMessage()\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+\r
+ public void postProcessRollback (Execution execution) {\r
+ def method = getClass().getSimpleName() + '.postProcessRollback(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO"," ***** Enter DoCreateE2EServiceInstanceV2 postProcessRollback ***** ", isDebugEnabled)\r
+ String msg = ""\r
+ try {\r
+ Object workflowException = execution.getVariable("prevWorkflowException");\r
+ if (workflowException instanceof WorkflowException) {\r
+ utils.log("INFO", "Setting prevException to WorkflowException: ", isDebugEnabled)\r
+ execution.setVariable("WorkflowException", workflowException);\r
+ }\r
+ execution.setVariable("rollbackData", null)\r
+ } catch (BpmnError b) {\r
+ utils.log("INFO", "BPMN Error during postProcessRollback", isDebugEnabled)\r
+ throw b;\r
+ } catch(Exception ex) {\r
+ msg = "Exception in postProcessRollback. " + ex.getMessage()\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+ \r
+ /**\r
+ * Init the service Operation Status\r
+ */\r
+ public void preUpdateServiceOperationStatus(Execution execution){\r
+ def method = getClass().getSimpleName() + '.preUpdateServiceOperationStatus(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ \r
+ try{\r
+ String serviceId = execution.getVariable("serviceInstanceId")\r
+ String operationId = execution.getVariable("operationId")\r
+ String serviceName = execution.getVariable("serviceInstanceName")\r
+ String operationType = "CREATE"\r
+ String userId = ""\r
+ String result = "processing"\r
+ String progress = execution.getVariable("progress")\r
+ utils.log("INFO", "progress: " + progress , isDebugEnabled)\r
+ if ("100".equalsIgnoreCase(progress))\r
+ {\r
+ result = "finished"\r
+ }\r
+ String reason = ""\r
+ String operationContent = "Prepare service creation : " + execution.getVariable("operationStatus")\r
+ \r
+ utils.log("INFO", "Generated new operation for Service Instance serviceId:" + serviceId + " operationId:" + operationId, isDebugEnabled)\r
+ serviceId = UriUtils.encode(serviceId,"UTF-8")\r
+ execution.setVariable("serviceInstanceId", serviceId)\r
+ execution.setVariable("operationId", operationId)\r
+ execution.setVariable("operationType", operationType)\r
+\r
+ def dbAdapterEndpoint = "http://mso.mso.testlab.openecomp.org:8080/dbadapters/RequestsDbAdapter"\r
+ execution.setVariable("CVFMI_dbAdapterEndpoint", dbAdapterEndpoint)\r
+ utils.log("INFO", "DB Adapter Endpoint is: " + dbAdapterEndpoint, isDebugEnabled)\r
+\r
+ execution.setVariable("URN_mso_openecomp_adapters_db_endpoint","http://mso.mso.testlab.openecomp.org:8080/dbadapters/RequestsDbAdapter")\r
+ String payload =\r
+ """<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"\r
+ xmlns:ns="http://org.openecomp.mso/requestsdb">\r
+ <soapenv:Header/>\r
+ <soapenv:Body>\r
+ <ns:updateServiceOperationStatus xmlns:ns="http://org.openecomp.mso/requestsdb">\r
+ <serviceId>${serviceId}</serviceId>\r
+ <operationId>${operationId}</operationId>\r
+ <serviceName>${serviceName}</serviceName>\r
+ <operationType>${operationType}</operationType>\r
+ <userId>${userId}</userId>\r
+ <result>${result}</result>\r
+ <operationContent>${operationContent}</operationContent>\r
+ <progress>${progress}</progress>\r
+ <reason>${reason}</reason>\r
+ </ns:updateServiceOperationStatus>\r
+ </soapenv:Body>\r
+ </soapenv:Envelope>"""\r
+\r
+ payload = utils.formatXml(payload)\r
+ execution.setVariable("CVFMI_updateServiceOperStatusRequest", payload)\r
+ utils.log("INFO", "Outgoing preUpdateServiceOperationStatus: \n" + payload, isDebugEnabled)\r
+ \r
+\r
+ }catch(Exception e){\r
+ utils.log("ERROR", "Exception Occured Processing preUpdateServiceOperationStatus. Exception is:\n" + e, isDebugEnabled)\r
+ execution.setVariable("CVFMI_ErrorResponse", "Error Occurred during preUpdateServiceOperationStatus Method:\n" + e.getMessage())\r
+ }\r
+ utils.log("INFO", "======== COMPLETED preUpdateServiceOperationStatus Process ======== ", isDebugEnabled) \r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+ \r
+\r
+ public void preInitResourcesOperStatus(Execution execution){\r
+ def method = getClass().getSimpleName() + '.preInitResourcesOperStatus(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+\r
+ utils.log("INFO", " ======== Enter DoCreateE2EServiceInstanceV2 preInitResourcesOperStatus Process ======== ", isDebugEnabled)\r
+ try{\r
+ String serviceId = execution.getVariable("serviceInstanceId")\r
+ String operationId = execution.getVariable("operationId")\r
+ String operationType = execution.getVariable("operationType")\r
+ String resourceTemplateUUIDs = ""\r
+ String result = "processing"\r
+ String progress = "0"\r
+ String reason = ""\r
+ String operationContent = "Prepare service creation"\r
+ utils.log("INFO", "Generated new operation for Service Instance serviceId:" + serviceId + " operationId:" + operationId + " operationType:" + operationType, isDebugEnabled)\r
+ serviceId = UriUtils.encode(serviceId,"UTF-8")\r
+ execution.setVariable("serviceInstanceId", serviceId)\r
+ execution.setVariable("operationId", operationId)\r
+ execution.setVariable("operationType", operationType)\r
+ String incomingRequest = execution.getVariable("uuiRequest")\r
+ String resourcesStr = jsonUtil.getJsonValue(incomingRequest, "service.parameters.resources") \r
+ List<String> resourceList = jsonUtil.StringArrayToList(execution, resourcesStr) \r
+ for(String resource : resourceList){\r
+ resourceTemplateUUIDs = resourceTemplateUUIDs + jsonUtil.getJsonValue(resource, "resourceId") + ":"\r
+ } \r
+\r
+ def dbAdapterEndpoint = "http://mso.mso.testlab.openecomp.org:8080/dbadapters/RequestsDbAdapter"\r
+ execution.setVariable("CVFMI_dbAdapterEndpoint", dbAdapterEndpoint)\r
+ utils.log("INFO", "DB Adapter Endpoint is: " + dbAdapterEndpoint, isDebugEnabled)\r
+\r
+ String payload =\r
+ """<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"\r
+ xmlns:ns="http://org.openecomp.mso/requestsdb">\r
+ <soapenv:Header/>\r
+ <soapenv:Body>\r
+ <ns:initResourceOperationStatus xmlns:ns="http://org.openecomp.mso/requestsdb">\r
+ <serviceId>${serviceId}</serviceId>\r
+ <operationId>${operationId}</operationId>\r
+ <operationType>${operationType}</operationType>\r
+ <resourceTemplateUUIDs>${resourceTemplateUUIDs}</resourceTemplateUUIDs>\r
+ </ns:initResourceOperationStatus>\r
+ </soapenv:Body>\r
+ </soapenv:Envelope>"""\r
+\r
+ payload = utils.formatXml(payload)\r
+ execution.setVariable("CVFMI_initResOperStatusRequest", payload)\r
+ utils.log("INFO", "Outgoing initResourceOperationStatus: \n" + payload, isDebugEnabled)\r
+ utils.logAudit("DoCustomDeleteE2EServiceInstanceV2 Outgoing initResourceOperationStatus Request: " + payload)\r
+\r
+ }catch(Exception e){\r
+ utils.log("ERROR", "Exception Occured Processing preInitResourcesOperStatus. Exception is:\n" + e, isDebugEnabled)\r
+ execution.setVariable("CVFMI_ErrorResponse", "Error Occurred during preInitResourcesOperStatus Method:\n" + e.getMessage())\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+ \r
+ /**\r
+ * prepare resource create request\r
+ */\r
+ public void preResourceRequest(execution){\r
+ def method = getClass().getSimpleName() + '.preResourceRequest(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ \r
+ utils.log("INFO", " ======== Enter DoCreateE2EServiceInstanceV2 preResourceRequest Process ======== ", isDebugEnabled)\r
+ try {\r
+ String resourceType = execution.getVariable("resourceType")\r
+ String serviceInstanceName = execution.getVariable("serviceInstanceName")\r
+ String nsServiceName = resourceType + "_" + serviceInstanceName\r
+ execution.setVariable("nsServiceName", nsServiceName)\r
+ utils.log("INFO", "Prepare VFC Request nsServiceName:" + nsServiceName, isDebugEnabled)\r
+ String globalSubscriberId = execution.getVariable("globalSubscriberId")\r
+ String serviceType = execution.getVariable("serviceType")\r
+ String serviceId = execution.getVariable("serviceInstanceId")\r
+ execution.setVariable("serviceId", serviceId)\r
+ String operationId = execution.getVariable("operationId")\r
+ String incomingRequest = execution.getVariable("uuiRequest")\r
+ String resourcesStr = jsonUtil.getJsonValue(incomingRequest, "service.parameters.resources") \r
+ String nsServiceDescription = jsonUtil.getJsonValue(incomingRequest, "service.description") \r
+ execution.setVariable("nsServiceDescription", nsServiceDescription)\r
+ utils.log("INFO", "Prepare VFC Request nsServiceDescription:" + nsServiceDescription, isDebugEnabled)\r
+ List<String> resourceList = jsonUtil.StringArrayToList(execution, resourcesStr) \r
+ for(String resource : resourceList){\r
+ String resourceName = jsonUtil.getJsonValue(resource, "resourceName") \r
+ if(StringUtils.containsIgnoreCase(resourceName, resourceType)){\r
+ String resourceUUID = jsonUtil.getJsonValue(resource, "resourceId")\r
+ String resourceInvariantUUID = jsonUtil.getJsonValue(resource, "resourceDefId")\r
+ String resourceParameters = jsonUtil.getJsonValue(resource, "nsParameters") \r
+ execution.setVariable("resourceUUID", resourceUUID)\r
+ execution.setVariable("resourceInvariantUUID", resourceInvariantUUID)\r
+ execution.setVariable("resourceParameters", resourceParameters)\r
+ utils.log("INFO", "Prepare VFC Request resourceType:" + resourceType, isDebugEnabled)\r
+ utils.log("INFO", "Prepare VFC Request resourceUUID:" + resourceUUID, isDebugEnabled)\r
+ utils.log("INFO", "Prepare VFC Request resourceParameters:" + resourceParameters, isDebugEnabled)\r
+ } \r
+ }\r
+ } catch (BpmnError b) {\r
+ utils.log("INFO", "BPMN Error during preResourceRequest", isDebugEnabled)\r
+ throw b;\r
+ } catch(Exception ex) {\r
+ msg = "Exception in preResourceRequest. " + ex.getMessage()\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+ \r
+ /**\r
+ * post config request.\r
+ */\r
+ public void postConfigRequest(execution){\r
+ //now do noting\r
+ }\r
+ \r
+ /***********************************************************************************************/\r
+\r
+ private void loadResourcesProperties(Execution execution) {\r
+ def method = getClass().getSimpleName() + '.loadResourcesProperties(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ String loadFilePath = "/etc/mso/config.d/reources.json"\r
+ try{\r
+ def jsonPayload = new File(loadFilePath).text\r
+ utils.log("INFO","jsonPayload: " + jsonPayload, isDebugEnabled)\r
+\r
+ String resourcesProperties = jsonUtil.prettyJson(jsonPayload.toString())\r
+ utils.log("INFO","resourcesProperties: " + resourcesProperties, isDebugEnabled)\r
+ \r
+ String createResourceSort = jsonUtil.getJsonValue(resourcesProperties, "CreateResourceSort")\r
+ //utils.log("INFO","createResourceSort: " + createResourceSort, isDebugEnabled)\r
+ execution.setVariable("createResourceSort", createResourceSort)\r
+ \r
+ String deleteResourceSort = jsonUtil.getJsonValue(resourcesProperties, "DeleteResourceSort")\r
+ //utils.log("INFO","deleteResourceSort: " + deleteResourceSort, isDebugEnabled)\r
+ execution.setVariable("deleteResourceSort", deleteResourceSort)\r
+ \r
+ \r
+ String resourceControllerType = jsonUtil.getJsonValue(resourcesProperties, "ResourceControllerType")\r
+ //utils.log("INFO","resourceControllerType: " + resourceControllerType, isDebugEnabled)\r
+ execution.setVariable("resourceControllerType", resourceControllerType) \r
+ \r
+ \r
+ }catch(Exception ex){\r
+ // try error in method block\r
+ String exceptionMessage = "Bpmn error encountered in " + method + " - " + ex.getMessage()\r
+ utils.log("DEBUG", exceptionMessage, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, exceptionMessage)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+ private sortCreateResource(Execution execution) {\r
+ def method = getClass().getSimpleName() + '.sortCreateResource(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ String createResourceSortDef = """[\r
+ {\r
+ "resourceType":"vEPC"\r
+ },\r
+ {\r
+ "resourceType":"vIMS"\r
+ },\r
+ {\r
+ "resourceType":"vCPE"\r
+ },\r
+ {\r
+ "resourceType":"vFW"\r
+ },\r
+ {\r
+ "resourceType":"Underlay"\r
+ },\r
+ {\r
+ "resourceType":"Overlay"\r
+ },\r
+ {\r
+ "resourceType":"GRE_AAR"\r
+ },\r
+ {\r
+ "resourceType":"APN_AAR"\r
+ },\r
+ {\r
+ "resourceType":"VPN_SAR"\r
+ },\r
+ {\r
+ "resourceType":"GRE_SAR"\r
+ } \r
+ \r
+ ]""".trim()\r
+ \r
+ try{\r
+\r
+ loadResourcesProperties(execution)\r
+ String createResourceSort = execution.getVariable("createResourceSort")\r
+ if (isBlank(createResourceSort)) {\r
+ createResourceSort = createResourceSortDef;\r
+ }\r
+ \r
+ List<String> sortResourceList = jsonUtil.StringArrayToList(execution, createResourceSort)\r
+ utils.log("INFO", "sortResourceList : " + sortResourceList, isDebugEnabled) \r
+\r
+ JSONArray newResourceList = new JSONArray()\r
+ int resSortCount = sortResourceList.size()\r
+ \r
+ \r
+ for ( int currentResource = 0 ; currentResource < resSortCount ; currentResource++ ) { \r
+ String sortResource = sortResourceList[currentResource]\r
+ String resourceType = jsonUtil.getJsonValue(sortResource, "resourceType") \r
+ List<String> resourceList = execution.getVariable(Prefix+"resourceList")\r
+\r
+ for (String resource : resourceList) {\r
+ //utils.log("INFO", "resource : " + resource, isDebugEnabled)\r
+ String resourceName = jsonUtil.getJsonValue(resource, "resourceName")\r
+ //utils.log("INFO", "resource Name : " + resourceName, isDebugEnabled)\r
+ String[] split = resourceName.split("_")\r
+ \r
+ utils.log("INFO", "split : " + split, isDebugEnabled)\r
+ int strLen = split.size()\r
+ String allottedResourceType = ""\r
+ \r
+ if (strLen <2) {\r
+ allottedResourceType = split[0]\r
+ }\r
+ else {\r
+ allottedResourceType = split[0] + "_" + split[1]\r
+ }\r
+ \r
+ if (StringUtils.containsIgnoreCase(allottedResourceType, resourceType)) {\r
+ utils.log("INFO", "allottedResourceType : " + allottedResourceType + " resourceType : " + resourceType, isDebugEnabled)\r
+ utils.log("INFO", "resource : " + resource , isDebugEnabled)\r
+ JSONObject jsonObj = new JSONObject(resource)\r
+ newResourceList.put(jsonObj)\r
+ \r
+ }\r
+ utils.log("INFO", "Get next sort type " , isDebugEnabled)\r
+ }\r
+ } \r
+ utils.log("INFO", "newResourceList : " + newResourceList, isDebugEnabled)\r
+ String newResourceStr = newResourceList.toString() \r
+ List<String> newResourceListStr = jsonUtil.StringArrayToList(execution, newResourceStr) \r
+ \r
+ execution.setVariable(Prefix+"resourceList", newResourceListStr)\r
+ utils.log("INFO", "newResourceList : " + newResourceListStr, isDebugEnabled) \r
+ \r
+ }catch(Exception ex){\r
+ // try error in method block\r
+ String exceptionMessage = "Bpmn error encountered in " + method + " - " + ex.getMessage()\r
+ utils.log("DEBUG", exceptionMessage, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, exceptionMessage)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ \r
+ }\r
+ /**\r
+ * get service resources\r
+ */\r
+ public void getServiceResources(Execution execution){\r
+ def method = getClass().getSimpleName() + '.getServiceResources(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO", " ======== Enter DoCreateE2EServiceInstanceV2 getServiceResources Process ======== ", isDebugEnabled)\r
+ try{\r
+ execution.setVariable(Prefix+"resourceCount", 0)\r
+ execution.setVariable(Prefix+"nextResource", 0)\r
+\r
+ String incomingRequest = execution.getVariable("uuiRequest")\r
+ String resourcesStr = jsonUtil.getJsonValue(incomingRequest, "service.parameters.resources") \r
+ utils.log("INFO", "Resources String : " + resourcesStr, isDebugEnabled)\r
+ if (!isBlank(resourcesStr)) {\r
+ List<String> resourceList = jsonUtil.StringArrayToList(execution, resourcesStr) \r
+ utils.log("INFO", "Resource List : " + resourceList, isDebugEnabled)\r
+ execution.setVariable(Prefix+"resourceList", resourceList)\r
+ execution.setVariable(Prefix+"resourceCount", resourceList.size())\r
+ execution.setVariable(Prefix+"nextResource", 0)\r
+ }\r
+ \r
+ int resourceNum = execution.getVariable(Prefix+"nextResource")\r
+ utils.log("DEBUG", "Current Resource count:"+ execution.getVariable(Prefix+"nextResource"), isDebugEnabled)\r
+ \r
+ int resourceCount = execution.getVariable(Prefix+"resourceCount")\r
+ utils.log("DEBUG", "Total Resource count:"+ execution.getVariable(Prefix+"resourceCount"), isDebugEnabled)\r
+\r
+ if (resourceNum < resourceCount) {\r
+ execution.setVariable(Prefix+"resourceFinish", false)\r
+ }\r
+ else {\r
+ execution.setVariable(Prefix+"resourceFinish", true)\r
+ }\r
+ sortCreateResource(execution)\r
+\r
+ }catch(Exception e){\r
+ utils.log("ERROR", "Exception Occured Processing getServiceResources. Exception is:\n" + e, isDebugEnabled)\r
+ execution.setVariable(Prefix+"ErrorResponse", "Error Occurred during getServiceResources Method:\n" + e.getMessage())\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled) \r
+ }\r
+ \r
+ /**\r
+ * prepare Decompose next resource to create request\r
+ */\r
+ public void preProcessDecomposeNextResource(Execution execution){\r
+ def method = getClass().getSimpleName() + '.preProcessDecomposeNextResource(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO", " ======== Enter DoCreateE2EServiceInstanceV2 preProcessDecomposeNextResource Process ======== ", isDebugEnabled)\r
+ try{\r
+ int resourceNum = execution.getVariable(Prefix+"nextResource")\r
+ List<String> resourceList = execution.getVariable(Prefix+"resourceList")\r
+ utils.log("INFO", "Resource List : " + resourceList, isDebugEnabled)\r
+ \r
+ String resource = resourceList[resourceNum]\r
+ execution.setVariable(Prefix+"resource", resource)\r
+ utils.log("INFO", "Current Resource : " + resource, isDebugEnabled)\r
+\r
+ String resourceName = jsonUtil.getJsonValue(resource, "resourceName") \r
+ execution.setVariable(Prefix+"resourceName", resourceName)\r
+ utils.log("INFO", "resource Name : " + resourceName, isDebugEnabled)\r
+ \r
+ String resourceUUID = jsonUtil.getJsonValue(resource, "resourceId")\r
+ execution.setVariable("resourceUUID", resourceUUID)\r
+ utils.log("INFO", "resource UUID : " + resourceUUID, isDebugEnabled)\r
+ \r
+ String resourceInvariantUUID = jsonUtil.getJsonValue(resource, "resourceDefId")\r
+ execution.setVariable("resourceInvariantUUID", resourceInvariantUUID)\r
+ \r
+ \r
+ String resourceParameters = jsonUtil.getJsonValue(resource, "nsParameters") \r
+ execution.setVariable("resourceParameters", resourceParameters)\r
+ utils.log("INFO", "resource Parameters : " + resourceParameters, isDebugEnabled)\r
+\r
+ execution.setVariable(Prefix+"nextResource", resourceNum + 1)\r
+ utils.log("INFO", "next Resource num : " + execution.getVariable(Prefix+"nextResource"), isDebugEnabled)\r
+ \r
+ int resourceCount = execution.getVariable(Prefix+"resourceCount")\r
+ if (resourceCount >0 ){\r
+ int progress = (resourceNum*100) / resourceCount\r
+ execution.setVariable("progress", progress.toString() )\r
+ }\r
+ \r
+ execution.setVariable("operationStatus", resourceName )\r
+\r
+ }catch(Exception e){\r
+ utils.log("ERROR", "Exception Occured Processing preProcessDecomposeNextResource. Exception is:\n" + e, isDebugEnabled)\r
+ execution.setVariable(Prefix+"ErrorResponse", "Error Occurred during preProcessDecomposeNextResource Method:\n" + e.getMessage())\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled) \r
+ }\r
+ /**\r
+ * post Decompose next resource to create request\r
+ */\r
+ public void postProcessDecomposeNextResource(Execution execution){\r
+ def method = getClass().getSimpleName() + '.postProcessDecomposeNextResource(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO", " ======== STARTED DoCreateE2EServiceInstanceV2 postProcessDecomposeNextResource Process ======== ", isDebugEnabled)\r
+ try{\r
+ String resourceName = execution.getVariable(Prefix+"resourceName")\r
+ \r
+ int resourceNum = execution.getVariable(Prefix+"nextResource")\r
+ utils.log("DEBUG", "Current Resource count:"+ execution.getVariable(Prefix+"nextResource"), isDebugEnabled)\r
+ \r
+ int resourceCount = execution.getVariable(Prefix+"resourceCount")\r
+ utils.log("DEBUG", "Total Resource count:"+ execution.getVariable(Prefix+"resourceCount"), isDebugEnabled)\r
+\r
+ if (resourceNum < resourceCount) {\r
+ execution.setVariable(Prefix+"resourceFinish", false)\r
+ }\r
+ else {\r
+ execution.setVariable(Prefix+"resourceFinish", true)\r
+ }\r
+ \r
+ utils.log("DEBUG", "Resource Finished:"+ execution.getVariable(Prefix+"resourceFinish"), isDebugEnabled)\r
+ \r
+ if (resourceCount >0 ){\r
+ int progress = (resourceNum*100) / resourceCount\r
+ execution.setVariable("progress", progress.toString() )\r
+ utils.log("DEBUG", "progress :"+ execution.getVariable("progress"), isDebugEnabled)\r
+ }\r
+ execution.setVariable("operationStatus", resourceName )\r
+\r
+ }catch(Exception e){\r
+ // try error in method block\r
+ String exceptionMessage = "Bpmn error encountered in "+method + "- " + e.getMessage()\r
+ utils.log("DEBUG", exceptionMessage, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, exceptionMessage)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled) \r
+ }\r
+ /**\r
+ * prepare check Resource Type \r
+ */\r
+ public void checkResourceType(Execution execution){\r
+ def method = getClass().getSimpleName() + '.checkResourceType(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ String resourceControllerTypeDef = """[\r
+ {\r
+ "resourceType":"vEPC",\r
+ "controllerType":"VFC"\r
+ },\r
+ {\r
+ "resourceType":"vIMS",\r
+ "controllerType":"VFC"\r
+ },\r
+ {\r
+ "resourceType":"vCPE",\r
+ "controllerType":"VFC"\r
+ },\r
+ {\r
+ "resourceType":"vFW",\r
+ "controllerType":"VFC"\r
+ },\r
+ {\r
+ "resourceType":"Underlay",\r
+ "controllerType":"SDNC"\r
+ },\r
+ {\r
+ "resourceType":"Overlay",\r
+ "controllerType":"SDNC"\r
+ },\r
+ {\r
+ "resourceType":"VPN_SAR",\r
+ "controllerType":"SDNC"\r
+ },\r
+ {\r
+ "resourceType":"GRE_AAR",\r
+ "controllerType":"APPC"\r
+ },\r
+ {\r
+ "resourceType":"GRE_SAR",\r
+ "controllerType":"SDNC"\r
+ } ,\r
+ {\r
+ "resourceType":"APN_AAR",\r
+ "controllerType":"APPC"\r
+ } \r
+ \r
+ ]""".trim()\r
+\r
+ try{\r
+\r
+ String resourceName = execution.getVariable(Prefix+"resourceName") \r
+ utils.log("INFO", "resourceName : " + resourceName, isDebugEnabled)\r
+ execution.setVariable("resourceName", resourceName)\r
+ \r
+ String[] split = resourceName.split("_")\r
+ \r
+ utils.log("INFO", "split : " + split, isDebugEnabled)\r
+ int strLen = split.size()\r
+ String allottedResourceType = ""\r
+ \r
+ if (strLen <2) {\r
+ allottedResourceType = split[0]\r
+ }\r
+ else {\r
+ allottedResourceType = split[0] + "_" + split[1]\r
+ }\r
+\r
+ loadResourcesProperties(execution)\r
+ String resourceControllerType= execution.getVariable("resourceControllerType") \r
+ if (isBlank(resourceControllerType)) {\r
+ resourceControllerType = resourceControllerTypeDef;\r
+ }\r
+ utils.log("INFO", "resourceControllerType: " + resourceControllerType, isDebugEnabled)\r
+ \r
+ List<String> ResourceTypeList = jsonUtil.StringArrayToList(execution, resourceControllerType)\r
+ utils.log("INFO", "ResourceTypeList : " + ResourceTypeList, isDebugEnabled) \r
+ execution.setVariable("controllerType", "Other") \r
+ execution.setVariable(Prefix+"resourceType", "")\r
+ for (String resourceMap : ResourceTypeList) {\r
+ String resourceType = jsonUtil.getJsonValue(resourceMap, "resourceType") \r
+ String controllerType = jsonUtil.getJsonValue(resourceMap, "controllerType")\r
+ //utils.log("INFO", "resourceMap.resourceType : " + resourceType, isDebugEnabled)\r
+ //utils.log("INFO", "resourceMap.controllerType : " + controllerType, isDebugEnabled)\r
+ //utils.log("INFO", "resourceName : " + resourceName, isDebugEnabled)\r
+ //utils.log("INFO", "allottedResourceType : " + allottedResourceType, isDebugEnabled )\r
+ \r
+ if (StringUtils.containsIgnoreCase(allottedResourceType, resourceType)) {\r
+ execution.setVariable("controllerType", controllerType)\r
+ execution.setVariable(Prefix+"resourceType", resourceType)\r
+ utils.log("INFO", "found controller type : " + controllerType, isDebugEnabled)\r
+ break\r
+ }\r
+ }\r
+ utils.log("INFO", "controller Type : " + execution.getVariable("controllerType"), isDebugEnabled)\r
+ utils.log("INFO", "resource Type : " + execution.getVariable(Prefix+"resourceType"), isDebugEnabled)\r
+ \r
+ if (execution.getVariable("controllerType") == "") {\r
+ String exceptionMessage = "Resource name can not find controller type,please check the resource Name: "+ resourceName\r
+ utils.log("DEBUG", exceptionMessage, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, exceptionMessage)\r
+ }\r
+ if (execution.getVariable(Prefix+"resourceType") == "vCPE") {\r
+ execution.setVariable("skipVFC", "false")\r
+ utils.log("INFO", "vCPE will deploy ", isDebugEnabled)\r
+ }\r
+\r
+ }catch(Exception e){\r
+ // try error in method block\r
+ String exceptionMessage = "Bpmn error encountered in "+ method + " - " + e.getMessage()\r
+ utils.log("DEBUG", exceptionMessage, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, exceptionMessage)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled) \r
+ }\r
+ /**\r
+ * prepare post Unkown Resource Type \r
+ */\r
+ public void postOtherControllerType(Execution execution){\r
+ def method = getClass().getSimpleName() + '.postOtherControllerType(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ \r
+ utils.log("INFO", " ======== Enter DoCreateE2EServiceInstanceV2 postOtherControllerType Process ======== ", isDebugEnabled)\r
+ try{\r
+\r
+ String resourceName = execution.getVariable(Prefix+"resourceName") \r
+ String resourceType = execution.getVariable(Prefix+"resourceType") \r
+ String controllerType = execution.getVariable("controllerType")\r
+ \r
+ String msg = "Resource name: "+ resourceName + " resource Type: " + resourceType+ " controller Type: " + controllerType + " can not be processed n the workflow"\r
+ utils.log("DEBUG", msg, isDebugEnabled)\r
+ \r
+ }catch(Exception e){\r
+ // try error in method block\r
+ String exceptionMessage = "Bpmn error encountered in "+ method + " - " + e.getMessage()\r
+ utils.log("DEBUG", exceptionMessage, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, exceptionMessage)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled) \r
+ }\r
+ \r
+ /**\r
+ * prepare Controller resource create request\r
+ */\r
+ public void preProcessResourceRequestForController(execution){\r
+ def method = getClass().getSimpleName() + '.preProcessResourceRequestForController(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO", " ======== Enter DoCreateE2EServiceInstanceV2 preProcessResourceRequestForController Process ======== ", isDebugEnabled)\r
+ try{\r
+ String resourceName = execution.getVariable(Prefix+"resourceName") \r
+ String resourceType = execution.getVariable(Prefix+"resourceType")\r
+ String serviceInstanceName =execution.getVariable("serviceInstanceName") \r
+ String nsServiceName = resourceType + "_" + serviceInstanceName\r
+ execution.setVariable("nsServiceName", nsServiceName)\r
+ utils.log("INFO", "Prepare Controller Request nsServiceName:" + nsServiceName, isDebugEnabled)\r
+\r
+ String serviceId = execution.getVariable("serviceInstanceId")\r
+ execution.setVariable("serviceId", serviceId)\r
+ utils.log("INFO", "Prepare Controller Request serviceId:" + serviceId, isDebugEnabled) \r
+ \r
+ String globalSubscriberId = execution.getVariable("globalSubscriberId")\r
+ utils.log("INFO", "Prepare Controller Request globalSubscriberId:" + globalSubscriberId, isDebugEnabled) \r
+ \r
+ String incomingRequest = execution.getVariable("uuiRequest")\r
+ String nsServiceDescription = jsonUtil.getJsonValue(incomingRequest, "service.description") \r
+ execution.setVariable("nsServiceDescription", nsServiceDescription)\r
+ utils.log("INFO", "Prepare Controller Request nsServiceDescription:" + nsServiceDescription, isDebugEnabled)\r
+\r
+ String resourceUUID = execution.getVariable("resourceUUID")\r
+ \r
+ utils.log("INFO", "Prepare Controller Request resourceUUID:" + resourceUUID, isDebugEnabled)\r
+ \r
+ String resourceInvariantUUID = execution.getVariable("resourceInvariantUUID")\r
+ utils.log("INFO", "Prepare Controller Request resourceInvariantUUID:" + resourceInvariantUUID, isDebugEnabled)\r
+\r
+ String resourceParameters = execution.getVariable("resourceParameters") \r
+ execution.setVariable("resourceParameters", resourceParameters)\r
+ utils.log("INFO", "Prepare Controller Request resourceParameters:" + resourceParameters, isDebugEnabled)\r
+\r
+\r
+\r
+ }catch(Exception e){\r
+ String exceptionMessage = "Bpmn error encountered in "+ method + " - " + e.getMessage()\r
+ utils.log("ERROR", exceptionMessage, isDebugEnabled)\r
+ execution.setVariable(Prefix+"ErrorResponse", exceptionMessage)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled) \r
+ }\r
+ /**\r
+ * post process VFC resource create request\r
+ */\r
+ public void postProcessResourceRequestForVFC(execution){\r
+ def method = getClass().getSimpleName() + '.postProcessResourceRequestForVFC(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO", " ======== Enter DoCreateE2EServiceInstanceV2 postProcessResourceRequestForVFC Process ======== ", isDebugEnabled)\r
+ try{\r
+ \r
+\r
+ }catch(Exception e){\r
+ utils.log("ERROR", "Exception Occured Processing postProcessResourceRequestForVFC. Exception is:\n" + e, isDebugEnabled)\r
+ execution.setVariable(Prefix+"ErrorResponse", "Error Occurred during postProcessResourceRequestForVFC Method:\n" + e.getMessage())\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled) \r
+ }\r
+\r
+\r
+ /**\r
+ * post process SDNC resource create request\r
+ */\r
+ public void postProcessResourceRequestForSDNC(execution){\r
+ def method = getClass().getSimpleName() + '.postProcessResourceRequestForSDNC(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO", " ======== Enter DoCreateE2EServiceInstanceV2 postProcessResourceRequestForSDNC Process ======== ", isDebugEnabled)\r
+ try{\r
+ \r
+ execution.setVariable("serviceSDNCCreate", "true")\r
+\r
+ }catch(Exception e){\r
+ utils.log("ERROR", "Exception Occured Processing postProcessResourceRequestForSDNC. Exception is:\n" + e, isDebugEnabled)\r
+ execution.setVariable(Prefix+"ErrorResponse", "Error Occurred during postProcessResourceRequestForSDNC Method:\n" + e.getMessage())\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+ \r
+\r
+ \r
+}\r
+ \r
--- /dev/null
+/*-\r
+ * ============LICENSE_START=======================================================\r
+ * ONAP - SO\r
+ * ================================================================================\r
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
+ * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved. \r
+ * ================================================================================\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ============LICENSE_END=========================================================\r
+ */\r
+package org.openecomp.mso.bpmn.infrastructure.scripts\r
+\r
+import org.json.JSONArray;\r
+\r
+import static org.apache.commons.lang3.StringUtils.*;\r
+import groovy.xml.XmlUtil\r
+import groovy.json.*\r
+\r
+import org.openecomp.mso.bpmn.core.json.JsonUtils\r
+import org.openecomp.mso.bpmn.common.scripts.AbstractServiceTaskProcessor\r
+import org.openecomp.mso.bpmn.common.scripts.ExceptionUtil\r
+import org.openecomp.mso.bpmn.common.scripts.SDNCAdapterUtils\r
+import org.openecomp.mso.bpmn.core.WorkflowException\r
+import org.openecomp.mso.rest.APIResponse;\r
+import org.openecomp.mso.rest.RESTClient\r
+import org.openecomp.mso.rest.RESTConfig\r
+\r
+import org.openecomp.mso.bpmn.common.scripts.AaiUtil\r
+\r
+import java.util.UUID;\r
+import javax.xml.parsers.DocumentBuilder\r
+import javax.xml.parsers.DocumentBuilderFactory\r
+\r
+import org.camunda.bpm.engine.delegate.BpmnError\r
+import org.camunda.bpm.engine.runtime.Execution\r
+import org.json.JSONObject;\r
+import org.apache.commons.lang3.*\r
+import org.apache.commons.codec.binary.Base64;\r
+import org.springframework.web.util.UriUtils;\r
+import org.w3c.dom.Document\r
+import org.w3c.dom.Element\r
+import org.w3c.dom.Node\r
+import org.w3c.dom.NodeList\r
+import org.xml.sax.InputSource\r
+\r
+import com.fasterxml.jackson.jaxrs.json.annotation.JSONP.Def;\r
+\r
+/**\r
+ * This groovy class supports the <class>DoDeleteE2EServiceInstance.bpmn</class> process.\r
+ * \r
+ * Inputs:\r
+ * @param - msoRequestId\r
+ * @param - globalSubscriberId - O\r
+ * @param - subscriptionServiceType - O\r
+ * @param - serviceInstanceId\r
+ * @param - serviceInstanceName - O\r
+ * @param - serviceInputParams (should contain aic_zone for serviceTypes TRANSPORT,ATM)\r
+ * @param - sdncVersion \r
+ * @param - failNotFound - TODO\r
+ * @param - serviceInputParams - TODO\r
+ *\r
+ * Outputs:\r
+ * @param - WorkflowException\r
+ * \r
+ * Rollback - Deferred\r
+ */\r
+public class DoCustomDeleteE2EServiceInstanceV2 extends AbstractServiceTaskProcessor {\r
+\r
+ String Prefix="DDELSI_"\r
+ private static final String DebugFlag = "isDebugEnabled"\r
+ ExceptionUtil exceptionUtil = new ExceptionUtil()\r
+ JsonUtils jsonUtil = new JsonUtils()\r
+\r
+ public void preProcessRequest (Execution execution) {\r
+ \r
+ def method = getClass().getSimpleName() + '.buildAPPCRequest(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO"," ***** preProcessRequest *****", isDebugEnabled)\r
+ String msg = ""\r
+\r
+ try {\r
+ String requestId = execution.getVariable("msoRequestId")\r
+ execution.setVariable("prefix",Prefix)\r
+\r
+ //Inputs\r
+ //requestDetails.subscriberInfo. for AAI GET & PUT & SDNC assignToplology\r
+ String globalSubscriberId = execution.getVariable("globalSubscriberId") //globalCustomerId\r
+ if (globalSubscriberId == null)\r
+ {\r
+ execution.setVariable("globalSubscriberId", "")\r
+ }\r
+\r
+ //requestDetails.requestParameters. for AAI PUT & SDNC assignTopology\r
+ String serviceType = execution.getVariable("serviceType")\r
+ if (serviceType == null)\r
+ {\r
+ execution.setVariable("serviceType", "")\r
+ }\r
+\r
+ //Generated in parent for AAI PUT\r
+ String serviceInstanceId = execution.getVariable("serviceInstanceId")\r
+ if (isBlank(serviceInstanceId)){\r
+ msg = "Input serviceInstanceId is null"\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 500, msg)\r
+ }\r
+\r
+ String sdncCallbackUrl = execution.getVariable('URN_mso_workflow_sdncadapter_callback')\r
+ if (isBlank(sdncCallbackUrl)) {\r
+ msg = "URN_mso_workflow_sdncadapter_callback is null"\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 500, msg)\r
+ }\r
+ execution.setVariable("sdncCallbackUrl", sdncCallbackUrl)\r
+ utils.log("INFO","SDNC Callback URL: " + sdncCallbackUrl, isDebugEnabled)\r
+\r
+ StringBuilder sbParams = new StringBuilder()\r
+ Map<String, String> paramsMap = execution.getVariable("serviceInputParams")\r
+ if (paramsMap != null)\r
+ {\r
+ sbParams.append("<service-input-parameters>")\r
+ for (Map.Entry<String, String> entry : paramsMap.entrySet()) {\r
+ String paramsXml\r
+ String paramName = entry.getKey()\r
+ String paramValue = entry.getValue()\r
+ paramsXml =\r
+ """ <param>\r
+ <name>${paramName}</name>\r
+ <value>${paramValue}</value>\r
+ </param>\r
+ """\r
+ sbParams.append(paramsXml)\r
+ }\r
+ sbParams.append("</service-input-parameters>")\r
+ }\r
+ String siParamsXml = sbParams.toString()\r
+ if (siParamsXml == null)\r
+ siParamsXml = ""\r
+ execution.setVariable("siParamsXml", siParamsXml)\r
+ execution.setVariable("operationStatus", "Waiting delete resource...")\r
+ execution.setVariable("progress", "0") \r
+\r
+ } catch (BpmnError e) {\r
+ throw e;\r
+ } catch (Exception ex){\r
+ msg = "Exception in preProcessRequest " + ex.getMessage()\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+ \r
+\r
+\r
+ public void postProcessAAIGET(Execution execution) {\r
+ def method = getClass().getSimpleName() + '.postProcessAAIGET(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ \r
+ String msg = ""\r
+\r
+ try {\r
+ String serviceInstanceId = execution.getVariable("serviceInstanceId")\r
+ utils.log("INFO","serviceInstanceId: "+serviceInstanceId, isDebugEnabled)\r
+ \r
+ boolean foundInAAI = execution.getVariable("GENGS_FoundIndicator")\r
+ utils.log("INFO","foundInAAI: "+foundInAAI, isDebugEnabled)\r
+ \r
+ String serviceType = ""\r
+ \r
+\r
+ if(foundInAAI == true){\r
+ utils.log("INFO","Found Service-instance in AAI", isDebugEnabled)\r
+\r
+ String siData = execution.getVariable("GENGS_service")\r
+ utils.log("INFO", "SI Data", isDebugEnabled)\r
+ if (isBlank(siData))\r
+ {\r
+ msg = "Could not retrive ServiceInstance data from AAI to delete id:" + serviceInstanceId\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 500, msg)\r
+ }\r
+ \r
+ }else{\r
+ boolean succInAAI = execution.getVariable("GENGS_SuccessIndicator")\r
+ if(succInAAI != true){\r
+ utils.log("INFO","Error getting Service-instance from AAI", + serviceInstanceId, isDebugEnabled)\r
+ WorkflowException workflowException = execution.getVariable("WorkflowException")\r
+ utils.logAudit("workflowException: " + workflowException)\r
+ if(workflowException != null){\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, workflowException.getErrorCode(), workflowException.getErrorMessage())\r
+ }\r
+ else\r
+ {\r
+ msg = "Failure in postProcessAAIGET GENGS_SuccessIndicator:" + succInAAI\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 2500, msg)\r
+ }\r
+ }\r
+\r
+ utils.log("INFO","Service-instance NOT found in AAI. Silent Success", isDebugEnabled)\r
+ }\r
+ }catch (BpmnError e) {\r
+ throw e;\r
+ } catch (Exception ex) {\r
+ msg = "Bpmn error encountered in " + method + "--" + ex.getMessage()\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+ \r
+ private void loadResourcesProperties(Execution execution) {\r
+ def method = getClass().getSimpleName() + '.loadResourcesProperties(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ String loadFilePath = "/etc/mso/config.d/reources.json"\r
+ try{\r
+ def jsonPayload = new File(loadFilePath).text\r
+ utils.log("INFO","jsonPayload: " + jsonPayload, isDebugEnabled)\r
+\r
+ String resourcesProperties = jsonUtil.prettyJson(jsonPayload.toString())\r
+ utils.log("INFO","resourcesProperties: " + resourcesProperties, isDebugEnabled)\r
+ \r
+ String createResourceSort = jsonUtil.getJsonValue(resourcesProperties, "CreateResourceSort")\r
+ //utils.log("INFO","createResourceSort: " + createResourceSort, isDebugEnabled)\r
+ execution.setVariable("createResourceSort", createResourceSort)\r
+ \r
+ String deleteResourceSort = jsonUtil.getJsonValue(resourcesProperties, "DeleteResourceSort")\r
+ //utils.log("INFO","deleteResourceSort: " + deleteResourceSort, isDebugEnabled)\r
+ execution.setVariable("deleteResourceSort", deleteResourceSort)\r
+ \r
+ \r
+ String resourceControllerType = jsonUtil.getJsonValue(resourcesProperties, "ResourceControllerType")\r
+ //utils.log("INFO","resourceControllerType: " + resourceControllerType, isDebugEnabled)\r
+ execution.setVariable("resourceControllerType", resourceControllerType) \r
+ \r
+ \r
+ }catch(Exception ex){\r
+ // try error in method block\r
+ String exceptionMessage = "Bpmn error encountered in " + method + " - " + ex.getMessage()\r
+ utils.log("DEBUG", exceptionMessage, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, exceptionMessage)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+ private void sortDeleteResource(Execution execution) {\r
+ def method = getClass().getSimpleName() + '.sortDeleteResource(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ String deleteResourceSortDef = """[\r
+ {\r
+ "resourceType":"GRE_SAR"\r
+ },\r
+ {\r
+ "resourceType":"VPN_SAR"\r
+ },\r
+ {\r
+ "resourceType":"APN_AAR"\r
+ },\r
+ {\r
+ "resourceType":"GRE_AAR"\r
+ },\r
+ {\r
+ "resourceType":"Overlay"\r
+ },\r
+ {\r
+ "resourceType":"Underlay"\r
+ },\r
+ {\r
+ "resourceType":"vIMS"\r
+ },\r
+ {\r
+ "resourceType":"vCPE"\r
+ },\r
+ {\r
+ "resourceType":"vFW"\r
+ },\r
+ {\r
+ "resourceType":"vEPC"\r
+ }\r
+ \r
+ \r
+ ]""".trim()\r
+ \r
+ try{\r
+ loadResourcesProperties(execution)\r
+ String deleteResourceSort = execution.getVariable("deleteResourceSort")\r
+ if (isBlank(deleteResourceSort)) {\r
+ deleteResourceSort = deleteResourceSortDef;\r
+ }\r
+ \r
+ List<String> sortResourceList = jsonUtil.StringArrayToList(execution, deleteResourceSort)\r
+ utils.log("INFO", "sortResourceList : " + sortResourceList, isDebugEnabled) \r
+\r
+ JSONArray newResourceList = new JSONArray()\r
+ int resSortCount = sortResourceList.size()\r
+ \r
+ for ( int currentResource = 0 ; currentResource < resSortCount ; currentResource++ ) { \r
+ String currentSortResource = sortResourceList[currentResource]\r
+ String sortResourceType = jsonUtil.getJsonValue(currentSortResource, "resourceType") \r
+ List<String> resourceList = execution.getVariable(Prefix+"resourceList")\r
+\r
+ for (String resource : resourceList) {\r
+ //utils.log("INFO", "resource : " + resource, isDebugEnabled)\r
+ String resourceType = jsonUtil.getJsonValue(resource, "resourceType")\r
+ \r
+ if (StringUtils.containsIgnoreCase(resourceType, sortResourceType)) {\r
+ JSONObject jsonObj = new JSONObject(resource)\r
+ newResourceList.put(jsonObj)\r
+ }\r
+ utils.log("INFO", "Get next sort type " , isDebugEnabled)\r
+ }\r
+ } \r
+\r
+ String newResourceStr = newResourceList.toString() \r
+ List<String> newResourceListStr = jsonUtil.StringArrayToList(execution, newResourceStr) \r
+ \r
+ execution.setVariable(Prefix+"resourceList", newResourceListStr)\r
+ utils.log("INFO", "newResourceList : " + newResourceListStr, isDebugEnabled) \r
+ \r
+ }catch(Exception ex){\r
+ // try error in method block\r
+ String exceptionMessage = "Bpmn error encountered in " + method + " - " + ex.getMessage()\r
+ utils.log("DEBUG", exceptionMessage, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, exceptionMessage)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ \r
+ }\r
+ public void prepareServiceDeleteResource(Execution execution) {\r
+ def method = getClass().getSimpleName() + '.prepareServiceDeleteResource(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ \r
+ try {\r
+ \r
+ String serviceInstanceId = execution.getVariable("serviceInstanceId")\r
+ \r
+ // confirm if ServiceInstance was found\r
+ if ( !execution.getVariable("GENGS_FoundIndicator") )\r
+ {\r
+ String exceptionMessage = "Bpmn error encountered in DeleteMobileAPNCustService flow. Service Instance was not found in AAI by id: " + serviceInstanceId\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, exceptionMessage)\r
+ }\r
+ \r
+ execution.setVariable(Prefix+"resourceList", "")\r
+ execution.setVariable(Prefix+"resourceCount", 0)\r
+ execution.setVariable(Prefix+"nextResource", 0)\r
+ execution.setVariable(Prefix+"resourceFinish", true)\r
+ \r
+ // get SI extracted by GenericGetService\r
+ String serviceInstanceAaiRecord = execution.getVariable("GENGS_service");\r
+ utils.log("INFO", "serviceInstanceAaiRecord: " +serviceInstanceAaiRecord, isDebugEnabled)\r
+ \r
+ String aaiJsonRecord = jsonUtil.xml2json(serviceInstanceAaiRecord)\r
+ \r
+ //utils.log("INFO", "aaiJsonRecord: " +aaiJsonRecord, isDebugEnabled)\r
+ def serviceInstanceName = jsonUtil.getJsonValue(aaiJsonRecord, "service-instance.service-instance-name")\r
+ execution.setVariable("serviceInstanceName",serviceInstanceName)\r
+ \r
+ def serviceType = jsonUtil.getJsonValue(aaiJsonRecord, "service-instance.service-type")\r
+ execution.setVariable("serviceType",serviceType)\r
+ \r
+ \r
+ String relationshipList = jsonUtil.getJsonValue(aaiJsonRecord, "service-instance.relationship-list") \r
+ //utils.log("INFO", "relationship-list:" + relationshipList, isDebugEnabled)\r
+ if (! isBlank(relationshipList)){\r
+ utils.log("INFO", "relationship-list exists" , isDebugEnabled)\r
+ String relationShip = jsonUtil.getJsonValue(relationshipList, "relationship")\r
+ utils.log("INFO", "relationship: " + relationShip, isDebugEnabled)\r
+ JSONArray allResources = new JSONArray()\r
+ JSONArray serviceResources = new JSONArray()\r
+ JSONArray networkResources = new JSONArray()\r
+ JSONArray allottedResources = new JSONArray()\r
+ \r
+ \r
+ if (! isBlank(relationShip)){\r
+ JSONArray jsonArray = new JSONArray();\r
+ if (relationShip.startsWith("{") && relationShip.endsWith("}")) {\r
+ JSONObject jsonObject = new JSONObject(relationShip);\r
+ jsonArray.put(jsonObject);\r
+ } else if (relationShip.startsWith("[") && relationShip.endsWith("]")) {\r
+ jsonArray = new JSONArray(relationShip);\r
+ } else {\r
+ utils.log("INFO", "The relationShip fomart is error" , isDebugEnabled) \r
+ }\r
+ \r
+ List<String> relationList = jsonUtil.StringArrayToList(execution, jsonArray.toString())\r
+ \r
+ utils.log("INFO", "relationList: " + relationList, isDebugEnabled)\r
+ \r
+ int relationNum =relationList.size()\r
+ utils.log("INFO", "**************relationList size: " + relationNum, isDebugEnabled)\r
+ \r
+ for ( int currentRelation = 0 ; currentRelation < relationNum ; currentRelation++ ) { \r
+ utils.log("INFO", "current Relation num: " + currentRelation, isDebugEnabled)\r
+ String relation = relationList[currentRelation]\r
+ utils.log("INFO", "relation: " + relation, isDebugEnabled)\r
+ \r
+ String relatedTo = jsonUtil.getJsonValue(relation, "related-to") \r
+ utils.log("INFO", "relatedTo: " + relatedTo, isDebugEnabled)\r
+ \r
+ String relatedLink = jsonUtil.getJsonValue(relation, "related-link") \r
+ utils.log("INFO", "relatedLink: " + relatedLink, isDebugEnabled)\r
+ \r
+ if (StringUtils.equalsIgnoreCase(relatedTo, "allotted-resource")) {\r
+ utils.log("INFO", "allotted-resource exists ", isDebugEnabled)\r
+\r
+ String aaiArRsp = getAaiAr(execution, relatedLink)\r
+ utils.log("INFO", "aaiArRsp: " + aaiArRsp, isDebugEnabled)\r
+ if (! isBlank(aaiArRsp)) {\r
+ def type = utils.getNodeText1(aaiArRsp, "type")\r
+ def id = utils.getNodeText1(aaiArRsp, "id")\r
+ def role = utils.getNodeText1(aaiArRsp, "role")\r
+ def resourceVersion = utils.getNodeText1(aaiArRsp, "resource-version")\r
+ \r
+ JSONObject jObject = new JSONObject()\r
+ jObject.put("resourceType", type)\r
+ jObject.put("resourceInstanceId", id)\r
+ jObject.put("resourceRole", role)\r
+ jObject.put("resourceVersion", resourceVersion)\r
+ \r
+ allResources.put(jObject) \r
+ utils.log("INFO", "allResources: " + allResources, isDebugEnabled)\r
+ allottedResources.put(jObject)\r
+ utils.log("INFO", "allottedResources: " + allottedResources, isDebugEnabled)\r
+ }\r
+ }\r
+ else if (StringUtils.equalsIgnoreCase(relatedTo, "service-instance")){\r
+ utils.log("INFO", "service-instance exists ", isDebugEnabled)\r
+ JSONObject jObject = new JSONObject()\r
+ \r
+ //relationship-data\r
+ String rsDataStr = jsonUtil.getJsonValue(relation, "relationship-data")\r
+ utils.log("INFO", "rsDataStr: " + rsDataStr, isDebugEnabled)\r
+ List<String> rsDataList = jsonUtil.StringArrayToList(execution, rsDataStr)\r
+ utils.log("INFO", "rsDataList: " + rsDataList, isDebugEnabled)\r
+ for(String rsData : rsDataList){ \r
+ utils.log("INFO", "rsData: " + rsData, isDebugEnabled) \r
+ def eKey = jsonUtil.getJsonValue(rsData, "relationship-key")\r
+ def eValue = jsonUtil.getJsonValue(rsData, "relationship-value")\r
+ if(eKey.equals("service-instance.service-instance-id")){\r
+ jObject.put("resourceInstanceId", eValue)\r
+ }\r
+ if(eKey.equals("service-subscription.service-type")){\r
+ jObject.put("resourceType", eValue)\r
+ }\r
+ }\r
+ \r
+ //related-to-property\r
+ String rPropertyStr = jsonUtil.getJsonValue(relation, "related-to-property")\r
+ utils.log("INFO", "related-to-property: " + rPropertyStr, isDebugEnabled)\r
+ if (rPropertyStr instanceof JSONArray){\r
+ List<String> rPropertyList = jsonUtil.StringArrayToList(execution, rPropertyStr)\r
+ for (String rProperty : rPropertyList) { \r
+ utils.log("INFO", "rProperty: " + rProperty, isDebugEnabled) \r
+ def eKey = jsonUtil.getJsonValue(rProperty, "property-key")\r
+ def eValue = jsonUtil.getJsonValue(rProperty, "property-value")\r
+ if(eKey.equals("service-instance.service-instance-name")){\r
+ jObject.put("resourceName", eValue)\r
+ }\r
+ }\r
+ }\r
+ else {\r
+ String rProperty = rPropertyStr\r
+ utils.log("INFO", "rProperty: " + rProperty, isDebugEnabled) \r
+ def eKey = jsonUtil.getJsonValue(rProperty, "property-key")\r
+ def eValue = jsonUtil.getJsonValue(rProperty, "property-value")\r
+ if (eKey.equals("service-instance.service-instance-name")) {\r
+ jObject.put("resourceName", eValue)\r
+ } \r
+ }\r
+ \r
+ allResources.put(jObject)\r
+ utils.log("INFO", "allResources: " + allResources, isDebugEnabled)\r
+ \r
+ serviceResources.put(jObject)\r
+ utils.log("INFO", "serviceResources: " + serviceResources, isDebugEnabled)\r
+ }\r
+ else if (StringUtils.equalsIgnoreCase(relatedTo, "configuration")) {\r
+ utils.log("INFO", "configuration ", isDebugEnabled)\r
+ JSONObject jObject = new JSONObject()\r
+ \r
+ //relationship-data\r
+ String rsDataStr = jsonUtil.getJsonValue(relation, "relationship-data")\r
+ utils.log("INFO", "rsDataStr: " + rsDataStr, isDebugEnabled)\r
+ List<String> rsDataList = jsonUtil.StringArrayToList(execution, rsDataStr)\r
+ utils.log("INFO", "rsDataList: " + rsDataList, isDebugEnabled)\r
+ for (String rsData : rsDataList) { \r
+ utils.log("INFO", "rsData: " + rsData, isDebugEnabled) \r
+ def eKey = jsonUtil.getJsonValue(rsData, "relationship-key")\r
+ def eValue = jsonUtil.getJsonValue(rsData, "relationship-value")\r
+ if(eKey.equals("configuration.configuration-id")){\r
+ jObject.put("resourceInstanceId", eValue)\r
+ }\r
+ }\r
+\r
+ \r
+ //related-to-property\r
+ String rPropertyStr = jsonUtil.getJsonValue(relation, "related-to-property")\r
+ utils.log("INFO", "related-to-property: " + rPropertyStr, isDebugEnabled)\r
+ if (rPropertyStr instanceof JSONArray){\r
+ List<String> rPropertyList = jsonUtil.StringArrayToList(execution, rPropertyStr)\r
+ for(String rProperty : rPropertyList){ \r
+ utils.log("INFO", "rProperty: " + rProperty, isDebugEnabled) \r
+ def eKey = jsonUtil.getJsonValue(rProperty, "property-key")\r
+ def eValue = jsonUtil.getJsonValue(rProperty, "property-value")\r
+ if(eKey.equals("configuration.configuration-type")){\r
+ jObject.put("resourceType", eValue)\r
+ }\r
+ }\r
+ }\r
+ else {\r
+ String rProperty = rPropertyStr\r
+ utils.log("INFO", "rProperty: " + rProperty, isDebugEnabled) \r
+ def eKey = jsonUtil.getJsonValue(rProperty, "property-key")\r
+ def eValue = jsonUtil.getJsonValue(rProperty, "property-value")\r
+ if(eKey.equals("configuration.configuration-type")){\r
+ jObject.put("resourceType", eValue)\r
+ } \r
+ }\r
+ allResources.put(jObject)\r
+ utils.log("INFO", "allResources: " + allResources, isDebugEnabled)\r
+ \r
+ networkResources.put(jObject)\r
+ utils.log("INFO", "networkResources: " + networkResources, isDebugEnabled)\r
+ }\r
+ utils.log("INFO", "Get Next releation resource " , isDebugEnabled)\r
+ \r
+ }\r
+ utils.log("INFO", "Get releation finished. " , isDebugEnabled)\r
+ }\r
+ \r
+ execution.setVariable("serviceRelationShip", allResources.toString())\r
+ utils.log("INFO", "allResources: " + allResources.toString(), isDebugEnabled)\r
+ String serviceRelationShip = execution.getVariable("serviceRelationShip") \r
+ utils.log("INFO", "serviceRelationShip: " + serviceRelationShip, isDebugEnabled)\r
+ if ((! isBlank(serviceRelationShip)) && (! serviceRelationShip.isEmpty())) {\r
+ \r
+ List<String> relationShipList = jsonUtil.StringArrayToList(execution, serviceRelationShip) \r
+ utils.log("INFO", "relationShipList: " + relationShipList, isDebugEnabled) \r
+ execution.setVariable(Prefix+"resourceList", relationShipList)\r
+ \r
+ int resourceCount = relationShipList.size()\r
+ utils.log("INFO", "resourceCount: " + resourceCount, isDebugEnabled)\r
+ execution.setVariable(Prefix+"resourceCount",resourceCount )\r
+ \r
+ int resourceNum = 0\r
+ execution.setVariable(Prefix+"nextResource", resourceNum)\r
+ utils.log("INFO", "start sort delete resource: ", isDebugEnabled)\r
+ sortDeleteResource(execution)\r
+ \r
+ \r
+ if (resourceNum < resourceCount) {\r
+ execution.setVariable(Prefix+"resourceFinish", false)\r
+ }\r
+ else {\r
+ execution.setVariable(Prefix+"resourceFinish", true)\r
+ }\r
+ utils.log("INFO", "Resource list set end : " + resourceCount, isDebugEnabled) \r
+ }\r
+ \r
+ execution.setVariable("serviceResources", serviceResources.toString()) \r
+ utils.log("INFO", "serviceResources: " + serviceResources, isDebugEnabled) \r
+ String serviceResourcesShip = execution.getVariable("serviceResources") \r
+ utils.log("INFO", "serviceResourcesShip: " + serviceResourcesShip, isDebugEnabled)\r
+ \r
+ if ((! isBlank(serviceResourcesShip)) && (! serviceResourcesShip.isEmpty())) {\r
+ List<String> serviceResourcesList = jsonUtil.StringArrayToList(execution, serviceResourcesShip) \r
+ utils.log("INFO", "serviceResourcesList: " + serviceResourcesList, isDebugEnabled) \r
+ execution.setVariable(Prefix+"serviceResourceList", serviceResourcesList) \r
+ execution.setVariable(Prefix+"serviceResourceCount", serviceResourcesList.size())\r
+ execution.setVariable(Prefix+"nextServiceResource", 0)\r
+ utils.log("INFO", "Service Resource list set end : " + serviceResourcesList.size(), isDebugEnabled) \r
+ \r
+ }\r
+ \r
+ execution.setVariable("allottedResources", allottedResources.toString())\r
+ utils.log("INFO", "allottedResources: " + allottedResources, isDebugEnabled)\r
+ String allottedResourcesShip = execution.getVariable("allottedResources") \r
+ utils.log("INFO", "allottedResourcesShip: " + allottedResourcesShip, isDebugEnabled)\r
+ if ((! isBlank(allottedResourcesShip)) && (! allottedResourcesShip.isEmpty())) {\r
+ List<String> allottedResourcesList = jsonUtil.StringArrayToList(execution, allottedResourcesShip)\r
+ utils.log("INFO", "allottedResourcesList: " + allottedResourcesList, isDebugEnabled)\r
+ execution.setVariable(Prefix+"allottedResourcesList", allottedResourcesList) \r
+ execution.setVariable(Prefix+"allottedResourcesListCount", allottedResourcesList.size())\r
+ execution.setVariable(Prefix+"nextAllottedResourcesList", 0)\r
+ utils.log("INFO", "Allotted Resource list set end : " + allottedResourcesList.size(), isDebugEnabled) \r
+ \r
+ }\r
+ execution.setVariable("networkResources", networkResources.toString())\r
+ utils.log("INFO", "networkResources: " + networkResources, isDebugEnabled)\r
+ String networkResourcesShip = execution.getVariable("networkResources") \r
+ utils.log("INFO", "networkResourcesShip: " + networkResourcesShip, isDebugEnabled)\r
+ if ((! isBlank(networkResourcesShip)) && (! networkResourcesShip.isEmpty())) {\r
+ List<String> networkResourcesList = jsonUtil.StringArrayToList(execution, networkResourcesShip) \r
+ utils.log("INFO", "networkResourcesList: " + networkResourcesList, isDebugEnabled)\r
+ execution.setVariable(Prefix+"networkResourcesList", networkResourcesList) \r
+ execution.setVariable(Prefix+"networkResourcesListCount", networkResourcesList.size())\r
+ execution.setVariable(Prefix+"nextNetworkResourcesList", 0)\r
+ utils.log("INFO", "Network Resource list set end : " + networkResourcesList.size(), isDebugEnabled)\r
+ \r
+ }\r
+ }\r
+ } catch (BpmnError e){\r
+ throw e;\r
+ } catch (Exception ex) {\r
+ String exceptionMessage = "Bpmn error encountered in DeleteMobileAPNCustService flow. prepareServiceDeleteResource() - " + ex.getMessage()\r
+ utils.log("DEBUG", exceptionMessage, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, exceptionMessage)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+ \r
+ private String getAaiAr(Execution execution, String relink) {\r
+ def method = getClass().getSimpleName() + '.getAaiAr(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ AaiUtil aaiUtil = new AaiUtil(this)\r
+ String aaiEndpoint = execution.getVariable("URN_aai_endpoint") + relink\r
+ \r
+ utils.log("DEBUG", "get AR info " + aaiEndpoint, isDebugEnabled)\r
+ APIResponse response = aaiUtil.executeAAIGetCall(execution, aaiEndpoint)\r
+ \r
+ int responseCode = response.getStatusCode()\r
+ utils.log("DEBUG", "get AR info responseCode:" + responseCode, isDebugEnabled)\r
+ \r
+ String aaiResponse = response.getResponseBodyAsString()\r
+ utils.log("DEBUG", "get AR info " + aaiResponse, isDebugEnabled)\r
+ \r
+ if(responseCode < 200 || responseCode >= 300 || isBlank(aaiResponse)) {\r
+ return null\r
+ }\r
+ \r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ return aaiResponse\r
+ }\r
+ /**\r
+ * prepare Decompose next resource to create request\r
+ */\r
+ public void preProcessDecomposeNextResource(Execution execution){\r
+ def method = getClass().getSimpleName() + '.getAaiAr(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO", " ======== STARTED preProcessDecomposeNextResource Process ======== ", isDebugEnabled)\r
+ try{\r
+ int resourceNum = execution.getVariable(Prefix+"nextServiceResource")\r
+ List<String> serviceResourceList = execution.getVariable(Prefix+"serviceResourceList")\r
+ utils.log("INFO", "Service Resource List : " + serviceResourceList, isDebugEnabled)\r
+ \r
+ String serviceResource = serviceResourceList[resourceNum]\r
+ execution.setVariable(Prefix+"serviceResource", serviceResource)\r
+ utils.log("INFO", "Current Service Resource : " + serviceResource, isDebugEnabled)\r
+ \r
+ String resourceType = jsonUtil.getJsonValue(serviceResource, "resourceType")\r
+ execution.setVariable("resourceType", resourceType)\r
+ utils.log("INFO", "resourceType : " + resourceType, isDebugEnabled)\r
+ \r
+ String resourceInstanceId = jsonUtil.getJsonValue(serviceResource, "resourceInstanceId")\r
+ execution.setVariable("resourceInstanceId", resourceInstanceId)\r
+ utils.log("INFO", "resourceInstanceId : " + resourceInstanceId, isDebugEnabled)\r
+ \r
+ String resourceRole = jsonUtil.getJsonValue(serviceResource, "resourceRole")\r
+ execution.setVariable("resourceRole", resourceRole)\r
+ utils.log("INFO", "resourceRole : " + resourceRole, isDebugEnabled)\r
+ \r
+ String resourceVersion = jsonUtil.getJsonValue(serviceResource, "resourceVersion")\r
+ execution.setVariable("resourceVersion", resourceVersion)\r
+ utils.log("INFO", "resourceVersion : " + resourceVersion, isDebugEnabled)\r
+ \r
+ String resourceName = jsonUtil.getJsonValue(serviceResource, "resourceName") \r
+ if (isBlank(resourceName)){\r
+ resourceName = resourceInstanceId\r
+ }\r
+ execution.setVariable(Prefix+"resourceName", resourceName)\r
+ utils.log("INFO", "resource Name : " + resourceName, isDebugEnabled)\r
+ \r
+\r
+ execution.setVariable(Prefix+"nextServiceResource", resourceNum + 1)\r
+ \r
+ int serviceResourceCount = execution.getVariable(Prefix+"serviceResourceCount")\r
+ if (serviceResourceCount >0 ){\r
+ int progress = (resourceNum*100) / serviceResourceCount\r
+ execution.setVariable("progress", progress.toString() )\r
+ }\r
+ execution.setVariable("operationStatus", resourceName )\r
+\r
+ }catch(Exception e){\r
+ // try error in method block\r
+ String exceptionMessage = "Bpmn error encountered in CreateMobileAPNCustService flow. Unexpected Error from method preProcessDecomposeNextResource() - " + ex.getMessage()\r
+ utils.log("DEBUG", exceptionMessage, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, exceptionMessage)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled) \r
+ }\r
+ /**\r
+ * post Decompose next resource to create request\r
+ */\r
+ public void postProcessDecomposeNextResource(Execution execution){\r
+ def method = getClass().getSimpleName() + '.postProcessDecomposeNextResource(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO", " ======== STARTED postProcessDecomposeNextResource Process ======== ", isDebugEnabled)\r
+ try{\r
+ String resourceName = execution.getVariable(Prefix+"resourceName")\r
+ int resourceNum = execution.getVariable(Prefix+"nextServiceResource")\r
+ utils.log("DEBUG", "Current Resource count:"+ execution.getVariable(Prefix+"nextServiceResource"), isDebugEnabled)\r
+ \r
+ int resourceCount = execution.getVariable(Prefix+"serviceResourceCount")\r
+ utils.log("DEBUG", "Total Resource count:"+ execution.getVariable(Prefix+"serviceResourceCount"), isDebugEnabled)\r
+\r
+ if (resourceNum < resourceCount) {\r
+ execution.setVariable(Prefix+"resourceFinish", false)\r
+ }\r
+ else {\r
+ execution.setVariable(Prefix+"resourceFinish", true)\r
+ }\r
+ \r
+ utils.log("DEBUG", "Resource Finished:"+ execution.getVariable(Prefix+"resourceFinish"), isDebugEnabled)\r
+ \r
+ if (resourceCount >0 ){\r
+ int progress = (resourceNum*100) / resourceCount\r
+\r
+ execution.setVariable("progress", progress.toString() )\r
+ utils.log("DEBUG", "progress :"+ execution.getVariable("progress"), isDebugEnabled)\r
+ }\r
+ execution.setVariable("operationStatus", resourceName )\r
+\r
+\r
+ }catch(Exception e){\r
+ // try error in method block\r
+ String exceptionMessage = "Bpmn error encountered in CreateMobileAPNCustService flow. Unexpected Error from method postProcessDecomposeNextResource() - " + ex.getMessage()\r
+ utils.log("DEBUG", exceptionMessage, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, exceptionMessage)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled) \r
+ }\r
+ /**\r
+ * prepare post Unkown Resource Type \r
+ */\r
+ public void postOtherControllerType(Execution execution){\r
+ def method = getClass().getSimpleName() + '.postOtherControllerType(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ \r
+ try{\r
+\r
+ String resourceName = execution.getVariable(Prefix+"resourceName") \r
+ String resourceType = execution.getVariable(Prefix+"resourceType") \r
+ String controllerType = execution.getVariable("controllerType")\r
+ \r
+ String msg = "Resource name: "+ resourceName + " resource Type: " + resourceType+ " controller Type: " + controllerType + " can not be processed n the workflow"\r
+ utils.log("DEBUG", msg, isDebugEnabled)\r
+ \r
+ }catch(Exception e){\r
+ // try error in method block\r
+ String exceptionMessage = "Bpmn error encountered in DoCreateMobileAPNServiceInstance flow. Unexpected Error from method postOtherControllerType() - " + ex.getMessage()\r
+ utils.log("DEBUG", exceptionMessage, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, exceptionMessage)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled) \r
+ }\r
+\r
+ /**\r
+ * prepare delete parameters\r
+ */\r
+ public void preSDNCResourceDelete(execution, resourceName){\r
+ // we use resource instance ids for delete flow as resourceTemplateUUIDs\r
+\r
+ def method = getClass().getSimpleName() + '.preSDNCResourceDelete(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+\r
+ utils.log("INFO", " ======== STARTED preSDNCResourceDelete Process ======== ", isDebugEnabled)\r
+ String networkResources = execution.getVariable("networkResources") \r
+ \r
+ \r
+ execution.setVariable("foundResource", false) \r
+ if (networkResources != null) {\r
+ def jsonSlurper = new JsonSlurper() \r
+ List relationShipList = jsonSlurper.parseText(networkResources)\r
+ relationShipList.each {\r
+ if(StringUtils.containsIgnoreCase(it.resourceType, resourceName)) {\r
+ String resourceInstanceUUID = it.resourceInstanceId\r
+ String resourceTemplateUUID = it.resourceInstanceId\r
+ execution.setVariable("resourceTemplateId", resourceTemplateUUID)\r
+ execution.setVariable("resourceInstanceId", resourceInstanceUUID)\r
+ execution.setVariable("resourceType", resourceName)\r
+ execution.setVariable("foundResource", true)\r
+ utils.log("INFO", "Delete Resource Info resourceTemplate Id :" + resourceTemplateUUID + " resourceInstanceId: " + resourceInstanceUUID + " resourceType: " + resourceName, isDebugEnabled)\r
+ }\r
+ }\r
+ } \r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+ public void preProcessSDNCDelete (Execution execution) {\r
+ def method = getClass().getSimpleName() + '.preProcessSDNCDelete(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO"," ***** preProcessSDNCDelete *****", isDebugEnabled)\r
+ String msg = ""\r
+\r
+ try {\r
+ def serviceInstanceId = execution.getVariable("serviceInstanceId")\r
+ def serviceInstanceName = execution.getVariable("serviceInstanceName")\r
+ def callbackURL = execution.getVariable("sdncCallbackUrl")\r
+ def requestId = execution.getVariable("msoRequestId")\r
+ def serviceId = execution.getVariable("productFamilyId")\r
+ def subscriptionServiceType = execution.getVariable("subscriptionServiceType")\r
+ def globalSubscriberId = execution.getVariable("globalSubscriberId") //globalCustomerId\r
+\r
+ String serviceModelInfo = execution.getVariable("serviceModelInfo")\r
+ def modelInvariantUuid = ""\r
+ def modelVersion = ""\r
+ def modelUuid = ""\r
+ def modelName = ""\r
+ if (!isBlank(serviceModelInfo))\r
+ {\r
+ modelInvariantUuid = jsonUtil.getJsonValue(serviceModelInfo, "modelInvariantUuid")\r
+ modelVersion = jsonUtil.getJsonValue(serviceModelInfo, "modelVersion")\r
+ modelUuid = jsonUtil.getJsonValue(serviceModelInfo, "modelUuid")\r
+ modelName = jsonUtil.getJsonValue(serviceModelInfo, "modelName")\r
+\r
+ if (modelInvariantUuid == null) {\r
+ modelInvariantUuid = ""\r
+ }\r
+ if (modelVersion == null) {\r
+ modelVersion = ""\r
+ }\r
+ if (modelUuid == null) {\r
+ modelUuid = ""\r
+ }\r
+ if (modelName == null) {\r
+ modelName = ""\r
+ }\r
+ }\r
+ if (serviceInstanceName == null) {\r
+ serviceInstanceName = ""\r
+ }\r
+ if (serviceId == null) {\r
+ serviceId = ""\r
+ }\r
+\r
+ def siParamsXml = execution.getVariable("siParamsXml")\r
+ def serviceType = execution.getVariable("serviceType")\r
+ if (serviceType == null)\r
+ {\r
+ serviceType = ""\r
+ }\r
+\r
+ def sdncRequestId = UUID.randomUUID().toString()\r
+\r
+ String sdncDelete =\r
+ """<sdncadapterworkflow:SDNCAdapterWorkflowRequest xmlns:ns5="http://org.openecomp/mso/request/types/v1"\r
+ xmlns:sdncadapterworkflow="http://org.openecomp/mso/workflow/schema/v1"\r
+ xmlns:sdncadapter="http://org.openecomp/workflow/sdnc/adapter/schema/v1">\r
+ <sdncadapter:RequestHeader>\r
+ <sdncadapter:RequestId>${sdncRequestId}</sdncadapter:RequestId>\r
+ <sdncadapter:SvcInstanceId>${serviceInstanceId}</sdncadapter:SvcInstanceId>\r
+ <sdncadapter:SvcAction>delete</sdncadapter:SvcAction>\r
+ <sdncadapter:SvcOperation>service-topology-operation</sdncadapter:SvcOperation>\r
+ <sdncadapter:CallbackUrl>${callbackURL}</sdncadapter:CallbackUrl>\r
+ <sdncadapter:MsoAction>${serviceType}</sdncadapter:MsoAction>\r
+ </sdncadapter:RequestHeader>\r
+ <sdncadapterworkflow:SDNCRequestData>\r
+ <request-information>\r
+ <request-id>${requestId}</request-id>\r
+ <source>MSO</source>\r
+ <notification-url/>\r
+ <order-number/>\r
+ <order-version/>\r
+ <request-action>DeleteServiceInstance</request-action>\r
+ </request-information>\r
+ <service-information>\r
+ <service-id>${serviceId}</service-id>\r
+ <subscription-service-type>${subscriptionServiceType}</subscription-service-type>\r
+ <onap-model-information>\r
+ <model-invariant-uuid>${modelInvariantUuid}</model-invariant-uuid>\r
+ <model-uuid>${modelUuid}</model-uuid>\r
+ <model-version>${modelVersion}</model-version>\r
+ <model-name>${modelName}</model-name>\r
+ </onap-model-information>\r
+ <service-instance-id>${serviceInstanceId}</service-instance-id>\r
+ <subscriber-name/>\r
+ <global-customer-id>${globalSubscriberId}</global-customer-id>\r
+ </service-information>\r
+ <service-request-input>\r
+ <service-instance-name>${serviceInstanceName}</service-instance-name>\r
+ ${siParamsXml}\r
+ </service-request-input>\r
+ </sdncadapterworkflow:SDNCRequestData>\r
+ </sdncadapterworkflow:SDNCAdapterWorkflowRequest>"""\r
+\r
+ sdncDelete = utils.formatXml(sdncDelete)\r
+ def sdncRequestId2 = UUID.randomUUID().toString()\r
+ String sdncDeactivate = sdncDelete.replace(">delete<", ">deactivate<").replace(">${sdncRequestId}<", ">${sdncRequestId2}<")\r
+ execution.setVariable("sdncDelete", sdncDelete)\r
+ execution.setVariable("sdncDeactivate", sdncDeactivate)\r
+ utils.log("INFO","sdncDeactivate:\n" + sdncDeactivate, isDebugEnabled)\r
+ utils.log("INFO","sdncDelete:\n" + sdncDelete, isDebugEnabled)\r
+\r
+ } catch (BpmnError e) {\r
+ throw e;\r
+ } catch(Exception ex) {\r
+ msg = "Exception in preProcessSDNCDelete. " + ex.getMessage()\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, "Exception Occured in preProcessSDNCDelete.\n" + ex.getMessage())\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+\r
+ public void postProcessSDNCDelete(Execution execution, String response, String action) {\r
+\r
+ def method = getClass().getSimpleName() + '.postProcessSDNCDelete(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO"," ***** postProcessSDNC " + action + " *****", isDebugEnabled)\r
+ String msg = ""\r
+\r
+ /*try {\r
+ WorkflowException workflowException = execution.getVariable("WorkflowException")\r
+ boolean successIndicator = execution.getVariable("SDNCA_SuccessIndicator")\r
+ utils.log("INFO", "SDNCResponse: " + response, isDebugEnabled)\r
+ utils.log("INFO", "workflowException: " + workflowException, isDebugEnabled)\r
+\r
+ SDNCAdapterUtils sdncAdapterUtils = new SDNCAdapterUtils(this)\r
+ sdncAdapterUtils.validateSDNCResponse(execution, response, workflowException, successIndicator)\r
+ if(execution.getVariable(Prefix + 'sdncResponseSuccess') == "true"){\r
+ utils.log("INFO","Good response from SDNC Adapter for service-instance " + action + "response:\n" + response, isDebugEnabled)\r
+\r
+ }else{\r
+ msg = "Bad Response from SDNC Adapter for service-instance " + action\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 3500, msg)\r
+ }\r
+ } catch (BpmnError e) {\r
+ throw e;\r
+ } catch(Exception ex) {\r
+ msg = "Exception in postProcessSDNC " + action + " Exception:" + ex.getMessage()\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)\r
+ }*/\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+ \r
+ public void postProcessAAIDEL(Execution execution) {\r
+ def method = getClass().getSimpleName() + '.postProcessAAIDEL(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ utils.log("INFO"," ***** postProcessAAIDEL ***** ", isDebugEnabled)\r
+ String msg = ""\r
+ try {\r
+ String serviceInstanceId = execution.getVariable("serviceInstanceId")\r
+ boolean succInAAI = execution.getVariable("GENDS_SuccessIndicator")\r
+ if(succInAAI != true){\r
+ msg = "Error deleting Service-instance in AAI" + serviceInstanceId\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ WorkflowException workflowException = execution.getVariable("WorkflowException")\r
+ utils.logAudit("workflowException: " + workflowException)\r
+ if(workflowException != null){\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, workflowException.getErrorCode(), workflowException.getErrorMessage())\r
+ }\r
+ else\r
+ {\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 2500, msg)\r
+ }\r
+ }\r
+ } catch (BpmnError e) {\r
+ throw e;\r
+ } catch (Exception ex) {\r
+ msg = "Exception in DoDeleteE2EServiceInstance.postProcessAAIDEL. " + ex.getMessage()\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+ /**\r
+ * Init the service Operation Status\r
+ */\r
+ public void preUpdateServiceOperationStatus(Execution execution){\r
+ def method = getClass().getSimpleName() + '.preUpdateServiceOperationStatus(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+ \r
+ try{\r
+ String serviceId = execution.getVariable("serviceInstanceId")\r
+ String operationId = execution.getVariable("operationId")\r
+ String serviceName = execution.getVariable("serviceInstanceName")\r
+ String operationType = "DELETE"\r
+ String userId = ""\r
+ String result = "processing"\r
+ String progress = execution.getVariable("progress")\r
+ utils.log("INFO", "progress: " + progress , isDebugEnabled)\r
+ if ("100".equalsIgnoreCase(progress))\r
+ {\r
+ result = "finished"\r
+ }\r
+ String reason = ""\r
+ String operationContent = "Prepare service delete: " + execution.getVariable("operationStatus")\r
+ utils.log("INFO", "Generated new operation for Service Instance serviceId:" + serviceId + " operationId:" + operationId, isDebugEnabled)\r
+ serviceId = UriUtils.encode(serviceId,"UTF-8")\r
+ execution.setVariable("serviceInstanceId", serviceId)\r
+ execution.setVariable("operationId", operationId)\r
+ execution.setVariable("operationType", operationType)\r
+\r
+ def dbAdapterEndpoint = execution.getVariable("URN_mso_adapters_openecomp_db_endpoint")\r
+ execution.setVariable("CVFMI_dbAdapterEndpoint", dbAdapterEndpoint)\r
+ utils.log("INFO", "DB Adapter Endpoint is: " + dbAdapterEndpoint, isDebugEnabled)\r
+\r
+ execution.setVariable("URN_mso_openecomp_adapters_db_endpoint","http://mso.mso.testlab.openecomp.org:8080/dbadapters/RequestsDbAdapter")\r
+ \r
+ String payload =\r
+ """<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"\r
+ xmlns:ns="http://org.openecomp.mso/requestsdb">\r
+ <soapenv:Header/>\r
+ <soapenv:Body>\r
+ <ns:updateServiceOperationStatus xmlns:ns="http://org.openecomp.mso/requestsdb">\r
+ <serviceId>${serviceId}</serviceId>\r
+ <operationId>${operationId}</operationId>\r
+ <serviceName>${serviceName}</serviceName>\r
+ <operationType>${operationType}</operationType>\r
+ <userId>${userId}</userId>\r
+ <result>${result}</result>\r
+ <operationContent>${operationContent}</operationContent>\r
+ <progress>${progress}</progress>\r
+ <reason>${reason}</reason>\r
+ </ns:updateServiceOperationStatus>\r
+ </soapenv:Body>\r
+ </soapenv:Envelope>"""\r
+\r
+ payload = utils.formatXml(payload)\r
+ execution.setVariable("CVFMI_updateServiceOperStatusRequest", payload)\r
+ utils.log("INFO", "Outgoing preUpdateServiceOperationStatus: \n" + payload, isDebugEnabled)\r
+ \r
+\r
+ }catch(Exception e){\r
+ utils.log("ERROR", "Exception Occured Processing preUpdateServiceOperationStatus. Exception is:\n" + e, isDebugEnabled)\r
+ execution.setVariable("CVFMI_ErrorResponse", "Error Occurred during preUpdateServiceOperationStatus Method:\n" + e.getMessage())\r
+ }\r
+ utils.log("INFO", "======== COMPLETED preUpdateServiceOperationStatus Process ======== ", isDebugEnabled) \r
+ utils.log("INFO", "Exited " + method, isDebugEnabled)\r
+ }\r
+ \r
+ public void preInitResourcesOperStatus(Execution execution){\r
+ def method = getClass().getSimpleName() + '.preInitResourcesOperStatus(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+\r
+ utils.log("INFO", " ======== STARTED preInitResourcesOperStatus Process ======== ", isDebugEnabled)\r
+ String msg=""\r
+ try{\r
+ String serviceId = execution.getVariable("serviceInstanceId")\r
+ String operationId = execution.getVariable("operationId")\r
+ String operationType = "DELETE"\r
+ String resourceTemplateUUIDs = ""\r
+ String result = "processing"\r
+ String progress = "0"\r
+ String reason = ""\r
+ String operationContent = "Prepare service delete"\r
+ utils.log("INFO", "Generated new operation for Service Instance serviceId:" + serviceId + " operationId:" + operationId + " operationType:" + operationType, isDebugEnabled)\r
+ serviceId = UriUtils.encode(serviceId,"UTF-8")\r
+ execution.setVariable("serviceInstanceId", serviceId)\r
+ execution.setVariable("operationId", operationId)\r
+ execution.setVariable("operationType", operationType)\r
+\r
+ String serviceRelationShip = execution.getVariable("serviceRelationShip")\r
+ utils.log("INFO", "serviceRelationShip: " + serviceRelationShip, isDebugEnabled)\r
+ if (! isBlank(serviceRelationShip)) {\r
+ def jsonSlurper = new JsonSlurper()\r
+ def jsonOutput = new JsonOutput() \r
+ List relationShipList = jsonSlurper.parseText(serviceRelationShip)\r
+ \r
+ if (relationShipList != null) {\r
+ relationShipList.each {\r
+ resourceTemplateUUIDs = resourceTemplateUUIDs + it.resourceInstanceId + ":"\r
+ }\r
+ }\r
+ } \r
+ def dbAdapterEndpoint = "http://mso.mso.testlab.openecomp.org:8080/dbadapters/RequestsDbAdapter"\r
+ execution.setVariable("CVFMI_dbAdapterEndpoint", dbAdapterEndpoint)\r
+ utils.log("INFO", "DB Adapter Endpoint is: " + dbAdapterEndpoint, isDebugEnabled)\r
+\r
+ String payload =\r
+ """<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"\r
+ xmlns:ns="http://org.openecomp.mso/requestsdb">\r
+ <soapenv:Header/>\r
+ <soapenv:Body>\r
+ <ns:initResourceOperationStatus xmlns:ns="http://org.openecomp.mso/requestsdb">\r
+ <serviceId>${serviceId}</serviceId>\r
+ <operationId>${operationId}</operationId>\r
+ <operationType>${operationType}</operationType>\r
+ <resourceTemplateUUIDs>${resourceTemplateUUIDs}</resourceTemplateUUIDs>\r
+ </ns:initResourceOperationStatus>\r
+ </soapenv:Body>\r
+ </soapenv:Envelope>"""\r
+\r
+ payload = utils.formatXml(payload)\r
+ execution.setVariable("CVFMI_initResOperStatusRequest", payload)\r
+ utils.log("INFO", "Outgoing initResourceOperationStatus: \n" + payload, isDebugEnabled)\r
+ utils.logAudit("DoCustomDeleteE2EServiceInstanceV2 Outgoing initResourceOperationStatus Request: " + payload)\r
+\r
+ }catch (BpmnError e) {\r
+ throw e;\r
+ } catch (Exception ex) {\r
+ msg = "Exception in DoCustomDeleteE2EServiceInstanceV2.preInitResourcesOperStatus. " + ex.getMessage()\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled) \r
+ }\r
+ \r
+\r
+ \r
+ /**\r
+ * prepare delete parameters\r
+ */\r
+ public void preProcessVFCResourceDelete(execution){\r
+ // we use resource instance ids for delete flow as resourceTemplateUUIDs\r
+\r
+ def method = getClass().getSimpleName() + '.preProcessVFCResourceDelete(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+\r
+ utils.log("INFO", " ======== STARTED preProcessVFCResourceDelete Process ======== ", isDebugEnabled)\r
+ try{\r
+ String serviceResource = execution.getVariable("serviceResource") \r
+ utils.log("INFO", "serviceResource : " + serviceResource, isDebugEnabled)\r
+ \r
+ String resourceInstanceId = execution.getVariable("resourceInstanceId")\r
+ utils.log("INFO", "resourceInstanceId : " + resourceInstanceId, isDebugEnabled)\r
+ \r
+ execution.setVariable("resourceTemplateId", resourceInstanceId)\r
+ utils.log("INFO", "resourceTemplateId : " + resourceInstanceId, isDebugEnabled)\r
+ \r
+ String resourceType = execution.getVariable("resourceType")\r
+ utils.log("INFO", "resourceType : " + resourceType, isDebugEnabled)\r
+\r
+ \r
+ String resourceName = execution.getVariable(Prefix+"resourceName") \r
+ if (isBlank(resourceName)){\r
+ resourceName = resourceInstanceId\r
+ }\r
+ execution.setVariable("resourceName", resourceName)\r
+ utils.log("INFO", "resource Name : " + resourceName, isDebugEnabled)\r
+ \r
+ utils.log("INFO", "Delete Resource Info: resourceInstanceId :" + resourceInstanceId + " resourceTemplateId: " + resourceInstanceId + " resourceType: " + resourceType, isDebugEnabled)\r
+ }catch (BpmnError e) {\r
+ throw e;\r
+ } catch (Exception ex) {\r
+ msg = "Exception in DoDeleteE2EServiceInstance.preProcessVFCResourceDelete. " + ex.getMessage()\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled) \r
+ }\r
+\r
+ public void postProcessVFCDelete(Execution execution, String response, String action) {\r
+ def method = getClass().getSimpleName() + '.postProcessVFCDelete(' +'execution=' + execution.getId() +')'\r
+ def isDebugEnabled = execution.getVariable("isDebugLogEnabled")\r
+ utils.log("INFO","Entered " + method, isDebugEnabled)\r
+\r
+ utils.log("INFO", " ======== STARTED postProcessVFCDelete Process ======== ", isDebugEnabled)\r
+ try{\r
+ \r
+ }catch (BpmnError e) {\r
+ throw e;\r
+ } catch (Exception ex) {\r
+ msg = "Exception in DoDeleteE2EServiceInstance.postProcessVFCDelete. " + ex.getMessage()\r
+ utils.log("INFO", msg, isDebugEnabled)\r
+ exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)\r
+ }\r
+ utils.log("INFO", "Exited " + method, isDebugEnabled) \r
+ }\r
+}\r
+
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="_MagIIMOUEeW8asg-vCEgWQ" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="Camunda Modeler" exporterVersion="1.11.3" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
+ <bpmn2:process id="DoCreateE2EServiceInstanceV2" name="DoCreateE2EServiceInstanceV2" isExecutable="true">
+ <bpmn2:startEvent id="createSI_startEvent" name="Start Flow">
+ <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
+ </bpmn2:startEvent>
+ <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="createSI_startEvent" targetRef="preProcessRequest_ScriptTask" />
+ <bpmn2:scriptTask id="preProcessRequest_ScriptTask" name="PreProcess Incoming Request" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def dcsi = new DoCreateE2EServiceInstanceV2()
+dcsi.preProcessRequest(execution)
+]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:sequenceFlow id="SequenceFlow_4" name="" sourceRef="CustomE2EGetService" targetRef="ScriptTask_0i8cqdy_PostProcessAAIGET" />
+ <bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="preProcessRequest_ScriptTask" targetRef="CustomE2EGetService" />
+ <bpmn2:callActivity id="CustomE2EGetService" name="Call Custom E2E Get Service" calledElement="CustomE2EGetService">
+ <bpmn2:extensionElements>
+ <camunda:in source="serviceInstanceName" target="GENGS_serviceInstanceName" />
+ <camunda:in source="globalSubscriberId" target="GENGS_globalCustomerId" />
+ <camunda:in sourceExpression="service-instance" target="GENGS_type" />
+ <camunda:out source="GENGS_FoundIndicator" target="GENGS_FoundIndicator" />
+ <camunda:out source="GENGS_SuccessIndicator" target="GENGS_SuccessIndicator" />
+ <camunda:out source="WorkflowException" target="WorkflowException" />
+ <camunda:in source="serviceType" target="GENGS_serviceType" />
+ </bpmn2:extensionElements>
+ <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
+ </bpmn2:callActivity>
+ <bpmn2:callActivity id="CustomE2EPutService" name="Call Custom E2E Put Service" calledElement="CustomE2EPutService">
+ <bpmn2:extensionElements>
+ <camunda:in source="globalSubscriberId" target="GENPS_globalSubscriberId" />
+ <camunda:in source="serviceInstanceId" target="GENPS_serviceInstanceId" />
+ <camunda:in source="serviceType" target="GENPS_serviceType" />
+ <camunda:in sourceExpression="service-instance" target="GENPS_type" />
+ <camunda:in source="serviceInstanceData" target="GENPS_payload" />
+ <camunda:out source="GENPS_SuccessIndicator" target="GENPS_SuccessIndicator" />
+ <camunda:in source="msoRequestId" target="GENPS_requesId" />
+ <camunda:out source="WorkflowException" target="WorkflowException" />
+ </bpmn2:extensionElements>
+ <bpmn2:incoming>SequenceFlow_0zmz5am</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_129ih1g</bpmn2:outgoing>
+ </bpmn2:callActivity>
+ <bpmn2:sequenceFlow id="SequenceFlow_129ih1g" sourceRef="CustomE2EPutService" targetRef="ScriptTask_0q37vn9_PostProcessAAIPUT" />
+ <bpmn2:subProcess id="SubProcess_06d8lk8" name="Sub-process for Application Errors" triggeredByEvent="true">
+ <bpmn2:startEvent id="StartEvent_0yljq9y">
+ <bpmn2:outgoing>SequenceFlow_0tgrn11</bpmn2:outgoing>
+ <bpmn2:errorEventDefinition />
+ </bpmn2:startEvent>
+ <bpmn2:endEvent id="EndEvent_117lkk3">
+ <bpmn2:incoming>SequenceFlow_1xzgv5k</bpmn2:incoming>
+ </bpmn2:endEvent>
+ <bpmn2:callActivity id="CallActivity_1srx6p6" name="Call DoCreateE2EServiceInstanceRollback" calledElement="DoCreateE2EServiceInstanceRollback">
+ <bpmn2:extensionElements>
+ <camunda:in source="msoRequestId" target="mso-request-id" />
+ <camunda:in source="rollbackData" target="rollbackData" />
+ <camunda:out source="rolledBack" target="rolledBack" />
+ <camunda:in source="disableRollback" target="disableRollback" />
+ <camunda:out source="rollbackError" target="rollbackErrror" />
+ </bpmn2:extensionElements>
+ <bpmn2:incoming>SequenceFlow_1lqktwf</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_0eumzpf</bpmn2:outgoing>
+ </bpmn2:callActivity>
+ <bpmn2:sequenceFlow id="SequenceFlow_0eumzpf" sourceRef="CallActivity_1srx6p6" targetRef="ScriptTask_1p0vyip" />
+ <bpmn2:sequenceFlow id="SequenceFlow_0tgrn11" sourceRef="StartEvent_0yljq9y" targetRef="ScriptTask_0ocetux" />
+ <bpmn2:scriptTask id="ScriptTask_0ocetux" name="Pre Process Rollback" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_0tgrn11</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_1lqktwf</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def dcsi = new DoCreateE2EServiceInstanceV2()
+dcsi.preProcessRollback(execution)
+]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:sequenceFlow id="SequenceFlow_1lqktwf" sourceRef="ScriptTask_0ocetux" targetRef="CallActivity_1srx6p6" />
+ <bpmn2:scriptTask id="ScriptTask_1p0vyip" name="Post Process Rollback" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_0eumzpf</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_1xzgv5k</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def dcsi = new DoCreateE2EServiceInstanceV2()
+dcsi.postProcessRollback(execution)
+]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:sequenceFlow id="SequenceFlow_1xzgv5k" sourceRef="ScriptTask_1p0vyip" targetRef="EndEvent_117lkk3" />
+ </bpmn2:subProcess>
+ <bpmn2:scriptTask id="ScriptTask_0i8cqdy_PostProcessAAIGET" name="Post Process AAI GET" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_10aubhh</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def dcsi = new DoCreateE2EServiceInstanceV2()
+dcsi.postProcessAAIGET(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:scriptTask id="ScriptTask_0q37vn9_PostProcessAAIPUT" name="Post Process AAI PUT" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_129ih1g</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_03fabby</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def ddsi = new DoCreateE2EServiceInstanceV2()
+ddsi.postProcessAAIPUT(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:endEvent id="EndEvent_0kbbt94" />
+ <bpmn2:sequenceFlow id="SequenceFlow_03fabby" sourceRef="ScriptTask_0q37vn9_PostProcessAAIPUT" targetRef="IntermediateThrowEvent_0cabwkq" />
+ <bpmn2:scriptTask id="Task_1u82cbz" name="PreProcess Decompose Next Resouce" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_13l7ffp</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_0gorww6</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def csi = new DoCreateE2EServiceInstanceV2()
+csi.preProcessDecomposeNextResource(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:exclusiveGateway id="ExclusiveGateway_1761epe" default="SequenceFlow_14ef6wp">
+ <bpmn2:incoming>SequenceFlow_1wf52w6</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_1t9tmp4</bpmn2:outgoing>
+ <bpmn2:outgoing>SequenceFlow_14ef6wp</bpmn2:outgoing>
+ <bpmn2:outgoing>SequenceFlow_163tmnq</bpmn2:outgoing>
+ </bpmn2:exclusiveGateway>
+ <bpmn2:sequenceFlow id="SequenceFlow_0gorww6" sourceRef="Task_1u82cbz" targetRef="ScriptTask_1oc0qjo" />
+ <bpmn2:sequenceFlow id="SequenceFlow_1t9tmp4" name="VFC" sourceRef="ExclusiveGateway_1761epe" targetRef="Task_09laxun">
+ <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("controllerType") =="VFC"}]]></bpmn2:conditionExpression>
+ </bpmn2:sequenceFlow>
+ <bpmn2:scriptTask id="Task_09laxun" name="PreProcess Resource Request for VFC" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_1t9tmp4</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_1t4cc7w</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def csi = new DoCreateE2EServiceInstanceV2()
+csi.preProcessResourceRequestForController(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:sequenceFlow id="SequenceFlow_1t4cc7w" sourceRef="Task_09laxun" targetRef="ExclusiveGateway_1xkr802" />
+ <bpmn2:callActivity id="Task_1wyyy33" name="Call DoCreateVFCNetworkServiceInstance" calledElement="DoCreateVFCNetworkServiceInstance">
+ <bpmn2:extensionElements>
+ <camunda:in source="nsServiceName" target="nsServiceName" />
+ <camunda:in source="nsServiceDescription" target="nsServiceDescription" />
+ <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
+ <camunda:in source="serviceType" target="serviceType" />
+ <camunda:in source="serviceId" target="serviceId" />
+ <camunda:in source="operationId" target="operationId" />
+ <camunda:in source="resourceType" target="resourceType" />
+ <camunda:in source="resourceUUID" target="resourceUUID" />
+ <camunda:in source="resourceParameters" target="resourceParameters" />
+ <camunda:in source="operationType" target="operationType" />
+ </bpmn2:extensionElements>
+ <bpmn2:incoming>SequenceFlow_1a1du22</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_1p99k36</bpmn2:outgoing>
+ </bpmn2:callActivity>
+ <bpmn2:sequenceFlow id="SequenceFlow_1p99k36" sourceRef="Task_1wyyy33" targetRef="ExclusiveGateway_1iu2jb7" />
+ <bpmn2:scriptTask id="Task_0ag30bf" name="PostProcess Resource Request for VFC" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_0cyffv0</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_07q8ra0</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def csi = new DoCreateE2EServiceInstanceV2()
+csi.postProcessResourceRequestForVFC(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:scriptTask id="ScriptTask_1op29ls" name="PostProcess Resource Request for SDNC" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_06byir6</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_0ylmq2b</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def csi = new DoCreateE2EServiceInstanceV2()
+csi.postProcessResourceRequestForSDNC(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:scriptTask id="ScriptTask_0g6otdg" name="PreProcess Resource Request for SDNC" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_0vey6x4</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_0br9juy</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def csi = new DoCreateE2EServiceInstanceV2()
+csi.preProcessResourceRequestForController(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:exclusiveGateway id="ExclusiveGateway_0r4jkig">
+ <bpmn2:incoming>SequenceFlow_0ylmq2b</bpmn2:incoming>
+ <bpmn2:incoming>SequenceFlow_07q8ra0</bpmn2:incoming>
+ <bpmn2:incoming>SequenceFlow_0gxsqsa</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_1yhd9dp</bpmn2:outgoing>
+ </bpmn2:exclusiveGateway>
+ <bpmn2:sequenceFlow id="SequenceFlow_0ylmq2b" sourceRef="ScriptTask_1op29ls" targetRef="ExclusiveGateway_0r4jkig" />
+ <bpmn2:sequenceFlow id="SequenceFlow_07q8ra0" sourceRef="Task_0ag30bf" targetRef="ExclusiveGateway_0r4jkig" />
+ <bpmn2:exclusiveGateway id="ExclusiveGateway_1pwgsa8" name="Resource Finish?" default="SequenceFlow_13l7ffp">
+ <bpmn2:incoming>SequenceFlow_1rhn48b</bpmn2:incoming>
+ <bpmn2:incoming>SequenceFlow_1mbrbsc</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_13l7ffp</bpmn2:outgoing>
+ <bpmn2:outgoing>SequenceFlow_1fq4qzy</bpmn2:outgoing>
+ </bpmn2:exclusiveGateway>
+ <bpmn2:sequenceFlow id="SequenceFlow_13l7ffp" name="No" sourceRef="ExclusiveGateway_1pwgsa8" targetRef="Task_1u82cbz" />
+ <bpmn2:scriptTask id="Task_0vtxtuq_QueryServiceResources" name="Query Service Resources" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_1r1hl23</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_1ct6u3o</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def csi = new DoCreateE2EServiceInstanceV2()
+csi.getServiceResources(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:serviceTask id="ServiceTask_1t9ln4p" name="Call Sync SDNC service Create " camunda:class="org.openecomp.mso.bpmn.infrastructure.workflow.serviceTask.SdncServiceTopologyOperationTask">
+ <bpmn2:incoming>SequenceFlow_1vio1tn</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_07pkpa0</bpmn2:outgoing>
+ </bpmn2:serviceTask>
+ <bpmn2:serviceTask id="CallActivity_0x5g3pa" name="Call DoCreateSDNCNetworkInstance" camunda:class="org.openecomp.mso.bpmn.infrastructure.workflow.serviceTask.SdncNetworkTopologyOperationTask">
+ <bpmn2:incoming>SequenceFlow_0br9juy</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_06byir6</bpmn2:outgoing>
+ </bpmn2:serviceTask>
+ <bpmn2:scriptTask id="ScriptTask_04rn9mp" name="Post Config Service Instance Creation" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_0cnuo36</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_1lkpfe2</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def csi = new DoCreateE2EServiceInstanceV2()
+csi.postConfigRequest(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:exclusiveGateway id="ExclusiveGateway_1xkr802" name="skip VFC?" default="SequenceFlow_1a1du22">
+ <bpmn2:incoming>SequenceFlow_1t4cc7w</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_1a1du22</bpmn2:outgoing>
+ <bpmn2:outgoing>SequenceFlow_14jy44g</bpmn2:outgoing>
+ </bpmn2:exclusiveGateway>
+ <bpmn2:sequenceFlow id="SequenceFlow_1a1du22" name="No" sourceRef="ExclusiveGateway_1xkr802" targetRef="Task_1wyyy33" />
+ <bpmn2:exclusiveGateway id="ExclusiveGateway_1iu2jb7">
+ <bpmn2:incoming>SequenceFlow_1p99k36</bpmn2:incoming>
+ <bpmn2:incoming>SequenceFlow_14jy44g</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_0cyffv0</bpmn2:outgoing>
+ </bpmn2:exclusiveGateway>
+ <bpmn2:sequenceFlow id="SequenceFlow_0cyffv0" sourceRef="ExclusiveGateway_1iu2jb7" targetRef="Task_0ag30bf" />
+ <bpmn2:sequenceFlow id="SequenceFlow_14jy44g" name="yes" sourceRef="ExclusiveGateway_1xkr802" targetRef="ExclusiveGateway_1iu2jb7">
+ <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{ execution.getVariable("skipVFC") == "true" }]]></bpmn2:conditionExpression>
+ </bpmn2:sequenceFlow>
+ <bpmn2:sequenceFlow id="SequenceFlow_0br9juy" sourceRef="ScriptTask_0g6otdg" targetRef="CallActivity_0x5g3pa" />
+ <bpmn2:sequenceFlow id="SequenceFlow_06byir6" sourceRef="CallActivity_0x5g3pa" targetRef="ScriptTask_1op29ls" />
+ <bpmn2:sequenceFlow id="SequenceFlow_14ef6wp" name="Other" sourceRef="ExclusiveGateway_1761epe" targetRef="Task_0zhvu4r_llllll" />
+ <bpmn2:scriptTask id="Task_0zhvu4r_llllll" name="PosOtherCotrollerType" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_14ef6wp</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_0gxsqsa</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def csi = new DoCreateE2EServiceInstanceV2()
+csi.postOtherControllerType(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:sequenceFlow id="SequenceFlow_0gxsqsa" sourceRef="Task_0zhvu4r_llllll" targetRef="ExclusiveGateway_0r4jkig" />
+ <bpmn2:sequenceFlow id="SequenceFlow_10aubhh" sourceRef="ScriptTask_0i8cqdy_PostProcessAAIGET" targetRef="IntermediateThrowEvent_0aggdcl_GoToStartService" />
+ <bpmn2:intermediateThrowEvent id="IntermediateThrowEvent_0aggdcl_GoToStartService" name="GoTo StartService">
+ <bpmn2:incoming>SequenceFlow_10aubhh</bpmn2:incoming>
+ <bpmn2:linkEventDefinition name="StartService" />
+ </bpmn2:intermediateThrowEvent>
+ <bpmn2:intermediateCatchEvent id="StartEvent_0l5bz4h_StartService" name="StartService">
+ <bpmn2:outgoing>SequenceFlow_0zmz5am</bpmn2:outgoing>
+ <bpmn2:linkEventDefinition name="StartService" />
+ </bpmn2:intermediateCatchEvent>
+ <bpmn2:sequenceFlow id="SequenceFlow_0zmz5am" sourceRef="StartEvent_0l5bz4h_StartService" targetRef="CustomE2EPutService" />
+ <bpmn2:sequenceFlow id="SequenceFlow_1rhn48b" sourceRef="StartEvent_StartResource" targetRef="ExclusiveGateway_1pwgsa8" />
+ <bpmn2:intermediateCatchEvent id="StartEvent_StartResource" name="StartResource">
+ <bpmn2:outgoing>SequenceFlow_1rhn48b</bpmn2:outgoing>
+ <bpmn2:linkEventDefinition name="StartResource" />
+ </bpmn2:intermediateCatchEvent>
+ <bpmn2:sequenceFlow id="SequenceFlow_1ct6u3o" sourceRef="Task_0vtxtuq_QueryServiceResources" targetRef="IntermediateThrowEvent_1dwg5lz" />
+ <bpmn2:intermediateThrowEvent id="IntermediateThrowEvent_1dwg5lz" name="GoTo StartResource">
+ <bpmn2:incoming>SequenceFlow_1ct6u3o</bpmn2:incoming>
+ <bpmn2:linkEventDefinition name="StartResource" />
+ </bpmn2:intermediateThrowEvent>
+ <bpmn2:sequenceFlow id="SequenceFlow_1rebkae" sourceRef="StartEvent_0jhv664" targetRef="ScriptTask_1wk7zcu" />
+ <bpmn2:intermediateCatchEvent id="StartEvent_0jhv664" name="FinishProcess">
+ <bpmn2:outgoing>SequenceFlow_1rebkae</bpmn2:outgoing>
+ <bpmn2:linkEventDefinition name="FinishProcess" />
+ </bpmn2:intermediateCatchEvent>
+ <bpmn2:endEvent id="EndEvent_0x8im5g">
+ <bpmn2:incoming>SequenceFlow_1lkpfe2</bpmn2:incoming>
+ </bpmn2:endEvent>
+ <bpmn2:sequenceFlow id="SequenceFlow_1lkpfe2" sourceRef="ScriptTask_04rn9mp" targetRef="EndEvent_0x8im5g" />
+ <bpmn2:sequenceFlow id="SequenceFlow_1fq4qzy" name="Yes" sourceRef="ExclusiveGateway_1pwgsa8" targetRef="IntermediateThrowEvent_GoToFinishProcess">
+ <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{ execution.getVariable("DCRESI_resourceFinish") == true }]]></bpmn2:conditionExpression>
+ </bpmn2:sequenceFlow>
+ <bpmn2:intermediateThrowEvent id="IntermediateThrowEvent_GoToFinishProcess" name="GoTo FinishProcess">
+ <bpmn2:incoming>SequenceFlow_1fq4qzy</bpmn2:incoming>
+ <bpmn2:linkEventDefinition name="FinishProcess" />
+ </bpmn2:intermediateThrowEvent>
+ <bpmn2:scriptTask id="ScriptTask_1aszwcv_CheckResourceType" name="Check Resouce Type" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_10jgs3j</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_1wf52w6</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def csi = new DoCreateE2EServiceInstanceV2()
+csi.checkResourceType(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:sequenceFlow id="SequenceFlow_1wf52w6" sourceRef="ScriptTask_1aszwcv_CheckResourceType" targetRef="ExclusiveGateway_1761epe" />
+ <bpmn2:scriptTask id="ScriptTask_0jm9d9b" name="PostProcess Decompose Next Resouce" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_1yhd9dp</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_0uj9myy</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def csi = new DoCreateE2EServiceInstanceV2()
+csi.postProcessDecomposeNextResource(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:sequenceFlow id="SequenceFlow_1yhd9dp" sourceRef="ExclusiveGateway_0r4jkig" targetRef="ScriptTask_0jm9d9b" />
+ <bpmn2:sequenceFlow id="SequenceFlow_0uj9myy" sourceRef="ScriptTask_0jm9d9b" targetRef="ScriptTask_1vo6y1t" />
+ <bpmn2:intermediateThrowEvent id="IntermediateThrowEvent_0cabwkq" name="GoTo UpdateResourceOperStatus">
+ <bpmn2:incoming>SequenceFlow_03fabby</bpmn2:incoming>
+ <bpmn2:linkEventDefinition name="UpdateResourceOperStatus" />
+ </bpmn2:intermediateThrowEvent>
+ <bpmn2:intermediateCatchEvent id="StartEvent_1p7w4fj" name="Update Resource Oper Status">
+ <bpmn2:outgoing>SequenceFlow_0e8oxe4</bpmn2:outgoing>
+ <bpmn2:linkEventDefinition name="UpdateResourceOperStatus" />
+ </bpmn2:intermediateCatchEvent>
+ <bpmn2:sequenceFlow id="SequenceFlow_0e8oxe4" sourceRef="StartEvent_1p7w4fj" targetRef="ScriptTask_0vaaotj" />
+ <bpmn2:exclusiveGateway id="ExclusiveGateway_0pz2s2d">
+ <bpmn2:incoming>SequenceFlow_07pkpa0</bpmn2:incoming>
+ <bpmn2:incoming>SequenceFlow_01zluif</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_0vey6x4</bpmn2:outgoing>
+ </bpmn2:exclusiveGateway>
+ <bpmn2:sequenceFlow id="SequenceFlow_0vey6x4" sourceRef="ExclusiveGateway_0pz2s2d" targetRef="ScriptTask_0g6otdg" />
+ <bpmn2:sequenceFlow id="SequenceFlow_07pkpa0" sourceRef="ServiceTask_1t9ln4p" targetRef="ExclusiveGateway_0pz2s2d" />
+ <bpmn2:sequenceFlow id="SequenceFlow_163tmnq" name="SDNC" sourceRef="ExclusiveGateway_1761epe" targetRef="ExclusiveGateway_0k814as">
+ <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("controllerType") =="SDNC"}]]></bpmn2:conditionExpression>
+ </bpmn2:sequenceFlow>
+ <bpmn2:exclusiveGateway id="ExclusiveGateway_0k814as" name="SDNC service Create?" default="SequenceFlow_1vio1tn">
+ <bpmn2:incoming>SequenceFlow_163tmnq</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_01zluif</bpmn2:outgoing>
+ <bpmn2:outgoing>SequenceFlow_1vio1tn</bpmn2:outgoing>
+ </bpmn2:exclusiveGateway>
+ <bpmn2:sequenceFlow id="SequenceFlow_01zluif" name="yes" sourceRef="ExclusiveGateway_0k814as" targetRef="ExclusiveGateway_0pz2s2d">
+ <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{ execution.getVariable("unit_test") == "true" || execution.getVariable("serviceSDNCCreate") == "true" }]]></bpmn2:conditionExpression>
+ </bpmn2:sequenceFlow>
+ <bpmn2:sequenceFlow id="SequenceFlow_1vio1tn" name="no" sourceRef="ExclusiveGateway_0k814as" targetRef="ServiceTask_1t9ln4p" />
+ <bpmn2:scriptTask id="ScriptTask_0vaaotj" name="Prepare Update Service Oper Status" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_0e8oxe4</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_1sata7n</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def ddsi = new DoCreateE2EServiceInstanceV2()
+ddsi.preUpdateServiceOperationStatus(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:serviceTask id="ServiceTask_1jbqff7" name="Update Service Oper Status">
+ <bpmn2:extensionElements>
+ <camunda:connector>
+ <camunda:inputOutput>
+ <camunda:inputParameter name="url">${URN_mso_openecomp_adapters_db_endpoint}</camunda:inputParameter>
+ <camunda:inputParameter name="headers">
+ <camunda:map>
+ <camunda:entry key="content-type">application/soap+xml</camunda:entry>
+ <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
+ </camunda:map>
+ </camunda:inputParameter>
+ <camunda:inputParameter name="payload">${CVFMI_updateServiceOperStatusRequest}</camunda:inputParameter>
+ <camunda:inputParameter name="method">POST</camunda:inputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
+ </camunda:inputOutput>
+ <camunda:connectorId>http-connector</camunda:connectorId>
+ </camunda:connector>
+ </bpmn2:extensionElements>
+ <bpmn2:incoming>SequenceFlow_1sata7n</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_0x0jvs1</bpmn2:outgoing>
+ </bpmn2:serviceTask>
+ <bpmn2:sequenceFlow id="SequenceFlow_1sata7n" sourceRef="ScriptTask_0vaaotj" targetRef="ServiceTask_1jbqff7" />
+ <bpmn2:sequenceFlow id="SequenceFlow_0x0jvs1" sourceRef="ServiceTask_1jbqff7" targetRef="ScriptTask_1pwo0jp" />
+ <bpmn2:scriptTask id="ScriptTask_1wk7zcu" name="Prepare Update Service Oper Status(100%)" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_1rebkae</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_0gr3l25</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+execution.setVariable("progress", "100")
+execution.setVariable("operationStatus", "End")
+def ddsi = new DoCreateE2EServiceInstanceV2()
+ddsi.preUpdateServiceOperationStatus(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:serviceTask id="ServiceTask_1a6cmdu" name="Update Service Oper Status">
+ <bpmn2:extensionElements>
+ <camunda:connector>
+ <camunda:inputOutput>
+ <camunda:inputParameter name="url">${URN_mso_openecomp_adapters_db_endpoint}</camunda:inputParameter>
+ <camunda:inputParameter name="headers">
+ <camunda:map>
+ <camunda:entry key="content-type">application/soap+xml</camunda:entry>
+ <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
+ </camunda:map>
+ </camunda:inputParameter>
+ <camunda:inputParameter name="payload">${CVFMI_updateServiceOperStatusRequest}</camunda:inputParameter>
+ <camunda:inputParameter name="method">POST</camunda:inputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
+ </camunda:inputOutput>
+ <camunda:connectorId>http-connector</camunda:connectorId>
+ </camunda:connector>
+ </bpmn2:extensionElements>
+ <bpmn2:incoming>SequenceFlow_0gr3l25</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_0cnuo36</bpmn2:outgoing>
+ </bpmn2:serviceTask>
+ <bpmn2:sequenceFlow id="SequenceFlow_0gr3l25" sourceRef="ScriptTask_1wk7zcu" targetRef="ServiceTask_1a6cmdu" />
+ <bpmn2:sequenceFlow id="SequenceFlow_0cnuo36" sourceRef="ServiceTask_1a6cmdu" targetRef="ScriptTask_04rn9mp" />
+ <bpmn2:scriptTask id="ScriptTask_1vo6y1t" name="Prepare Update Service Oper Status" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_0uj9myy</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_037rvnb</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+
+def ddsi = new DoCreateE2EServiceInstanceV2()
+ddsi.preUpdateServiceOperationStatus(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:sequenceFlow id="SequenceFlow_037rvnb" sourceRef="ScriptTask_1vo6y1t" targetRef="ServiceTask_13w9clz" />
+ <bpmn2:serviceTask id="ServiceTask_13w9clz" name="Update Service Oper Status">
+ <bpmn2:extensionElements>
+ <camunda:connector>
+ <camunda:inputOutput>
+ <camunda:inputParameter name="url">${URN_mso_openecomp_adapters_db_endpoint}</camunda:inputParameter>
+ <camunda:inputParameter name="headers">
+ <camunda:map>
+ <camunda:entry key="content-type">application/soap+xml</camunda:entry>
+ <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
+ </camunda:map>
+ </camunda:inputParameter>
+ <camunda:inputParameter name="payload">${CVFMI_updateServiceOperStatusRequest}</camunda:inputParameter>
+ <camunda:inputParameter name="method">POST</camunda:inputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
+ </camunda:inputOutput>
+ <camunda:connectorId>http-connector</camunda:connectorId>
+ </camunda:connector>
+ </bpmn2:extensionElements>
+ <bpmn2:incoming>SequenceFlow_037rvnb</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_1mbrbsc</bpmn2:outgoing>
+ </bpmn2:serviceTask>
+ <bpmn2:sequenceFlow id="SequenceFlow_1mbrbsc" sourceRef="ServiceTask_13w9clz" targetRef="ExclusiveGateway_1pwgsa8" />
+ <bpmn2:scriptTask id="ScriptTask_1pwo0jp" name="Prepare Resource Oper Status" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_0x0jvs1</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_0aylb6e</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def ddsi = new DoCreateE2EServiceInstanceV2()
+ddsi.preInitResourcesOperStatus(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:sequenceFlow id="SequenceFlow_0aylb6e" sourceRef="ScriptTask_1pwo0jp" targetRef="ServiceTask_1dqzdko" />
+ <bpmn2:serviceTask id="ServiceTask_1dqzdko" name="Init Resource Oper Status">
+ <bpmn2:extensionElements>
+ <camunda:connector>
+ <camunda:inputOutput>
+ <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
+ <camunda:inputParameter name="headers">
+ <camunda:map>
+ <camunda:entry key="content-type">application/soap+xml</camunda:entry>
+ <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
+ </camunda:map>
+ </camunda:inputParameter>
+ <camunda:inputParameter name="payload">${CVFMI_initResOperStatusRequest}</camunda:inputParameter>
+ <camunda:inputParameter name="method">POST</camunda:inputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
+ </camunda:inputOutput>
+ <camunda:connectorId>http-connector</camunda:connectorId>
+ </camunda:connector>
+ </bpmn2:extensionElements>
+ <bpmn2:incoming>SequenceFlow_0aylb6e</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_1r1hl23</bpmn2:outgoing>
+ </bpmn2:serviceTask>
+ <bpmn2:sequenceFlow id="SequenceFlow_1r1hl23" sourceRef="ServiceTask_1dqzdko" targetRef="Task_0vtxtuq_QueryServiceResources" />
+ <bpmn2:serviceTask id="ServiceTask_0uiibxn" name="Update Service Oper Status">
+ <bpmn2:extensionElements>
+ <camunda:connector>
+ <camunda:inputOutput>
+ <camunda:inputParameter name="url">${URN_mso_openecomp_adapters_db_endpoint}</camunda:inputParameter>
+ <camunda:inputParameter name="headers">
+ <camunda:map>
+ <camunda:entry key="content-type">application/soap+xml</camunda:entry>
+ <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
+ </camunda:map>
+ </camunda:inputParameter>
+ <camunda:inputParameter name="payload">${CVFMI_updateServiceOperStatusRequest}</camunda:inputParameter>
+ <camunda:inputParameter name="method">POST</camunda:inputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
+ </camunda:inputOutput>
+ <camunda:connectorId>http-connector</camunda:connectorId>
+ </camunda:connector>
+ </bpmn2:extensionElements>
+ <bpmn2:incoming>SequenceFlow_01oo8ar</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_10jgs3j</bpmn2:outgoing>
+ </bpmn2:serviceTask>
+ <bpmn2:sequenceFlow id="SequenceFlow_10jgs3j" sourceRef="ServiceTask_0uiibxn" targetRef="ScriptTask_1aszwcv_CheckResourceType" />
+ <bpmn2:scriptTask id="ScriptTask_1oc0qjo" name="Prepare Update Service Oper Status" scriptFormat="groovy">
+ <bpmn2:incoming>SequenceFlow_0gorww6</bpmn2:incoming>
+ <bpmn2:outgoing>SequenceFlow_01oo8ar</bpmn2:outgoing>
+ <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+
+def ddsi = new DoCreateE2EServiceInstanceV2()
+ddsi.preUpdateServiceOperationStatus(execution)]]></bpmn2:script>
+ </bpmn2:scriptTask>
+ <bpmn2:sequenceFlow id="SequenceFlow_01oo8ar" sourceRef="ScriptTask_1oc0qjo" targetRef="ServiceTask_0uiibxn" />
+ </bpmn2:process>
+ <bpmn2:error id="Error_2" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
+ <bpmn2:error id="Error_1" name="java.lang.Exception" errorCode="java.lang.Exception" />
+ <bpmndi:BPMNDiagram id="BPMNDiagram_1">
+ <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoCreateE2EServiceInstanceV2">
+ <bpmndi:BPMNShape id="_BPMNShape_StartEvent_47" bpmnElement="createSI_startEvent">
+ <dc:Bounds x="-14" y="79" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="-20" y="120" width="50" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_61" bpmnElement="preProcessRequest_ScriptTask">
+ <dc:Bounds x="187" y="57" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_47" targetElement="_BPMNShape_ScriptTask_61">
+ <di:waypoint xsi:type="dc:Point" x="22" y="97" />
+ <di:waypoint xsi:type="dc:Point" x="187" y="97" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="59.5" y="82" width="90" height="0" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_4">
+ <di:waypoint xsi:type="dc:Point" x="664" y="97" />
+ <di:waypoint xsi:type="dc:Point" x="917" y="97" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="745.5" y="82" width="90" height="0" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ScriptTask_61" targetElement="CallActivity_1md4kyb_di">
+ <di:waypoint xsi:type="dc:Point" x="287" y="97" />
+ <di:waypoint xsi:type="dc:Point" x="564" y="97" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="380.5" y="82" width="90" height="0" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="CallActivity_1md4kyb_di" bpmnElement="CustomE2EGetService">
+ <dc:Bounds x="564" y="57" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="CallActivity_0khp0qc_di" bpmnElement="CustomE2EPutService">
+ <dc:Bounds x="564" y="244" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_129ih1g_di" bpmnElement="SequenceFlow_129ih1g">
+ <di:waypoint xsi:type="dc:Point" x="664" y="284" />
+ <di:waypoint xsi:type="dc:Point" x="917" y="284" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="745.5" y="269" width="90" height="0" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="SubProcess_06d8lk8_di" bpmnElement="SubProcess_06d8lk8" isExpanded="true">
+ <dc:Bounds x="-11" y="1751" width="783" height="195" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="StartEvent_0yljq9y_di" bpmnElement="StartEvent_0yljq9y">
+ <dc:Bounds x="85" y="1828" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="58" y="1869" width="90" height="0" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="EndEvent_117lkk3_di" bpmnElement="EndEvent_117lkk3">
+ <dc:Bounds x="718" y="1828" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="691" y="1869" width="90" height="0" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="CallActivity_1srx6p6_di" bpmnElement="CallActivity_1srx6p6">
+ <dc:Bounds x="383" y="1806" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0eumzpf_di" bpmnElement="SequenceFlow_0eumzpf">
+ <di:waypoint xsi:type="dc:Point" x="483" y="1846" />
+ <di:waypoint xsi:type="dc:Point" x="551" y="1846" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="472" y="1831" width="90" height="0" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_0tgrn11_di" bpmnElement="SequenceFlow_0tgrn11">
+ <di:waypoint xsi:type="dc:Point" x="121" y="1846" />
+ <di:waypoint xsi:type="dc:Point" x="220" y="1846" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="126" y="1831" width="90" height="0" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_0i8cqdy_di" bpmnElement="ScriptTask_0i8cqdy_PostProcessAAIGET">
+ <dc:Bounds x="917" y="57" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ScriptTask_0q37vn9_di" bpmnElement="ScriptTask_0q37vn9_PostProcessAAIPUT">
+ <dc:Bounds x="917" y="244" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ScriptTask_0ocetux_di" bpmnElement="ScriptTask_0ocetux">
+ <dc:Bounds x="220" y="1806" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1lqktwf_di" bpmnElement="SequenceFlow_1lqktwf">
+ <di:waypoint xsi:type="dc:Point" x="320" y="1846" />
+ <di:waypoint xsi:type="dc:Point" x="383" y="1846" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="307" y="1831" width="90" height="0" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_1p0vyip_di" bpmnElement="ScriptTask_1p0vyip">
+ <dc:Bounds x="551" y="1806" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1xzgv5k_di" bpmnElement="SequenceFlow_1xzgv5k">
+ <di:waypoint xsi:type="dc:Point" x="651" y="1846" />
+ <di:waypoint xsi:type="dc:Point" x="683" y="1846" />
+ <di:waypoint xsi:type="dc:Point" x="683" y="1846" />
+ <di:waypoint xsi:type="dc:Point" x="718" y="1846" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="653" y="1846" width="90" height="0" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="EndEvent_01p249c_di" bpmnElement="EndEvent_0kbbt94">
+ <dc:Bounds x="-823" y="841" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="-941" y="881" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_03fabby_di" bpmnElement="SequenceFlow_03fabby">
+ <di:waypoint xsi:type="dc:Point" x="1017" y="284" />
+ <di:waypoint xsi:type="dc:Point" x="1239" y="284" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1083" y="263" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_1etg91s_di" bpmnElement="Task_1u82cbz">
+ <dc:Bounds x="398" y="625" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ExclusiveGateway_1761epe_di" bpmnElement="ExclusiveGateway_1761epe" isMarkerVisible="true">
+ <dc:Bounds x="1137" y="1189" width="50" height="50" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1117" y="1243" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0gorww6_di" bpmnElement="SequenceFlow_0gorww6">
+ <di:waypoint xsi:type="dc:Point" x="498" y="665" />
+ <di:waypoint xsi:type="dc:Point" x="580" y="665" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="494" y="644" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_1t9tmp4_di" bpmnElement="SequenceFlow_1t9tmp4">
+ <di:waypoint xsi:type="dc:Point" x="1162" y="1189" />
+ <di:waypoint xsi:type="dc:Point" x="1162" y="1017" />
+ <di:waypoint xsi:type="dc:Point" x="1095" y="1017" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1166" y="1097" width="23" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_1azssf7_di" bpmnElement="Task_09laxun">
+ <dc:Bounds x="995" y="977" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1t4cc7w_di" bpmnElement="SequenceFlow_1t4cc7w">
+ <di:waypoint xsi:type="dc:Point" x="995" y="1017" />
+ <di:waypoint xsi:type="dc:Point" x="866" y="1017" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="885.5" y="996" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="CallActivity_1v57nb9_di" bpmnElement="Task_1wyyy33">
+ <dc:Bounds x="539" y="977" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1p99k36_di" bpmnElement="SequenceFlow_1p99k36">
+ <di:waypoint xsi:type="dc:Point" x="539" y="1017" />
+ <di:waypoint xsi:type="dc:Point" x="401" y="1017" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="425" y="996" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_1fj89ew_di" bpmnElement="Task_0ag30bf">
+ <dc:Bounds x="226" y="977" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ScriptTask_1op29ls_di" bpmnElement="ScriptTask_1op29ls">
+ <dc:Bounds x="226" y="1339" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ScriptTask_0g6otdg_di" bpmnElement="ScriptTask_0g6otdg">
+ <dc:Bounds x="643" y="1339" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ExclusiveGateway_0r4jkig_di" bpmnElement="ExclusiveGateway_0r4jkig" isMarkerVisible="true">
+ <dc:Bounds x="126" y="1189" width="50" height="50" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="123" y="1243" width="60" height="36" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0ylmq2b_di" bpmnElement="SequenceFlow_0ylmq2b">
+ <di:waypoint xsi:type="dc:Point" x="226" y="1379" />
+ <di:waypoint xsi:type="dc:Point" x="151" y="1379" />
+ <di:waypoint xsi:type="dc:Point" x="151" y="1239" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="143.5" y="1358" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_07q8ra0_di" bpmnElement="SequenceFlow_07q8ra0">
+ <di:waypoint xsi:type="dc:Point" x="226" y="1017" />
+ <di:waypoint xsi:type="dc:Point" x="151" y="1017" />
+ <di:waypoint xsi:type="dc:Point" x="151" y="1189" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="143.5" y="996" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ExclusiveGateway_1pwgsa8_di" bpmnElement="ExclusiveGateway_1pwgsa8" isMarkerVisible="true">
+ <dc:Bounds x="212" y="640" width="50" height="50" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="194" y="694" width="86" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_13l7ffp_di" bpmnElement="SequenceFlow_13l7ffp">
+ <di:waypoint xsi:type="dc:Point" x="262" y="665" />
+ <di:waypoint xsi:type="dc:Point" x="398" y="665" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="377.03973509933775" y="644" width="14" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_08hez0f_di" bpmnElement="Task_0vtxtuq_QueryServiceResources">
+ <dc:Bounds x="917" y="451" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ServiceTask_1t9ln4p_di" bpmnElement="ServiceTask_1t9ln4p">
+ <dc:Bounds x="881" y="1339" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ServiceTask_1asiahh_di" bpmnElement="CallActivity_0x5g3pa">
+ <dc:Bounds x="429" y="1339" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ScriptTask_04rn9mp_di" bpmnElement="ScriptTask_04rn9mp">
+ <dc:Bounds x="539" y="1590" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ExclusiveGateway_1xkr802_di" bpmnElement="ExclusiveGateway_1xkr802" isMarkerVisible="true">
+ <dc:Bounds x="816" y="992" width="50" height="50" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="817" y="1051" width="51" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1a1du22_di" bpmnElement="SequenceFlow_1a1du22">
+ <di:waypoint xsi:type="dc:Point" x="816" y="1017" />
+ <di:waypoint xsi:type="dc:Point" x="639" y="1017" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="721.1366906474819" y="996" width="14" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ExclusiveGateway_1iu2jb7_di" bpmnElement="ExclusiveGateway_1iu2jb7" isMarkerVisible="true">
+ <dc:Bounds x="351" y="992" width="50" height="50" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="331" y="1051" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0cyffv0_di" bpmnElement="SequenceFlow_0cyffv0">
+ <di:waypoint xsi:type="dc:Point" x="351" y="1017" />
+ <di:waypoint xsi:type="dc:Point" x="326" y="1017" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="293.5" y="996" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_14jy44g_di" bpmnElement="SequenceFlow_14jy44g">
+ <di:waypoint xsi:type="dc:Point" x="841" y="992" />
+ <di:waypoint xsi:type="dc:Point" x="841" y="932" />
+ <di:waypoint xsi:type="dc:Point" x="376" y="932" />
+ <di:waypoint xsi:type="dc:Point" x="376" y="992" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="599.5643203883494" y="911" width="19" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_0br9juy_di" bpmnElement="SequenceFlow_0br9juy">
+ <di:waypoint xsi:type="dc:Point" x="643" y="1379" />
+ <di:waypoint xsi:type="dc:Point" x="529" y="1379" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="541" y="1358" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_06byir6_di" bpmnElement="SequenceFlow_06byir6">
+ <di:waypoint xsi:type="dc:Point" x="429" y="1379" />
+ <di:waypoint xsi:type="dc:Point" x="326" y="1379" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="332.5" y="1358" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_14ef6wp_di" bpmnElement="SequenceFlow_14ef6wp">
+ <di:waypoint xsi:type="dc:Point" x="1137" y="1214" />
+ <di:waypoint xsi:type="dc:Point" x="639" y="1214" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="874.1140567200987" y="1193" width="29" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_1pcl6u1_di" bpmnElement="Task_0zhvu4r_llllll">
+ <dc:Bounds x="539" y="1174" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0gxsqsa_di" bpmnElement="SequenceFlow_0gxsqsa">
+ <di:waypoint xsi:type="dc:Point" x="539" y="1214" />
+ <di:waypoint xsi:type="dc:Point" x="176" y="1214" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="312.5" y="1193" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_10aubhh_di" bpmnElement="SequenceFlow_10aubhh">
+ <di:waypoint xsi:type="dc:Point" x="1017" y="97" />
+ <di:waypoint xsi:type="dc:Point" x="1239" y="97" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1128" y="76" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="IntermediateThrowEvent_1m5zb3d_di" bpmnElement="IntermediateThrowEvent_0aggdcl_GoToStartService">
+ <dc:Bounds x="1239" y="79" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1213" y="119" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="IntermediateCatchEvent_1vjqlwn_di" bpmnElement="StartEvent_0l5bz4h_StartService">
+ <dc:Bounds x="-14" y="266" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="-26" y="306" width="60" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0zmz5am_di" bpmnElement="SequenceFlow_0zmz5am">
+ <di:waypoint xsi:type="dc:Point" x="22" y="284" />
+ <di:waypoint xsi:type="dc:Point" x="564" y="284" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="248" y="263" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_1rhn48b_di" bpmnElement="SequenceFlow_1rhn48b">
+ <di:waypoint xsi:type="dc:Point" x="22" y="595" />
+ <di:waypoint xsi:type="dc:Point" x="237" y="595" />
+ <di:waypoint xsi:type="dc:Point" x="237" y="640" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="129.5" y="574" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="IntermediateCatchEvent_0jks7by_di" bpmnElement="StartEvent_StartResource">
+ <dc:Bounds x="-14" y="577" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="-31" y="617" width="71" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1ct6u3o_di" bpmnElement="SequenceFlow_1ct6u3o">
+ <di:waypoint xsi:type="dc:Point" x="1018" y="491" />
+ <di:waypoint xsi:type="dc:Point" x="1085" y="491" />
+ <di:waypoint xsi:type="dc:Point" x="1085" y="491" />
+ <di:waypoint xsi:type="dc:Point" x="1239" y="491" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1100" y="485" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="IntermediateThrowEvent_0ys6800_di" bpmnElement="IntermediateThrowEvent_1dwg5lz">
+ <dc:Bounds x="1239" y="473" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1222" y="513" width="71" height="24" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1rebkae_di" bpmnElement="SequenceFlow_1rebkae">
+ <di:waypoint xsi:type="dc:Point" x="40" y="1630" />
+ <di:waypoint xsi:type="dc:Point" x="148" y="1630" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="49" y="1609" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="IntermediateCatchEvent_05z1jyy_di" bpmnElement="StartEvent_0jhv664">
+ <dc:Bounds x="4" y="1612" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="-13" y="1652" width="70" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="EndEvent_0x8im5g_di" bpmnElement="EndEvent_0x8im5g">
+ <dc:Bounds x="723" y="1612" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="741" y="1652" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1lkpfe2_di" bpmnElement="SequenceFlow_1lkpfe2">
+ <di:waypoint xsi:type="dc:Point" x="639" y="1630" />
+ <di:waypoint xsi:type="dc:Point" x="723" y="1630" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="636" y="1609" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_1fq4qzy_di" bpmnElement="SequenceFlow_1fq4qzy">
+ <di:waypoint xsi:type="dc:Point" x="237" y="690" />
+ <di:waypoint xsi:type="dc:Point" x="237" y="794" />
+ <di:waypoint xsi:type="dc:Point" x="258" y="794" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="227.12763168720514" y="735.6050882148045" width="19" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="IntermediateThrowEvent_11jt9tx_di" bpmnElement="IntermediateThrowEvent_GoToFinishProcess">
+ <dc:Bounds x="258" y="776" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="242" y="816" width="70" height="24" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ScriptTask_1aszwcv_di" bpmnElement="ScriptTask_1aszwcv_CheckResourceType">
+ <dc:Bounds x="1027" y="625" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1wf52w6_di" bpmnElement="SequenceFlow_1wf52w6">
+ <di:waypoint xsi:type="dc:Point" x="1127" y="665" />
+ <di:waypoint xsi:type="dc:Point" x="1240" y="665" />
+ <di:waypoint xsi:type="dc:Point" x="1240" y="1214" />
+ <di:waypoint xsi:type="dc:Point" x="1187" y="1214" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1210" y="933.5" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_0jm9d9b_di" bpmnElement="ScriptTask_0jm9d9b">
+ <dc:Bounds x="-9" y="1174" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1yhd9dp_di" bpmnElement="SequenceFlow_1yhd9dp">
+ <di:waypoint xsi:type="dc:Point" x="126" y="1214" />
+ <di:waypoint xsi:type="dc:Point" x="91" y="1214" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="108.5" y="1193" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_0uj9myy_di" bpmnElement="SequenceFlow_0uj9myy">
+ <di:waypoint xsi:type="dc:Point" x="41" y="1174" />
+ <di:waypoint xsi:type="dc:Point" x="41" y="985" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="11" y="1073.5" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="IntermediateThrowEvent_0nf1193_di" bpmnElement="IntermediateThrowEvent_0cabwkq">
+ <dc:Bounds x="1239" y="266" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1219" y="306" width="83" height="36" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="IntermediateCatchEvent_0v3ecwh_di" bpmnElement="StartEvent_1p7w4fj">
+ <dc:Bounds x="-14" y="473" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="-38" y="513" width="86" height="24" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0e8oxe4_di" bpmnElement="SequenceFlow_0e8oxe4">
+ <di:waypoint xsi:type="dc:Point" x="22" y="491" />
+ <di:waypoint xsi:type="dc:Point" x="226" y="491" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="79" y="470" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ExclusiveGateway_0pz2s2d_di" bpmnElement="ExclusiveGateway_0pz2s2d" isMarkerVisible="true">
+ <dc:Bounds x="791" y="1354" width="50" height="50" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="726" y="1408" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0vey6x4_di" bpmnElement="SequenceFlow_0vey6x4">
+ <di:waypoint xsi:type="dc:Point" x="791" y="1379" />
+ <di:waypoint xsi:type="dc:Point" x="743" y="1379" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="722" y="1358" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_07pkpa0_di" bpmnElement="SequenceFlow_07pkpa0">
+ <di:waypoint xsi:type="dc:Point" x="881" y="1379" />
+ <di:waypoint xsi:type="dc:Point" x="841" y="1379" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="816" y="1358" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_163tmnq_di" bpmnElement="SequenceFlow_163tmnq">
+ <di:waypoint xsi:type="dc:Point" x="1162" y="1239" />
+ <di:waypoint xsi:type="dc:Point" x="1162" y="1379" />
+ <di:waypoint xsi:type="dc:Point" x="1070" y="1379" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1171" y="1300" width="31" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ExclusiveGateway_0k814as_di" bpmnElement="ExclusiveGateway_0k814as" isMarkerVisible="true">
+ <dc:Bounds x="1020" y="1354" width="50" height="50" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1022" y="1410" width="46" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_01zluif_di" bpmnElement="SequenceFlow_01zluif">
+ <di:waypoint xsi:type="dc:Point" x="1045" y="1354" />
+ <di:waypoint xsi:type="dc:Point" x="1045" y="1295" />
+ <di:waypoint xsi:type="dc:Point" x="816" y="1295" />
+ <di:waypoint xsi:type="dc:Point" x="816" y="1354" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="922" y="1274" width="19" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_1vio1tn_di" bpmnElement="SequenceFlow_1vio1tn">
+ <di:waypoint xsi:type="dc:Point" x="1020" y="1379" />
+ <di:waypoint xsi:type="dc:Point" x="981" y="1379" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1001" y="1402" width="12" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_0vaaotj_di" bpmnElement="ScriptTask_0vaaotj">
+ <dc:Bounds x="226" y="451" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ServiceTask_1jbqff7_di" bpmnElement="ServiceTask_1jbqff7">
+ <dc:Bounds x="390" y="451" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1sata7n_di" bpmnElement="SequenceFlow_1sata7n">
+ <di:waypoint xsi:type="dc:Point" x="326" y="491" />
+ <di:waypoint xsi:type="dc:Point" x="390" y="491" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="313" y="470" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_0x0jvs1_di" bpmnElement="SequenceFlow_0x0jvs1">
+ <di:waypoint xsi:type="dc:Point" x="490" y="491" />
+ <di:waypoint xsi:type="dc:Point" x="564" y="491" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="482" y="470" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_1wk7zcu_di" bpmnElement="ScriptTask_1wk7zcu">
+ <dc:Bounds x="148" y="1590" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ServiceTask_1a6cmdu_di" bpmnElement="ServiceTask_1a6cmdu">
+ <dc:Bounds x="379" y="1590" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0gr3l25_di" bpmnElement="SequenceFlow_0gr3l25">
+ <di:waypoint xsi:type="dc:Point" x="248" y="1630" />
+ <di:waypoint xsi:type="dc:Point" x="379" y="1630" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="313.5" y="1609" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_0cnuo36_di" bpmnElement="SequenceFlow_0cnuo36">
+ <di:waypoint xsi:type="dc:Point" x="479" y="1630" />
+ <di:waypoint xsi:type="dc:Point" x="539" y="1630" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="509" y="1609" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_1vo6y1t_di" bpmnElement="ScriptTask_1vo6y1t">
+ <dc:Bounds x="-9" y="905" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_037rvnb_di" bpmnElement="SequenceFlow_037rvnb">
+ <di:waypoint xsi:type="dc:Point" x="41" y="905" />
+ <di:waypoint xsi:type="dc:Point" x="41" y="844" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="56" y="868.5" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ServiceTask_13w9clz_di" bpmnElement="ServiceTask_13w9clz">
+ <dc:Bounds x="-9" y="764" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1mbrbsc_di" bpmnElement="SequenceFlow_1mbrbsc">
+ <di:waypoint xsi:type="dc:Point" x="41" y="764" />
+ <di:waypoint xsi:type="dc:Point" x="41" y="665" />
+ <di:waypoint xsi:type="dc:Point" x="212" y="665" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="56" y="708.5" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_1pwo0jp_di" bpmnElement="ScriptTask_1pwo0jp">
+ <dc:Bounds x="564" y="451" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0aylb6e_di" bpmnElement="SequenceFlow_0aylb6e">
+ <di:waypoint xsi:type="dc:Point" x="664" y="491" />
+ <di:waypoint xsi:type="dc:Point" x="741" y="491" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="702.5" y="470" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ServiceTask_1dqzdko_di" bpmnElement="ServiceTask_1dqzdko">
+ <dc:Bounds x="741" y="451" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1r1hl23_di" bpmnElement="SequenceFlow_1r1hl23">
+ <di:waypoint xsi:type="dc:Point" x="841" y="491" />
+ <di:waypoint xsi:type="dc:Point" x="917" y="491" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="879" y="470" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ServiceTask_0uiibxn_di" bpmnElement="ServiceTask_0uiibxn">
+ <dc:Bounds x="750" y="625" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_10jgs3j_di" bpmnElement="SequenceFlow_10jgs3j">
+ <di:waypoint xsi:type="dc:Point" x="850" y="665" />
+ <di:waypoint xsi:type="dc:Point" x="1027" y="665" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="938.5" y="644" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_1oc0qjo_di" bpmnElement="ScriptTask_1oc0qjo">
+ <dc:Bounds x="580" y="625" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_01oo8ar_di" bpmnElement="SequenceFlow_01oo8ar">
+ <di:waypoint xsi:type="dc:Point" x="680" y="665" />
+ <di:waypoint xsi:type="dc:Point" x="750" y="665" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="715" y="644" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ </bpmndi:BPMNPlane>
+ </bpmndi:BPMNDiagram>
+</bpmn2:definitions>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.11.3">
+ <bpmn:process id="DoCustomDeleteE2EServiceInstanceV2" name="DoCustomDeleteE2EServiceInstanceV2" isExecutable="true">
+ <bpmn:startEvent id="StartEvent_0212h2r" name="Start Flow">
+ <bpmn:outgoing>SequenceFlow_0vz7cd9</bpmn:outgoing>
+ </bpmn:startEvent>
+ <bpmn:scriptTask id="ScriptTask_06phzgv" name="PreProcess Incoming Request" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_0vz7cd9</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_11e6bfy</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def ddsi = new DoCustomDeleteE2EServiceInstanceV2()
+ddsi.preProcessRequest(execution)
+]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:endEvent id="EndEvent_1uqzt26">
+ <bpmn:incoming>SequenceFlow_06tonva</bpmn:incoming>
+ </bpmn:endEvent>
+ <bpmn:callActivity id="CallActivity_06izbke" name="Call AAI GenericDelete Service " calledElement="GenericDeleteService">
+ <bpmn:extensionElements>
+ <camunda:in source="serviceInstanceId" target="GENDS_serviceInstanceId" />
+ <camunda:in source="serviceType" target="GENDS_serviceType" />
+ <camunda:in source="globalSubscriberId" target="GENDS_globalCustomerId" />
+ <camunda:in sourceExpression="service-instance" target="GENDS_type" />
+ <camunda:out source="GENDS_FoundIndicator" target="GENDS_FoundIndicator" />
+ <camunda:in sourceExpression="""" target="GENGS_serviceType" />
+ <camunda:out source="GENDS_SuccessIndicator" target="GENDS_SuccessIndicator" />
+ <camunda:out source="WorkflowException" target="WorkflowExcpeton" />
+ </bpmn:extensionElements>
+ <bpmn:incoming>SequenceFlow_0t5f2dt</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_0g6bxqw</bpmn:outgoing>
+ </bpmn:callActivity>
+ <bpmn:scriptTask id="ScriptTask_1rtnsh8" name="Post Process AAI GET" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_188ejvu</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_00a3ijv</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def ddsi = new DoCustomDeleteE2EServiceInstanceV2()
+ddsi.postProcessAAIGET(execution)]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:scriptTask id="ScriptTask_01erufg" name="Post Process AAI Delete" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_0g6bxqw</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_0e7inkl</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def ddsi = new DoCustomDeleteE2EServiceInstanceV2()
+ddsi.postProcessAAIDEL(execution)]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:subProcess id="SubProcess_1u8zt9i" name="Sub-process for UnexpectedErrors" triggeredByEvent="true">
+ <bpmn:startEvent id="StartEvent_0sf5lpt">
+ <bpmn:outgoing>SequenceFlow_1921mo3</bpmn:outgoing>
+ <bpmn:errorEventDefinition />
+ </bpmn:startEvent>
+ <bpmn:endEvent id="EndEvent_06utmg4">
+ <bpmn:incoming>SequenceFlow_18vlzfo</bpmn:incoming>
+ </bpmn:endEvent>
+ <bpmn:scriptTask id="ScriptTask_0nha3pr" name="Log / Print Unexpected Error" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_1921mo3</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_18vlzfo</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
+ExceptionUtil ex = new ExceptionUtil()
+ex.processJavaException(execution)]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:sequenceFlow id="SequenceFlow_1921mo3" name="" sourceRef="StartEvent_0sf5lpt" targetRef="ScriptTask_0nha3pr" />
+ <bpmn:sequenceFlow id="SequenceFlow_18vlzfo" name="" sourceRef="ScriptTask_0nha3pr" targetRef="EndEvent_06utmg4" />
+ </bpmn:subProcess>
+ <bpmn:sequenceFlow id="SequenceFlow_0vz7cd9" sourceRef="StartEvent_0212h2r" targetRef="ScriptTask_06phzgv" />
+ <bpmn:sequenceFlow id="SequenceFlow_11e6bfy" sourceRef="ScriptTask_06phzgv" targetRef="CallActivity_076pc2z" />
+ <bpmn:sequenceFlow id="SequenceFlow_0e7inkl" sourceRef="ScriptTask_01erufg" targetRef="ScriptTask_1vlvb1r" />
+ <bpmn:sequenceFlow id="SequenceFlow_0g6bxqw" sourceRef="CallActivity_06izbke" targetRef="ScriptTask_01erufg" />
+ <bpmn:scriptTask id="ScriptTask_postProcessVFCDelete" name="Post Process VFC Delete" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_1931m8u</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_17b01zs</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+
+String response = execution.getVariable("vfcDeleteResponse")
+def ddsi = new DoCustomDeleteE2EServiceInstanceV2()
+ddsi.postProcessVFCDelete(execution, response, "delete")]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:scriptTask id="ScriptTask_1g0tsto" name="Post Process SDNC Delete" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_1w2n8dn</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_09z6zl7</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+
+String response = execution.getVariable("sdncDeleteResponse")
+def ddsi = new DoCustomDeleteE2EServiceInstanceV2()
+ddsi.postProcessSDNCDelete(execution, response, "delete")]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:scriptTask id="ScriptTask_0z30dax" name="Prepare Resource Delele For Overlay" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_1jfyo1x</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_1t1mg6y</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+String resourceName = "underlay"
+def ddsi = new DoCustomDeleteE2EServiceInstanceV2()
+ddsi.preSDNCResourceDelete(execution, resourceName )]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:sequenceFlow id="SequenceFlow_0rpu756" sourceRef="CallActivity_Del_SDNC_cust" targetRef="ExclusiveGateway_0plkf6p" />
+ <bpmn:sequenceFlow id="SequenceFlow_1wnkgpx" sourceRef="Task_preProcessVFCResourceDelete" targetRef="Task_CallNetworkServiceDeleteforVFC" />
+ <bpmn:sequenceFlow id="SequenceFlow_1931m8u" sourceRef="Task_CallNetworkServiceDeleteforVFC" targetRef="ScriptTask_postProcessVFCDelete" />
+ <bpmn:scriptTask id="Task_preProcessVFCResourceDelete" name="Prepare Resource Delele For VFC" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_1bx4es4</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_1wnkgpx</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def ddsi = new DoCustomDeleteE2EServiceInstanceV2()
+ddsi.preProcessVFCResourceDelete(execution)]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:callActivity id="Task_CallNetworkServiceDeleteforVFC" name="Call Network Service Delete for VFC" calledElement="DoDeleteVFCNetworkServiceInstance">
+ <bpmn:extensionElements>
+ <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
+ <camunda:in source="serviceType" target="serviceType" />
+ <camunda:in source="serviceInstanceId" target="serviceId" />
+ <camunda:in source="operationId" target="operationId" />
+ <camunda:in source="resourceTemplateId" target="resourceTemplateId" />
+ <camunda:in source="resourceInstanceId" target="resourceInstanceId" />
+ <camunda:in source="resourceType" target="resourceType" />
+ <camunda:in source="operationType" target="operationType" />
+ </bpmn:extensionElements>
+ <bpmn:incoming>SequenceFlow_1wnkgpx</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_1931m8u</bpmn:outgoing>
+ </bpmn:callActivity>
+ <bpmn:serviceTask id="CallActivity_Del_SDNC_cust" name="Call Custom Delete SDNC Overlay" camunda:class="org.openecomp.mso.bpmn.infrastructure.workflow.serviceTask.SdncNetworkTopologyOperationTask">
+ <bpmn:incoming>SequenceFlow_0a1q5fw</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_0rpu756</bpmn:outgoing>
+ </bpmn:serviceTask>
+ <bpmn:sequenceFlow id="SequenceFlow_1g4djgh" sourceRef="Task_1j1u666" targetRef="ExclusiveGateway_125wehq" />
+ <bpmn:sequenceFlow id="SequenceFlow_0uc2beq" sourceRef="Task_0edkv0m" targetRef="ExclusiveGateway_1kavnc9" />
+ <bpmn:scriptTask id="Task_14erap6" name="Prepare Resource Delele For Underlay" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_1lv9vmb</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_16r9z75</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+String resourceName = "underlay"
+def ddsi = new DoCustomDeleteE2EServiceInstanceV2()
+ddsi.preSDNCResourceDelete(execution, resourceName )]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:serviceTask id="Task_1j1u666" name="Call Custom Delete SDNC Underlay" camunda:class="org.openecomp.mso.bpmn.infrastructure.workflow.serviceTask.SdncNetworkTopologyOperationTask">
+ <bpmn:incoming>SequenceFlow_0m7ks9t</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_1g4djgh</bpmn:outgoing>
+ </bpmn:serviceTask>
+ <bpmn:serviceTask id="Task_0edkv0m" name="Call Delete SDNC Service Topology" camunda:class="org.openecomp.mso.bpmn.infrastructure.workflow.serviceTask.SdncServiceTopologyOperationTask">
+ <bpmn:incoming>SequenceFlow_0akcnw7</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_0uc2beq</bpmn:outgoing>
+ </bpmn:serviceTask>
+ <bpmn:callActivity id="CallActivity_076pc2z" name="Call AAI Generic GetService" calledElement="GenericGetService">
+ <bpmn:extensionElements>
+ <camunda:in source="serviceInstanceId" target="GENGS_serviceInstanceId" />
+ <camunda:in sourceExpression="service-instance" target="GENGS_type" />
+ <camunda:out source="GENGS_FoundIndicator" target="GENGS_FoundIndicator" />
+ <camunda:out source="GENGS_SuccessIndicator" target="GENGS_SuccessIndicator" />
+ <camunda:out source="WorkflowException" target="WorkflowException" />
+ <camunda:out source="GENGS_siResourceLink" target="GENGS_siResourceLink" />
+ <camunda:out source="GENGS_service" target="GENGS_service" />
+ <camunda:in source="globalSubscriberId" target="GENGS_globalCustomerId" />
+ <camunda:in source="serviceType" target="GENGS_serviceType" />
+ </bpmn:extensionElements>
+ <bpmn:incoming>SequenceFlow_11e6bfy</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_188ejvu</bpmn:outgoing>
+ </bpmn:callActivity>
+ <bpmn:sequenceFlow id="SequenceFlow_188ejvu" sourceRef="CallActivity_076pc2z" targetRef="ScriptTask_1rtnsh8" />
+ <bpmn:intermediateThrowEvent id="IntermediateThrowEvent_1d5z35x" name="GoTo Delete SDNC Resource">
+ <bpmn:incoming>SequenceFlow_1qzxy2i</bpmn:incoming>
+ <bpmn:linkEventDefinition name="DeleteSDNCResource" />
+ </bpmn:intermediateThrowEvent>
+ <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_1h6kkwi" name="Start Delete SDNC Resource">
+ <bpmn:outgoing>SequenceFlow_1jfyo1x</bpmn:outgoing>
+ <bpmn:linkEventDefinition name="DeleteSDNCResource" />
+ </bpmn:intermediateCatchEvent>
+ <bpmn:sequenceFlow id="SequenceFlow_1jfyo1x" sourceRef="IntermediateThrowEvent_1h6kkwi" targetRef="ScriptTask_0z30dax" />
+ <bpmn:sequenceFlow id="SequenceFlow_09z6zl7" sourceRef="ScriptTask_1g0tsto" targetRef="IntermediateThrowEvent_01vy71e" />
+ <bpmn:intermediateThrowEvent id="IntermediateThrowEvent_01vy71e" name="GoTo Delete VFC Resource">
+ <bpmn:incoming>SequenceFlow_09z6zl7</bpmn:incoming>
+ <bpmn:linkEventDefinition name="DeleteVFCResource" />
+ </bpmn:intermediateThrowEvent>
+ <bpmn:sequenceFlow id="SequenceFlow_17b01zs" sourceRef="ScriptTask_postProcessVFCDelete" targetRef="ScriptTask_postProcessDecomposeNextResource" />
+ <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_0ow0ck5" name="Start Delete VFC Resource">
+ <bpmn:outgoing>SequenceFlow_0homduu</bpmn:outgoing>
+ <bpmn:linkEventDefinition name="DeleteVFCResource" />
+ </bpmn:intermediateCatchEvent>
+ <bpmn:sequenceFlow id="SequenceFlow_0homduu" sourceRef="IntermediateThrowEvent_0ow0ck5" targetRef="ExclusiveGateway_ServiceResourceIsFinish" />
+ <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_03gc5du" name="Start Delete Service Instance">
+ <bpmn:outgoing>SequenceFlow_0t5f2dt</bpmn:outgoing>
+ <bpmn:linkEventDefinition name="DeleteServiceInstance" />
+ </bpmn:intermediateCatchEvent>
+ <bpmn:sequenceFlow id="SequenceFlow_0t5f2dt" sourceRef="IntermediateCatchEvent_03gc5du" targetRef="CallActivity_06izbke" />
+ <bpmn:exclusiveGateway id="ExclusiveGateway_ServiceResourceIsFinish" name="Service Resource Finish?" default="SequenceFlow_0n7qeqt">
+ <bpmn:incoming>SequenceFlow_0homduu</bpmn:incoming>
+ <bpmn:incoming>SequenceFlow_0eoibq3</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_0n7qeqt</bpmn:outgoing>
+ <bpmn:outgoing>SequenceFlow_13c2v9z</bpmn:outgoing>
+ </bpmn:exclusiveGateway>
+ <bpmn:sequenceFlow id="SequenceFlow_0n7qeqt" name="No" sourceRef="ExclusiveGateway_ServiceResourceIsFinish" targetRef="ScriptTask_preProcessDecomposeNextResource" />
+ <bpmn:scriptTask id="ScriptTask_preProcessDecomposeNextResource" name="PreProcess Decompose Next Resouce" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_0n7qeqt</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_1a5ki3p</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def ddsi = new DoCustomDeleteE2EServiceInstanceV2()
+ddsi.preProcessDecomposeNextResource(execution )]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:sequenceFlow id="SequenceFlow_1a5ki3p" sourceRef="ScriptTask_preProcessDecomposeNextResource" targetRef="ScriptTask_0mjvi2p" />
+ <bpmn:scriptTask id="ScriptTask_postProcessDecomposeNextResource" name="PostProcess Decompose Next Resouce" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_17b01zs</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_0gxv0wp</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def ddsi = new DoCustomDeleteE2EServiceInstanceV2()
+ddsi.postProcessDecomposeNextResource(execution )]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:sequenceFlow id="SequenceFlow_0gxv0wp" sourceRef="ScriptTask_postProcessDecomposeNextResource" targetRef="ScriptTask_06sbvjm" />
+ <bpmn:intermediateThrowEvent id="IntermediateThrowEvent_01fw8bb" name="GoTo Delete Servcie Instance">
+ <bpmn:incoming>SequenceFlow_13c2v9z</bpmn:incoming>
+ <bpmn:linkEventDefinition name="DeleteServiceInstance" />
+ </bpmn:intermediateThrowEvent>
+ <bpmn:sequenceFlow id="SequenceFlow_13c2v9z" name="Yes" sourceRef="ExclusiveGateway_ServiceResourceIsFinish" targetRef="IntermediateThrowEvent_01fw8bb">
+ <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{ execution.getVariable("DDELSI_resourceFinish") != null && execution.getVariable("DDELSI_resourceFinish") == true }]]></bpmn:conditionExpression>
+ </bpmn:sequenceFlow>
+ <bpmn:exclusiveGateway id="ExclusiveGateway_052agzc" name="Found Resource?" default="SequenceFlow_1fac57w">
+ <bpmn:incoming>SequenceFlow_1t1mg6y</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_0a1q5fw</bpmn:outgoing>
+ <bpmn:outgoing>SequenceFlow_1fac57w</bpmn:outgoing>
+ </bpmn:exclusiveGateway>
+ <bpmn:sequenceFlow id="SequenceFlow_1t1mg6y" sourceRef="ScriptTask_0z30dax" targetRef="ExclusiveGateway_052agzc" />
+ <bpmn:sequenceFlow id="SequenceFlow_0a1q5fw" name="Yes" sourceRef="ExclusiveGateway_052agzc" targetRef="CallActivity_Del_SDNC_cust">
+ <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{ execution.getVariable("foundResource") != null && execution.getVariable("foundResource") == true }]]></bpmn:conditionExpression>
+ </bpmn:sequenceFlow>
+ <bpmn:exclusiveGateway id="ExclusiveGateway_0plkf6p">
+ <bpmn:incoming>SequenceFlow_0rpu756</bpmn:incoming>
+ <bpmn:incoming>SequenceFlow_1fac57w</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_1lv9vmb</bpmn:outgoing>
+ </bpmn:exclusiveGateway>
+ <bpmn:sequenceFlow id="SequenceFlow_1lv9vmb" sourceRef="ExclusiveGateway_0plkf6p" targetRef="Task_14erap6" />
+ <bpmn:sequenceFlow id="SequenceFlow_1fac57w" name="No" sourceRef="ExclusiveGateway_052agzc" targetRef="ExclusiveGateway_0plkf6p" />
+ <bpmn:exclusiveGateway id="ExclusiveGateway_0u98ylh" name="Found Resource?" default="SequenceFlow_00knko8">
+ <bpmn:incoming>SequenceFlow_16r9z75</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_0m7ks9t</bpmn:outgoing>
+ <bpmn:outgoing>SequenceFlow_00knko8</bpmn:outgoing>
+ </bpmn:exclusiveGateway>
+ <bpmn:sequenceFlow id="SequenceFlow_16r9z75" sourceRef="Task_14erap6" targetRef="ExclusiveGateway_0u98ylh" />
+ <bpmn:sequenceFlow id="SequenceFlow_0m7ks9t" name="Yes" sourceRef="ExclusiveGateway_0u98ylh" targetRef="Task_1j1u666">
+ <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{ execution.getVariable("foundResource") != null && execution.getVariable("foundResource") == true }]]></bpmn:conditionExpression>
+ </bpmn:sequenceFlow>
+ <bpmn:exclusiveGateway id="ExclusiveGateway_125wehq" default="SequenceFlow_15pzf5n">
+ <bpmn:incoming>SequenceFlow_1g4djgh</bpmn:incoming>
+ <bpmn:incoming>SequenceFlow_00knko8</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_0akcnw7</bpmn:outgoing>
+ <bpmn:outgoing>SequenceFlow_15pzf5n</bpmn:outgoing>
+ </bpmn:exclusiveGateway>
+ <bpmn:sequenceFlow id="SequenceFlow_0akcnw7" name="yes" sourceRef="ExclusiveGateway_125wehq" targetRef="Task_0edkv0m">
+ <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{ execution.getVariable("foundResource") != null && execution.getVariable("foundResource") == true }]]></bpmn:conditionExpression>
+ </bpmn:sequenceFlow>
+ <bpmn:sequenceFlow id="SequenceFlow_00knko8" name="No" sourceRef="ExclusiveGateway_0u98ylh" targetRef="ExclusiveGateway_125wehq" />
+ <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_1t1fier" name="Start UpateOperStatus">
+ <bpmn:outgoing>SequenceFlow_033eqeg</bpmn:outgoing>
+ <bpmn:linkEventDefinition name="UpateOperStatus" />
+ </bpmn:intermediateCatchEvent>
+ <bpmn:sequenceFlow id="SequenceFlow_033eqeg" sourceRef="IntermediateCatchEvent_1t1fier" targetRef="ScriptTask_1ut5zs5" />
+ <bpmn:intermediateThrowEvent id="IntermediateThrowEvent_1q64g27" name="GoTo UpateOperStatus">
+ <bpmn:incoming>SequenceFlow_00a3ijv</bpmn:incoming>
+ <bpmn:linkEventDefinition name="UpateOperStatus" />
+ </bpmn:intermediateThrowEvent>
+ <bpmn:sequenceFlow id="SequenceFlow_00a3ijv" sourceRef="ScriptTask_1rtnsh8" targetRef="IntermediateThrowEvent_1q64g27" />
+ <bpmn:scriptTask id="ScriptTask_PrepareServiceResources" name="Prepare Service Resources" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_18wibmi</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_11405m9</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def ddsi = new DoCustomDeleteE2EServiceInstanceV2()
+ddsi.prepareServiceDeleteResource(execution)]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:sequenceFlow id="SequenceFlow_11405m9" sourceRef="ScriptTask_PrepareServiceResources" targetRef="ScriptTask_0w4scer" />
+ <bpmn:scriptTask id="ScriptTask_1ut5zs5" name="Prepare Update Service Oper Status" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_033eqeg</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_1sm5x5e</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def ddsi = new DoCustomDeleteE2EServiceInstanceV2()
+ddsi.preUpdateServiceOperationStatus(execution)]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:serviceTask id="ServiceTask_0kl5qtj" name="Update Service Oper Status">
+ <bpmn:extensionElements>
+ <camunda:connector>
+ <camunda:inputOutput>
+ <camunda:inputParameter name="url">${URN_mso_openecomp_adapters_db_endpoint}</camunda:inputParameter>
+ <camunda:inputParameter name="headers">
+ <camunda:map>
+ <camunda:entry key="content-type">application/soap+xml</camunda:entry>
+ <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
+ </camunda:map>
+ </camunda:inputParameter>
+ <camunda:inputParameter name="payload">${CVFMI_updateServiceOperStatusRequest}</camunda:inputParameter>
+ <camunda:inputParameter name="method">POST</camunda:inputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
+ </camunda:inputOutput>
+ <camunda:connectorId>http-connector</camunda:connectorId>
+ </camunda:connector>
+ </bpmn:extensionElements>
+ <bpmn:incoming>SequenceFlow_1sm5x5e</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_18wibmi</bpmn:outgoing>
+ </bpmn:serviceTask>
+ <bpmn:sequenceFlow id="SequenceFlow_1sm5x5e" sourceRef="ScriptTask_1ut5zs5" targetRef="ServiceTask_0kl5qtj" />
+ <bpmn:sequenceFlow id="SequenceFlow_18wibmi" sourceRef="ServiceTask_0kl5qtj" targetRef="ScriptTask_PrepareServiceResources" />
+ <bpmn:scriptTask id="ScriptTask_1vlvb1r" name="Prepare Update Service Oper Status(100%)" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_0e7inkl</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_0l4qcge</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+execution.setVariable("progress", "100")
+execution.setVariable("operationStatus", "End")
+def ddsi = new DoCustomDeleteE2EServiceInstanceV2()
+ddsi.preUpdateServiceOperationStatus(execution)]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:serviceTask id="ServiceTask_0lint2e" name="Update Service Oper Status">
+ <bpmn:extensionElements>
+ <camunda:connector>
+ <camunda:inputOutput>
+ <camunda:inputParameter name="url">${URN_mso_openecomp_adapters_db_endpoint}</camunda:inputParameter>
+ <camunda:inputParameter name="headers">
+ <camunda:map>
+ <camunda:entry key="content-type">application/soap+xml</camunda:entry>
+ <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
+ </camunda:map>
+ </camunda:inputParameter>
+ <camunda:inputParameter name="payload">${CVFMI_updateServiceOperStatusRequest}</camunda:inputParameter>
+ <camunda:inputParameter name="method">POST</camunda:inputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
+ </camunda:inputOutput>
+ <camunda:connectorId>http-connector</camunda:connectorId>
+ </camunda:connector>
+ </bpmn:extensionElements>
+ <bpmn:incoming>SequenceFlow_0l4qcge</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_06tonva</bpmn:outgoing>
+ </bpmn:serviceTask>
+ <bpmn:sequenceFlow id="SequenceFlow_0l4qcge" sourceRef="ScriptTask_1vlvb1r" targetRef="ServiceTask_0lint2e" />
+ <bpmn:sequenceFlow id="SequenceFlow_06tonva" sourceRef="ServiceTask_0lint2e" targetRef="EndEvent_1uqzt26" />
+ <bpmn:scriptTask id="ScriptTask_06sbvjm" name="Prepare Update Service Oper Status" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_0gxv0wp</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_1i96ytk</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+
+def ddsi = new DoCustomDeleteE2EServiceInstanceV2()
+ddsi.preUpdateServiceOperationStatus(execution)]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:sequenceFlow id="SequenceFlow_1i96ytk" sourceRef="ScriptTask_06sbvjm" targetRef="ServiceTask_0bia9bb" />
+ <bpmn:serviceTask id="ServiceTask_0bia9bb" name="Update Service Oper Status">
+ <bpmn:extensionElements>
+ <camunda:connector>
+ <camunda:inputOutput>
+ <camunda:inputParameter name="url">${URN_mso_openecomp_adapters_db_endpoint}</camunda:inputParameter>
+ <camunda:inputParameter name="headers">
+ <camunda:map>
+ <camunda:entry key="content-type">application/soap+xml</camunda:entry>
+ <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
+ </camunda:map>
+ </camunda:inputParameter>
+ <camunda:inputParameter name="payload">${CVFMI_updateServiceOperStatusRequest}</camunda:inputParameter>
+ <camunda:inputParameter name="method">POST</camunda:inputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
+ </camunda:inputOutput>
+ <camunda:connectorId>http-connector</camunda:connectorId>
+ </camunda:connector>
+ </bpmn:extensionElements>
+ <bpmn:incoming>SequenceFlow_1i96ytk</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_0eoibq3</bpmn:outgoing>
+ </bpmn:serviceTask>
+ <bpmn:sequenceFlow id="SequenceFlow_0eoibq3" sourceRef="ServiceTask_0bia9bb" targetRef="ExclusiveGateway_ServiceResourceIsFinish" />
+ <bpmn:scriptTask id="ScriptTask_0mjvi2p" name="Prepare Update Service Oper Status" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_1a5ki3p</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_1oo4g4h</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+
+def ddsi = new DoCustomDeleteE2EServiceInstanceV2()
+ddsi.preUpdateServiceOperationStatus(execution)]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:sequenceFlow id="SequenceFlow_1oo4g4h" sourceRef="ScriptTask_0mjvi2p" targetRef="ServiceTask_0vk2b9b" />
+ <bpmn:exclusiveGateway id="ExclusiveGateway_1kavnc9">
+ <bpmn:incoming>SequenceFlow_0uc2beq</bpmn:incoming>
+ <bpmn:incoming>SequenceFlow_15pzf5n</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_1w2n8dn</bpmn:outgoing>
+ </bpmn:exclusiveGateway>
+ <bpmn:sequenceFlow id="SequenceFlow_1w2n8dn" sourceRef="ExclusiveGateway_1kavnc9" targetRef="ScriptTask_1g0tsto" />
+ <bpmn:sequenceFlow id="SequenceFlow_15pzf5n" sourceRef="ExclusiveGateway_125wehq" targetRef="ExclusiveGateway_1kavnc9" />
+ <bpmn:serviceTask id="ServiceTask_0vk2b9b" name="Update Service Oper Status">
+ <bpmn:extensionElements>
+ <camunda:connector>
+ <camunda:inputOutput>
+ <camunda:inputParameter name="url">${URN_mso_openecomp_adapters_db_endpoint}</camunda:inputParameter>
+ <camunda:inputParameter name="headers">
+ <camunda:map>
+ <camunda:entry key="content-type">application/soap+xml</camunda:entry>
+ <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
+ </camunda:map>
+ </camunda:inputParameter>
+ <camunda:inputParameter name="payload">${CVFMI_updateServiceOperStatusRequest}</camunda:inputParameter>
+ <camunda:inputParameter name="method">POST</camunda:inputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
+ </camunda:inputOutput>
+ <camunda:connectorId>http-connector</camunda:connectorId>
+ </camunda:connector>
+ </bpmn:extensionElements>
+ <bpmn:incoming>SequenceFlow_1oo4g4h</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_1bx4es4</bpmn:outgoing>
+ </bpmn:serviceTask>
+ <bpmn:sequenceFlow id="SequenceFlow_1bx4es4" sourceRef="ServiceTask_0vk2b9b" targetRef="Task_preProcessVFCResourceDelete" />
+ <bpmn:scriptTask id="ScriptTask_0w4scer" name="Prepare Resource Oper Status" scriptFormat="groovy">
+ <bpmn:incoming>SequenceFlow_11405m9</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_15d5odq</bpmn:outgoing>
+ <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
+def ddsi = new DoCustomDeleteE2EServiceInstanceV2()
+ddsi.preInitResourcesOperStatus(execution)]]></bpmn:script>
+ </bpmn:scriptTask>
+ <bpmn:sequenceFlow id="SequenceFlow_15d5odq" sourceRef="ScriptTask_0w4scer" targetRef="ServiceTask_1mg7vnx" />
+ <bpmn:serviceTask id="ServiceTask_1mg7vnx" name="Init Resource Oper Status">
+ <bpmn:extensionElements>
+ <camunda:connector>
+ <camunda:inputOutput>
+ <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
+ <camunda:inputParameter name="headers">
+ <camunda:map>
+ <camunda:entry key="content-type">application/soap+xml</camunda:entry>
+ <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
+ </camunda:map>
+ </camunda:inputParameter>
+ <camunda:inputParameter name="payload">${CVFMI_initResOperStatusRequest}</camunda:inputParameter>
+ <camunda:inputParameter name="method">POST</camunda:inputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
+ <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
+ </camunda:inputOutput>
+ <camunda:connectorId>http-connector</camunda:connectorId>
+ </camunda:connector>
+ </bpmn:extensionElements>
+ <bpmn:incoming>SequenceFlow_15d5odq</bpmn:incoming>
+ <bpmn:outgoing>SequenceFlow_1qzxy2i</bpmn:outgoing>
+ </bpmn:serviceTask>
+ <bpmn:sequenceFlow id="SequenceFlow_1qzxy2i" sourceRef="ServiceTask_1mg7vnx" targetRef="IntermediateThrowEvent_1d5z35x" />
+ </bpmn:process>
+ <bpmndi:BPMNDiagram id="BPMNDiagram_1">
+ <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoCustomDeleteE2EServiceInstanceV2">
+ <bpmndi:BPMNShape id="StartEvent_0212h2r_di" bpmnElement="StartEvent_0212h2r">
+ <dc:Bounds x="75" y="110" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="69" y="151" width="50" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ScriptTask_06phzgv_di" bpmnElement="ScriptTask_06phzgv">
+ <dc:Bounds x="311" y="88" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="EndEvent_1uqzt26_di" bpmnElement="EndEvent_1uqzt26">
+ <dc:Bounds x="1078" y="1238" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1006" y="1279" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="CallActivity_06izbke_di" bpmnElement="CallActivity_06izbke">
+ <dc:Bounds x="214" y="1216" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ScriptTask_1rtnsh8_di" bpmnElement="ScriptTask_1rtnsh8">
+ <dc:Bounds x="1055" y="88" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ScriptTask_01erufg_di" bpmnElement="ScriptTask_01erufg">
+ <dc:Bounds x="462" y="1216" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="SubProcess_1u8zt9i_di" bpmnElement="SubProcess_1u8zt9i" isExpanded="true">
+ <dc:Bounds x="192" y="1439" width="467" height="193" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0vz7cd9_di" bpmnElement="SequenceFlow_0vz7cd9">
+ <di:waypoint xsi:type="dc:Point" x="111" y="128" />
+ <di:waypoint xsi:type="dc:Point" x="311" y="128" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="166" y="107" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_11e6bfy_di" bpmnElement="SequenceFlow_11e6bfy">
+ <di:waypoint xsi:type="dc:Point" x="411" y="128" />
+ <di:waypoint xsi:type="dc:Point" x="461" y="128" />
+ <di:waypoint xsi:type="dc:Point" x="667" y="128" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="391" y="107" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_0e7inkl_di" bpmnElement="SequenceFlow_0e7inkl">
+ <di:waypoint xsi:type="dc:Point" x="562" y="1256" />
+ <di:waypoint xsi:type="dc:Point" x="657" y="1256" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="564.5" y="1235" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_0g6bxqw_di" bpmnElement="SequenceFlow_0g6bxqw">
+ <di:waypoint xsi:type="dc:Point" x="314" y="1256" />
+ <di:waypoint xsi:type="dc:Point" x="462" y="1256" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="343" y="1235" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="StartEvent_0sf5lpt_di" bpmnElement="StartEvent_0sf5lpt">
+ <dc:Bounds x="260" y="1506" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="188" y="1547" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="EndEvent_06utmg4_di" bpmnElement="EndEvent_06utmg4">
+ <dc:Bounds x="553" y="1506" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="481" y="1547" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ScriptTask_0nha3pr_di" bpmnElement="ScriptTask_0nha3pr">
+ <dc:Bounds x="364" y="1484" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1921mo3_di" bpmnElement="SequenceFlow_1921mo3">
+ <di:waypoint xsi:type="dc:Point" x="296" y="1524" />
+ <di:waypoint xsi:type="dc:Point" x="364" y="1524" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="240" y="1509" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_18vlzfo_di" bpmnElement="SequenceFlow_18vlzfo">
+ <di:waypoint xsi:type="dc:Point" x="464" y="1524" />
+ <di:waypoint xsi:type="dc:Point" x="553" y="1524" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="420" y="1509" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_0mdub03_di" bpmnElement="ScriptTask_postProcessVFCDelete">
+ <dc:Bounds x="1046" y="1107" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ScriptTask_1g0tsto_di" bpmnElement="ScriptTask_1g0tsto">
+ <dc:Bounds x="1045" y="775" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ScriptTask_0z30dax_di" bpmnElement="ScriptTask_0z30dax">
+ <dc:Bounds x="311" y="577" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0rpu756_di" bpmnElement="SequenceFlow_0rpu756">
+ <di:waypoint xsi:type="dc:Point" x="411" y="823" />
+ <di:waypoint xsi:type="dc:Point" x="530" y="823" />
+ <di:waypoint xsi:type="dc:Point" x="530" y="743" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="426" y="802" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_1wnkgpx_di" bpmnElement="SequenceFlow_1wnkgpx">
+ <di:waypoint xsi:type="dc:Point" x="931" y="980" />
+ <di:waypoint xsi:type="dc:Point" x="1046" y="980" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="943.5" y="959" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_1931m8u_di" bpmnElement="SequenceFlow_1931m8u">
+ <di:waypoint xsi:type="dc:Point" x="1096" y="1020" />
+ <di:waypoint xsi:type="dc:Point" x="1096" y="1107" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1066" y="1058" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_00301ai_di" bpmnElement="Task_preProcessVFCResourceDelete">
+ <dc:Bounds x="831" y="940" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="CallActivity_1mwacgl_di" bpmnElement="Task_CallNetworkServiceDeleteforVFC">
+ <dc:Bounds x="1046" y="940" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ServiceTask_0v9q75y_di" bpmnElement="CallActivity_Del_SDNC_cust">
+ <dc:Bounds x="311" y="784" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1g4djgh_di" bpmnElement="SequenceFlow_1g4djgh">
+ <di:waypoint xsi:type="dc:Point" x="757" y="815" />
+ <di:waypoint xsi:type="dc:Point" x="913" y="815" />
+ <di:waypoint xsi:type="dc:Point" x="913" y="743" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="790" y="794" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_0uc2beq_di" bpmnElement="SequenceFlow_0uc2beq">
+ <di:waypoint xsi:type="dc:Point" x="1095" y="657" />
+ <di:waypoint xsi:type="dc:Point" x="1096" y="693" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1050.5" y="654" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_1e5z0wu_di" bpmnElement="Task_14erap6">
+ <dc:Bounds x="657" y="577" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ServiceTask_0f0965f_di" bpmnElement="Task_1j1u666">
+ <dc:Bounds x="657" y="775" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ServiceTask_0p4b7e1_di" bpmnElement="Task_0edkv0m">
+ <dc:Bounds x="1055" y="577" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="CallActivity_076pc2z_di" bpmnElement="CallActivity_076pc2z">
+ <dc:Bounds x="667" y="88" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_188ejvu_di" bpmnElement="SequenceFlow_188ejvu">
+ <di:waypoint xsi:type="dc:Point" x="767" y="128" />
+ <di:waypoint xsi:type="dc:Point" x="1055" y="128" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="866" y="107" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="IntermediateThrowEvent_1gbu8tc_di" bpmnElement="IntermediateThrowEvent_1d5z35x">
+ <dc:Bounds x="1294" y="376" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1275" y="416" width="82" height="24" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="IntermediateCatchEvent_0a6c9bw_di" bpmnElement="IntermediateThrowEvent_1h6kkwi">
+ <dc:Bounds x="71" y="599" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="52" y="639" width="82" height="24" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1jfyo1x_di" bpmnElement="SequenceFlow_1jfyo1x">
+ <di:waypoint xsi:type="dc:Point" x="107" y="617" />
+ <di:waypoint xsi:type="dc:Point" x="209" y="617" />
+ <di:waypoint xsi:type="dc:Point" x="209" y="617" />
+ <di:waypoint xsi:type="dc:Point" x="311" y="617" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="179" y="611" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_09z6zl7_di" bpmnElement="SequenceFlow_09z6zl7">
+ <di:waypoint xsi:type="dc:Point" x="1145" y="815" />
+ <di:waypoint xsi:type="dc:Point" x="1294" y="815" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1175" y="794" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="IntermediateThrowEvent_01qtcpf_di" bpmnElement="IntermediateThrowEvent_01vy71e">
+ <dc:Bounds x="1294" y="797" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1271" y="837" width="86" height="24" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_17b01zs_di" bpmnElement="SequenceFlow_17b01zs">
+ <di:waypoint xsi:type="dc:Point" x="1046" y="1147" />
+ <di:waypoint xsi:type="dc:Point" x="895" y="1147" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="925.5" y="1126" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="IntermediateCatchEvent_197wgz2_di" bpmnElement="IntermediateThrowEvent_0ow0ck5">
+ <dc:Bounds x="71" y="905" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="49" y="945" width="82" height="24" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0homduu_di" bpmnElement="SequenceFlow_0homduu">
+ <di:waypoint xsi:type="dc:Point" x="107" y="923" />
+ <di:waypoint xsi:type="dc:Point" x="204" y="923" />
+ <di:waypoint xsi:type="dc:Point" x="204" y="955" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="111" y="902" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="IntermediateCatchEvent_03gc5du_di" bpmnElement="IntermediateCatchEvent_03gc5du">
+ <dc:Bounds x="57" y="1238" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="36" y="1278" width="82" height="24" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0t5f2dt_di" bpmnElement="SequenceFlow_0t5f2dt">
+ <di:waypoint xsi:type="dc:Point" x="93" y="1256" />
+ <di:waypoint xsi:type="dc:Point" x="154" y="1256" />
+ <di:waypoint xsi:type="dc:Point" x="154" y="1256" />
+ <di:waypoint xsi:type="dc:Point" x="214" y="1256" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="124" y="1250" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ExclusiveGateway_18ardb3_di" bpmnElement="ExclusiveGateway_ServiceResourceIsFinish" isMarkerVisible="true">
+ <dc:Bounds x="179" y="955" width="50" height="50" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="196" y="911" width="88" height="24" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0n7qeqt_di" bpmnElement="SequenceFlow_0n7qeqt">
+ <di:waypoint xsi:type="dc:Point" x="229" y="980" />
+ <di:waypoint xsi:type="dc:Point" x="311" y="980" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="263" y="959" width="14" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_01wud4g_di" bpmnElement="ScriptTask_preProcessDecomposeNextResource">
+ <dc:Bounds x="311" y="940" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1a5ki3p_di" bpmnElement="SequenceFlow_1a5ki3p">
+ <di:waypoint xsi:type="dc:Point" x="411" y="980" />
+ <di:waypoint xsi:type="dc:Point" x="470" y="980" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="395.5" y="959" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_06p63xt_di" bpmnElement="ScriptTask_postProcessDecomposeNextResource">
+ <dc:Bounds x="795" y="1107" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0gxv0wp_di" bpmnElement="SequenceFlow_0gxv0wp">
+ <di:waypoint xsi:type="dc:Point" x="795" y="1147" />
+ <di:waypoint xsi:type="dc:Point" x="612" y="1147" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="658.5" y="1126" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="IntermediateThrowEvent_01fw8bb_di" bpmnElement="IntermediateThrowEvent_01fw8bb">
+ <dc:Bounds x="186" y="1061" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="166" y="1101" width="82" height="24" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_13c2v9z_di" bpmnElement="SequenceFlow_13c2v9z">
+ <di:waypoint xsi:type="dc:Point" x="204" y="1005" />
+ <di:waypoint xsi:type="dc:Point" x="204" y="1061" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="219" y="1014" width="19" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ExclusiveGateway_052agzc_di" bpmnElement="ExclusiveGateway_052agzc" isMarkerVisible="true">
+ <dc:Bounds x="336" y="693" width="50" height="50" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="253" y="691" width="88" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1t1mg6y_di" bpmnElement="SequenceFlow_1t1mg6y">
+ <di:waypoint xsi:type="dc:Point" x="361" y="657" />
+ <di:waypoint xsi:type="dc:Point" x="361" y="693" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="331" y="669" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_0a1q5fw_di" bpmnElement="SequenceFlow_0a1q5fw">
+ <di:waypoint xsi:type="dc:Point" x="361" y="743" />
+ <di:waypoint xsi:type="dc:Point" x="361" y="784" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="367" y="758" width="19" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ExclusiveGateway_0plkf6p_di" bpmnElement="ExclusiveGateway_0plkf6p" isMarkerVisible="true">
+ <dc:Bounds x="505" y="693" width="50" height="50" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="485" y="747" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1lv9vmb_di" bpmnElement="SequenceFlow_1lv9vmb">
+ <di:waypoint xsi:type="dc:Point" x="530" y="693" />
+ <di:waypoint xsi:type="dc:Point" x="530" y="618" />
+ <di:waypoint xsi:type="dc:Point" x="657" y="618" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="500" y="650" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_1fac57w_di" bpmnElement="SequenceFlow_1fac57w">
+ <di:waypoint xsi:type="dc:Point" x="386" y="718" />
+ <di:waypoint xsi:type="dc:Point" x="505" y="718" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="439" y="697" width="14" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ExclusiveGateway_0u98ylh_di" bpmnElement="ExclusiveGateway_0u98ylh" isMarkerVisible="true">
+ <dc:Bounds x="682" y="693" width="50" height="50" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="612" y="687" width="88" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_16r9z75_di" bpmnElement="SequenceFlow_16r9z75">
+ <di:waypoint xsi:type="dc:Point" x="707" y="657" />
+ <di:waypoint xsi:type="dc:Point" x="707" y="693" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="677" y="669" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_0m7ks9t_di" bpmnElement="SequenceFlow_0m7ks9t">
+ <di:waypoint xsi:type="dc:Point" x="707" y="743" />
+ <di:waypoint xsi:type="dc:Point" x="707" y="775" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="713" y="753" width="19" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ExclusiveGateway_125wehq_di" bpmnElement="ExclusiveGateway_125wehq" isMarkerVisible="true">
+ <dc:Bounds x="888" y="693" width="50" height="50" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="868" y="747" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0akcnw7_di" bpmnElement="SequenceFlow_0akcnw7">
+ <di:waypoint xsi:type="dc:Point" x="913" y="693" />
+ <di:waypoint xsi:type="dc:Point" x="913" y="617" />
+ <di:waypoint xsi:type="dc:Point" x="1055" y="617" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="919" y="649" width="19" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_00knko8_di" bpmnElement="SequenceFlow_00knko8">
+ <di:waypoint xsi:type="dc:Point" x="732" y="718" />
+ <di:waypoint xsi:type="dc:Point" x="888" y="718" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="803" y="697" width="14" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="IntermediateCatchEvent_1t1fier_di" bpmnElement="IntermediateCatchEvent_1t1fier">
+ <dc:Bounds x="71" y="376" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="56" y="416" width="85" height="24" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_033eqeg_di" bpmnElement="SequenceFlow_033eqeg">
+ <di:waypoint xsi:type="dc:Point" x="107" y="394" />
+ <di:waypoint xsi:type="dc:Point" x="209" y="394" />
+ <di:waypoint xsi:type="dc:Point" x="209" y="394" />
+ <di:waypoint xsi:type="dc:Point" x="311" y="394" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="179" y="388" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="IntermediateThrowEvent_1q64g27_di" bpmnElement="IntermediateThrowEvent_1q64g27">
+ <dc:Bounds x="1294" y="110" width="36" height="36" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1274" y="150" width="85" height="24" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_00a3ijv_di" bpmnElement="SequenceFlow_00a3ijv">
+ <di:waypoint xsi:type="dc:Point" x="1155" y="128" />
+ <di:waypoint xsi:type="dc:Point" x="1294" y="128" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1179.5" y="107" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_1fqk4c6_di" bpmnElement="ScriptTask_PrepareServiceResources">
+ <dc:Bounds x="657" y="354" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_11405m9_di" bpmnElement="SequenceFlow_11405m9">
+ <di:waypoint xsi:type="dc:Point" x="757" y="394" />
+ <di:waypoint xsi:type="dc:Point" x="810" y="394" />
+ <di:waypoint xsi:type="dc:Point" x="810" y="394" />
+ <di:waypoint xsi:type="dc:Point" x="863" y="394" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="780" y="388" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_1ut5zs5_di" bpmnElement="ScriptTask_1ut5zs5">
+ <dc:Bounds x="311" y="354" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ServiceTask_0kl5qtj_di" bpmnElement="ServiceTask_0kl5qtj">
+ <dc:Bounds x="470" y="354" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1sm5x5e_di" bpmnElement="SequenceFlow_1sm5x5e">
+ <di:waypoint xsi:type="dc:Point" x="411" y="394" />
+ <di:waypoint xsi:type="dc:Point" x="470" y="394" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="395.5" y="373" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_18wibmi_di" bpmnElement="SequenceFlow_18wibmi">
+ <di:waypoint xsi:type="dc:Point" x="570" y="394" />
+ <di:waypoint xsi:type="dc:Point" x="657" y="394" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="568.5" y="373" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_1vlvb1r_di" bpmnElement="ScriptTask_1vlvb1r">
+ <dc:Bounds x="657" y="1216" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape id="ServiceTask_0lint2e_di" bpmnElement="ServiceTask_0lint2e">
+ <dc:Bounds x="882" y="1216" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0l4qcge_di" bpmnElement="SequenceFlow_0l4qcge">
+ <di:waypoint xsi:type="dc:Point" x="757" y="1256" />
+ <di:waypoint xsi:type="dc:Point" x="882" y="1256" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="819.5" y="1235" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_06tonva_di" bpmnElement="SequenceFlow_06tonva">
+ <di:waypoint xsi:type="dc:Point" x="982" y="1256" />
+ <di:waypoint xsi:type="dc:Point" x="1078" y="1256" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1030" y="1235" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_06sbvjm_di" bpmnElement="ScriptTask_06sbvjm">
+ <dc:Bounds x="512" y="1107" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1i96ytk_di" bpmnElement="SequenceFlow_1i96ytk">
+ <di:waypoint xsi:type="dc:Point" x="512" y="1147" />
+ <di:waypoint xsi:type="dc:Point" x="411" y="1147" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="461.5" y="1126" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ServiceTask_0bia9bb_di" bpmnElement="ServiceTask_0bia9bb">
+ <dc:Bounds x="311" y="1107" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_0eoibq3_di" bpmnElement="SequenceFlow_0eoibq3">
+ <di:waypoint xsi:type="dc:Point" x="311" y="1147" />
+ <di:waypoint xsi:type="dc:Point" x="106" y="1147" />
+ <di:waypoint xsi:type="dc:Point" x="106" y="980" />
+ <di:waypoint xsi:type="dc:Point" x="179" y="980" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="121" y="1057.5" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_0mjvi2p_di" bpmnElement="ScriptTask_0mjvi2p">
+ <dc:Bounds x="470" y="940" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1oo4g4h_di" bpmnElement="SequenceFlow_1oo4g4h">
+ <di:waypoint xsi:type="dc:Point" x="570" y="980" />
+ <di:waypoint xsi:type="dc:Point" x="638" y="980" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="604" y="959" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ExclusiveGateway_1kavnc9_di" bpmnElement="ExclusiveGateway_1kavnc9" isMarkerVisible="true">
+ <dc:Bounds x="1071" y="693" width="50" height="50" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1051" y="747" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1w2n8dn_di" bpmnElement="SequenceFlow_1w2n8dn">
+ <di:waypoint xsi:type="dc:Point" x="1096" y="743" />
+ <di:waypoint xsi:type="dc:Point" x="1095" y="775" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1095.5" y="738" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="SequenceFlow_15pzf5n_di" bpmnElement="SequenceFlow_15pzf5n">
+ <di:waypoint xsi:type="dc:Point" x="938" y="718" />
+ <di:waypoint xsi:type="dc:Point" x="1005" y="718" />
+ <di:waypoint xsi:type="dc:Point" x="1005" y="718" />
+ <di:waypoint xsi:type="dc:Point" x="1071" y="718" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1020" y="712" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ServiceTask_0vk2b9b_di" bpmnElement="ServiceTask_0vk2b9b">
+ <dc:Bounds x="638" y="940" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1bx4es4_di" bpmnElement="SequenceFlow_1bx4es4">
+ <di:waypoint xsi:type="dc:Point" x="738" y="980" />
+ <di:waypoint xsi:type="dc:Point" x="831" y="980" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="784.5" y="959" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ScriptTask_0w4scer_di" bpmnElement="ScriptTask_0w4scer">
+ <dc:Bounds x="863" y="354" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_15d5odq_di" bpmnElement="SequenceFlow_15d5odq">
+ <di:waypoint xsi:type="dc:Point" x="963" y="394" />
+ <di:waypoint xsi:type="dc:Point" x="1055" y="394" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="964" y="373" width="90" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNShape id="ServiceTask_1mg7vnx_di" bpmnElement="ServiceTask_1mg7vnx">
+ <dc:Bounds x="1055" y="354" width="100" height="80" />
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNEdge id="SequenceFlow_1qzxy2i_di" bpmnElement="SequenceFlow_1qzxy2i">
+ <di:waypoint xsi:type="dc:Point" x="1155" y="394" />
+ <di:waypoint xsi:type="dc:Point" x="1294" y="394" />
+ <bpmndi:BPMNLabel>
+ <dc:Bounds x="1224.5" y="373" width="0" height="12" />
+ </bpmndi:BPMNLabel>
+ </bpmndi:BPMNEdge>
+ </bpmndi:BPMNPlane>
+ </bpmndi:BPMNDiagram>
+</bpmn:definitions>