blob: f4edac612cd564def925e8195200da31be405f95 [file] [log] [blame]
<?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" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="_wAtdAGrUEeaJwpcpVN5gXw" exporter="camunda modeler" exporterVersion="2.7.0" targetNamespace="http://camunda.org/schema/1.0/bpmn">
<bpmn2:process id="GenericDeleteService" name="GenericDeleteService" isExecutable="true">
<bpmn2:subProcess id="bpmnExceptionHandlingSubProcess" name="Error Handling Sub Process" triggeredByEvent="true">
<bpmn2:scriptTask id="processError" name="Process Error" scriptFormat="groovy">
<bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing>
<bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
ExceptionUtil ex = new ExceptionUtil()
ex.processSubflowsBPMNException(execution)
]]></bpmn2:script>
</bpmn2:scriptTask>
<bpmn2:sequenceFlow id="SequenceFlow_10" name="" sourceRef="processError" targetRef="EndEvent_3"/>
<bpmn2:startEvent id="StartEvent_2">
<bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>
<bpmn2:errorEventDefinition id="ErrorEventDefinition_1"/>
</bpmn2:startEvent>
<bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="StartEvent_2" targetRef="processError"/>
<bpmn2:endEvent id="EndEvent_3">
<bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>
<bpmn2:terminateEventDefinition id="_TerminateEventDefinition_25"/>
</bpmn2:endEvent>
</bpmn2:subProcess>
<bpmn2:subProcess id="javaExceptionSubProcess" name="Java Exception Handling Sub Process" triggeredByEvent="true">
<bpmn2:endEvent id="EndEvent_2">
<bpmn2:incoming>SequenceFlow_12</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:scriptTask id="processJavaError" name="Process Error">
<bpmn2:incoming>SequenceFlow_11</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_12</bpmn2:outgoing>
<bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
ExceptionUtil ex = new ExceptionUtil()
ex.processSubflowsJavaException(execution)
]]></bpmn2:script>
</bpmn2:scriptTask>
<bpmn2:startEvent id="StartEvent_3">
<bpmn2:outgoing>SequenceFlow_11</bpmn2:outgoing>
<bpmn2:errorEventDefinition id="ErrorEventDefinition_2"/>
</bpmn2:startEvent>
<bpmn2:sequenceFlow id="SequenceFlow_11" name="" sourceRef="StartEvent_3" targetRef="processJavaError"/>
<bpmn2:sequenceFlow id="SequenceFlow_12" name="" sourceRef="processJavaError" targetRef="EndEvent_2"/>
</bpmn2:subProcess>
<bpmn2:startEvent id="StartEvent_1">
<bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="initialization"/>
<bpmn2:scriptTask id="initialization" name="Initialization" scriptFormat="groovy">
<bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
<bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
GenericDeleteService deleteService = new GenericDeleteService()
deleteService.preProcessRequest(execution)
]]></bpmn2:script>
</bpmn2:scriptTask>
<bpmn2:sequenceFlow id="SequenceFlow_3" name="" sourceRef="initialization" targetRef="resourceVersionCheck"/>
<bpmn2:exclusiveGateway id="resourceVersionCheck" name="Resource Version Provided?" default="yes">
<bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
<bpmn2:outgoing>no</bpmn2:outgoing>
<bpmn2:outgoing>yes</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:sequenceFlow id="no" name="No" sourceRef="resourceVersionCheck" targetRef="queryForResourceVersion">
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("GENDS_resourceVersionProvidedFlag" ) == false}]]></bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="yes" name="Yes" sourceRef="resourceVersionCheck" targetRef="ExclusiveGateway_2"/>
<bpmn2:scriptTask id="toggleSuccess" name="Toggle Success Indicator" scriptFormat="groovy">
<bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
<bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
GenericDeleteService deleteService = new GenericDeleteService()
deleteService.setSuccessIndicator(execution, true)
execution.setVariable("WorkflowResponse", " ") //for junits
]]></bpmn2:script>
</bpmn2:scriptTask>
<bpmn2:sequenceFlow id="SequenceFlow_4" name="" sourceRef="toggleSuccess" targetRef="EndEvent_1"/>
<bpmn2:exclusiveGateway id="ExclusiveGateway_2">
<bpmn2:incoming>yes</bpmn2:incoming>
<bpmn2:incoming>siExistYes</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:sequenceFlow id="SequenceFlow_6" name="" sourceRef="ExclusiveGateway_2" targetRef="deleteServiceInstance"/>
<bpmn2:endEvent id="EndEvent_1">
<bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
<bpmn2:terminateEventDefinition id="_TerminateEventDefinition_24"/>
</bpmn2:endEvent>
<bpmn2:scriptTask id="deleteServiceInstance" name="DELETE&#xD;&#xA;Service Instance" scriptFormat="groovy">
<bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>
<bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
GenericDeleteService deleteService = new GenericDeleteService()
deleteService.deleteServiceObject(execution)]]></bpmn2:script>
</bpmn2:scriptTask>
<bpmn2:sequenceFlow id="SequenceFlow_7" name="" sourceRef="deleteServiceInstance" targetRef="toggleSuccess"/>
<bpmn2:scriptTask id="queryForResourceVersion" name="Query SI Resource Version" scriptFormat="groovy">
<bpmn2:incoming>no</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
<bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
GenericDeleteService deleteService = new GenericDeleteService()
deleteService.getServiceResourceVersion(execution)]]></bpmn2:script>
</bpmn2:scriptTask>
<bpmn2:sequenceFlow id="SequenceFlow_5" name="" sourceRef="queryForResourceVersion" targetRef="siExistCheck"/>
<bpmn2:exclusiveGateway id="siExistCheck" name="Service Exist?">
<bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
<bpmn2:outgoing>siExistYes</bpmn2:outgoing>
<bpmn2:outgoing>siExistNo</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:sequenceFlow id="siExistYes" name="Yes" sourceRef="siExistCheck" targetRef="ExclusiveGateway_2">
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("GENDS_FoundIndicator" ) == true}]]></bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="siExistNo" name="No" sourceRef="siExistCheck" targetRef="EndEvent_4"/>
<bpmn2:endEvent id="EndEvent_4">
<bpmn2:incoming>siExistNo</bpmn2:incoming>
<bpmn2:terminateEventDefinition id="_TerminateEventDefinition_38"/>
</bpmn2:endEvent>
</bpmn2:process>
<bpmn2:error id="Error_1" errorCode="MSOWorkflowException" name="MSO Workflow Exception"/>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="GenericDeleteService">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_63" bpmnElement="StartEvent_1">
<dc:Bounds height="36.0" width="36.0" x="84.0" y="221.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="102.0" y="262.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_ScriptTask_267" bpmnElement="initialization">
<dc:Bounds height="80.0" width="100.0" x="216.0" y="199.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_224" bpmnElement="resourceVersionCheck" isMarkerVisible="true">
<dc:Bounds height="50.0" width="50.0" x="365.0" y="213.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="22.0" width="169.0" x="401.0" y="243.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_ScriptTask_268" bpmnElement="queryForResourceVersion">
<dc:Bounds height="80.0" width="100.0" x="457.0" y="100.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_225" bpmnElement="ExclusiveGateway_2" isMarkerVisible="true">
<dc:Bounds height="50.0" width="50.0" x="600.0" y="213.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="625.0" y="268.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_ScriptTask_269" bpmnElement="deleteServiceInstance">
<dc:Bounds height="80.0" width="100.0" x="684.0" y="199.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_EndEvent_213" bpmnElement="EndEvent_1">
<dc:Bounds height="36.0" width="36.0" x="1006.0" y="221.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="1024.0" y="262.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_SubProcess_20" bpmnElement="bpmnExceptionHandlingSubProcess" isExpanded="true">
<dc:Bounds height="169.0" width="321.0" x="155.0" y="384.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_63" targetElement="_BPMNShape_ScriptTask_267">
<di:waypoint xsi:type="dc:Point" x="120.0" y="239.0"/>
<di:waypoint xsi:type="dc:Point" x="216.0" y="239.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="147.0" y="239.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ScriptTask_267" targetElement="_BPMNShape_ExclusiveGateway_224">
<di:waypoint xsi:type="dc:Point" x="316.0" y="239.0"/>
<di:waypoint xsi:type="dc:Point" x="365.0" y="238.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="217.0" y="238.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="no" sourceElement="_BPMNShape_ExclusiveGateway_224" targetElement="_BPMNShape_ScriptTask_268">
<di:waypoint xsi:type="dc:Point" x="390.0" y="213.0"/>
<di:waypoint xsi:type="dc:Point" x="390.0" y="140.0"/>
<di:waypoint xsi:type="dc:Point" x="457.0" y="140.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="22.0" width="22.0" x="392.0" y="179.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_ScriptTask_268" targetElement="_BPMNShape_ExclusiveGateway_241">
<di:waypoint xsi:type="dc:Point" x="557.0" y="140.0"/>
<di:waypoint xsi:type="dc:Point" x="600.0" y="139.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="492.0" y="140.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_ExclusiveGateway_225" targetElement="_BPMNShape_ScriptTask_269">
<di:waypoint xsi:type="dc:Point" x="650.0" y="238.0"/>
<di:waypoint xsi:type="dc:Point" x="684.0" y="239.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="556.0" y="239.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_ScriptTask_269" targetElement="_BPMNShape_ScriptTask_272">
<di:waypoint xsi:type="dc:Point" x="784.0" y="239.0"/>
<di:waypoint xsi:type="dc:Point" x="826.0" y="239.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="778.0" y="239.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="yes" sourceElement="_BPMNShape_ExclusiveGateway_224" targetElement="_BPMNShape_ExclusiveGateway_225">
<di:waypoint xsi:type="dc:Point" x="390.0" y="263.0"/>
<di:waypoint xsi:type="dc:Point" x="390.0" y="310.0"/>
<di:waypoint xsi:type="dc:Point" x="517.0" y="310.0"/>
<di:waypoint xsi:type="dc:Point" x="625.0" y="310.0"/>
<di:waypoint xsi:type="dc:Point" x="625.0" y="263.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="22.0" width="29.0" x="389.0" y="278.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_SubProcess_23" bpmnElement="javaExceptionSubProcess" isExpanded="true">
<dc:Bounds height="157.0" width="306.0" x="163.0" y="576.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_65" bpmnElement="StartEvent_2">
<dc:Bounds height="36.0" width="36.0" x="180.0" y="451.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="198.0" y="492.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_66" bpmnElement="StartEvent_3">
<dc:Bounds height="36.0" width="36.0" x="192.0" y="637.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="210.0" y="678.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_EndEvent_216" bpmnElement="EndEvent_2">
<dc:Bounds height="36.0" width="36.0" x="408.0" y="637.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="426.0" y="678.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_EndEvent_217" bpmnElement="EndEvent_3">
<dc:Bounds height="36.0" width="36.0" x="420.0" y="451.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="438.0" y="492.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_ScriptTask_270" bpmnElement="processError">
<dc:Bounds height="80.0" width="100.0" x="266.0" y="429.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_ScriptTask_271" bpmnElement="processJavaError">
<dc:Bounds height="80.0" width="100.0" x="267.0" y="615.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_StartEvent_65" targetElement="_BPMNShape_ScriptTask_270">
<di:waypoint xsi:type="dc:Point" x="216.0" y="469.0"/>
<di:waypoint xsi:type="dc:Point" x="266.0" y="469.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="232.0" y="469.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_10" sourceElement="_BPMNShape_ScriptTask_270" targetElement="_BPMNShape_EndEvent_217">
<di:waypoint xsi:type="dc:Point" x="366.0" y="469.0"/>
<di:waypoint xsi:type="dc:Point" x="420.0" y="469.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="384.0" y="469.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="SequenceFlow_11" sourceElement="_BPMNShape_StartEvent_66" targetElement="_BPMNShape_ScriptTask_271">
<di:waypoint xsi:type="dc:Point" x="228.0" y="655.0"/>
<di:waypoint xsi:type="dc:Point" x="267.0" y="655.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_12" bpmnElement="SequenceFlow_12" sourceElement="_BPMNShape_ScriptTask_271" targetElement="_BPMNShape_EndEvent_216">
<di:waypoint xsi:type="dc:Point" x="367.0" y="655.0"/>
<di:waypoint xsi:type="dc:Point" x="408.0" y="655.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_ScriptTask_272" bpmnElement="toggleSuccess">
<dc:Bounds height="80.0" width="100.0" x="826.0" y="199.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_ScriptTask_272" targetElement="_BPMNShape_EndEvent_213">
<di:waypoint xsi:type="dc:Point" x="926.0" y="239.0"/>
<di:waypoint xsi:type="dc:Point" x="1006.0" y="239.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="6.0" width="6.0" x="828.0" y="239.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_241" bpmnElement="siExistCheck" isMarkerVisible="true">
<dc:Bounds height="50.0" width="50.0" x="600.0" y="114.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="22.0" width="59.0" x="596.0" y="94.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="siExistYes" sourceElement="_BPMNShape_ExclusiveGateway_241" targetElement="_BPMNShape_ExclusiveGateway_225">
<di:waypoint xsi:type="dc:Point" x="625.0" y="164.0"/>
<di:waypoint xsi:type="dc:Point" x="625.0" y="213.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="22.0" width="29.0" x="624.0" y="168.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_15" bpmnElement="siExistNo" sourceElement="_BPMNShape_ExclusiveGateway_241" targetElement="_BPMNShape_EndEvent_241">
<di:waypoint xsi:type="dc:Point" x="650.0" y="139.0"/>
<di:waypoint xsi:type="dc:Point" x="733.0" y="140.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="22.0" width="22.0" x="664.0" y="140.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_EndEvent_241" bpmnElement="EndEvent_4">
<dc:Bounds height="36.0" width="36.0" x="733.0" y="122.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="751.0" y="163.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>