1 <?xml version="1.0" encoding="UTF-8"?>
2 <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="4.1.1">
3 <bpmn:process id="DeleteVfModuleBB" name="DeleteVfModuleBB" isExecutable="true">
4 <bpmn:startEvent id="DeleteVfModuleBB_Start">
5 <bpmn:outgoing>Flow_069drgn</bpmn:outgoing>
7 <bpmn:serviceTask id="DeleteVfModuleVnfAdapter" name="Prepare Request" camunda:expression="${VnfAdapterDeleteTasks.deleteVfModule(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
8 <bpmn:incoming>Flow_1c15ua4</bpmn:incoming>
9 <bpmn:outgoing>Flow_0yz0t7z</bpmn:outgoing>
11 <bpmn:serviceTask id="UpdateVfModuleDeleteStatus" name=" AAI Update (vf module) " camunda:expression="${AAIUpdateTasks.updateOrchestrationStatusDeleteVfModule(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
12 <bpmn:incoming>SequenceFlow_01vfwtp</bpmn:incoming>
13 <bpmn:outgoing>SequenceFlow_09l7pcg</bpmn:outgoing>
15 <bpmn:endEvent id="DeleteVfModuleBB_End">
16 <bpmn:incoming>SequenceFlow_09l7pcg</bpmn:incoming>
18 <bpmn:callActivity id="VnfAdapter" name="Vnf Adapter" calledElement="VnfAdapter">
19 <bpmn:extensionElements>
20 <camunda:in source="gBuildingBlockExecution" target="gBuildingBlockExecution" />
21 <camunda:out source="WorkflowException" target="WorkflowException" />
22 <camunda:in source="deleteVfModuleRequest" target="deleteVfModuleRequest" />
23 <camunda:in source="VNFREST_Request" target="VNFREST_Request" />
24 <camunda:out source="heatStackId" target="heatStackId" />
25 <camunda:out source="oamManagementV4Address" target="oamManagementV4Address" />
26 <camunda:out source="oamManagementV6Address" target="oamManagementV6Address" />
27 <camunda:out source="contrailNetworkPolicyFqdnList" target="contrailNetworkPolicyFqdnList" />
28 <camunda:out source="contrailServiceInstanceFqdn" target="contrailServiceInstanceFqdn" />
29 </bpmn:extensionElements>
30 <bpmn:incoming>Flow_0yz0t7z</bpmn:incoming>
31 <bpmn:outgoing>Flow_0hlvlw2</bpmn:outgoing>
33 <bpmn:serviceTask id="UpdateVfModuleHeatStackId" name=" AAI Update (vf module) " camunda:expression="${AAIUpdateTasks.updateHeatStackIdVfModule(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
34 <bpmn:incoming>SequenceFlow_0yuz21z</bpmn:incoming>
35 <bpmn:outgoing>SequenceFlow_01vfwtp</bpmn:outgoing>
37 <bpmn:sequenceFlow id="SequenceFlow_01vfwtp" sourceRef="UpdateVfModuleHeatStackId" targetRef="UpdateVfModuleDeleteStatus" />
38 <bpmn:sequenceFlow id="SequenceFlow_09l7pcg" sourceRef="UpdateVfModuleDeleteStatus" targetRef="DeleteVfModuleBB_End" />
39 <bpmn:sequenceFlow id="SequenceFlow_0xyu3pk" sourceRef="DeleteNetworkPolicies" targetRef="UpdateVnfIpv4OamAddress" />
40 <bpmn:serviceTask id="DeleteNetworkPolicies" name=" AAI Delete (net policies) " camunda:expression="${AAIDeleteTasks.deleteNetworkPolicies(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
41 <bpmn:incoming>Flow_0n2pqrr</bpmn:incoming>
42 <bpmn:outgoing>SequenceFlow_0xyu3pk</bpmn:outgoing>
44 <bpmn:serviceTask id="UpdateVnfManagementV6Address" name=" AAI Update (vnf) " camunda:expression="${AAIUpdateTasks.updateManagementV6AddressVnf(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
45 <bpmn:incoming>SequenceFlow_0jtem3b</bpmn:incoming>
46 <bpmn:outgoing>SequenceFlow_0khqfnc</bpmn:outgoing>
48 <bpmn:sequenceFlow id="SequenceFlow_0jtem3b" sourceRef="UpdateVnfIpv4OamAddress" targetRef="UpdateVnfManagementV6Address" />
49 <bpmn:serviceTask id="UpdateVnfIpv4OamAddress" name=" AAI Update (vnf) " camunda:expression="${AAIUpdateTasks.updateIpv4OamAddressVnf(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
50 <bpmn:incoming>SequenceFlow_0xyu3pk</bpmn:incoming>
51 <bpmn:outgoing>SequenceFlow_0jtem3b</bpmn:outgoing>
53 <bpmn:sequenceFlow id="SequenceFlow_0khqfnc" sourceRef="UpdateVnfManagementV6Address" targetRef="UpdateVfModuleContrailServiceInstanceFqdn" />
54 <bpmn:sequenceFlow id="SequenceFlow_0yuz21z" sourceRef="UpdateVfModuleContrailServiceInstanceFqdn" targetRef="UpdateVfModuleHeatStackId" />
55 <bpmn:serviceTask id="UpdateVfModuleContrailServiceInstanceFqdn" name=" AAI Update (vf module) " camunda:expression="${AAIUpdateTasks.updateContrailServiceInstanceFqdnVfModule(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
56 <bpmn:incoming>SequenceFlow_0khqfnc</bpmn:incoming>
57 <bpmn:outgoing>SequenceFlow_0yuz21z</bpmn:outgoing>
59 <bpmn:intermediateThrowEvent id="aaiThrow" name="Update AAI">
60 <bpmn:incoming>Flow_0plbl7p</bpmn:incoming>
61 <bpmn:incoming>Flow_1ktykz6</bpmn:incoming>
62 <bpmn:linkEventDefinition name="AAI" />
63 </bpmn:intermediateThrowEvent>
64 <bpmn:intermediateCatchEvent id="aaiCatch" name="Update AAI">
65 <bpmn:outgoing>Flow_0n2pqrr</bpmn:outgoing>
66 <bpmn:linkEventDefinition name="AAI" />
67 </bpmn:intermediateCatchEvent>
68 <bpmn:serviceTask id="ServiceTask_0itw3by" name=" AAI Delete (inventory) " camunda:type="external" camunda:topic="InventoryDelete">
69 <bpmn:incoming>SequenceFlow_1i9ft2r</bpmn:incoming>
70 <bpmn:outgoing>Flow_0plbl7p</bpmn:outgoing>
72 <bpmn:serviceTask id="ServiceTask_08ulmzc" name=" Create Cloud Variable " camunda:expression="${DeleteVFModule.createInventoryVariable(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
73 <bpmn:incoming>Flow_0hlvlw2</bpmn:incoming>
74 <bpmn:outgoing>SequenceFlow_1i9ft2r</bpmn:outgoing>
76 <bpmn:sequenceFlow id="SequenceFlow_1i9ft2r" sourceRef="ServiceTask_08ulmzc" targetRef="ServiceTask_0itw3by" />
77 <bpmn:sequenceFlow id="Flow_0n2pqrr" sourceRef="aaiCatch" targetRef="DeleteNetworkPolicies" />
78 <bpmn:sequenceFlow id="Flow_0plbl7p" sourceRef="ServiceTask_0itw3by" targetRef="aaiThrow" />
79 <bpmn:sequenceFlow id="Flow_0hlvlw2" sourceRef="VnfAdapter" targetRef="ServiceTask_08ulmzc" />
80 <bpmn:subProcess id="Activity_1thbmzc" name="Inventory Error Handling" triggeredByEvent="true">
81 <bpmn:endEvent id="Event_00dlrto">
82 <bpmn:incoming>Flow_0yqo5xu</bpmn:incoming>
84 <bpmn:startEvent id="Event_0dfwcfl">
85 <bpmn:outgoing>Flow_0qyhv7c</bpmn:outgoing>
86 <bpmn:errorEventDefinition id="ErrorEventDefinition_1p6vsj6" errorRef="Error_1le3oui" />
88 <bpmn:serviceTask id="Activity_025387k" name="Process Error" camunda:expression="${ExceptionBuilder.processInventoryException(execution)}">
89 <bpmn:incoming>Flow_0qyhv7c</bpmn:incoming>
90 <bpmn:outgoing>Flow_0yqo5xu</bpmn:outgoing>
92 <bpmn:sequenceFlow id="Flow_0qyhv7c" sourceRef="Event_0dfwcfl" targetRef="Activity_025387k" />
93 <bpmn:sequenceFlow id="Flow_0yqo5xu" sourceRef="Activity_025387k" targetRef="Event_00dlrto" />
95 <bpmn:serviceTask id="Activity_1aqardy" name="Cnf Adapter" camunda:expression="${CnfAdapterDeleteTasks.deleteInstance(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
96 <bpmn:incoming>Flow_10r76pp</bpmn:incoming>
97 <bpmn:outgoing>Flow_1ktykz6</bpmn:outgoing>
99 <bpmn:sequenceFlow id="Flow_1ktykz6" sourceRef="Activity_1aqardy" targetRef="aaiThrow" />
100 <bpmn:exclusiveGateway id="CheckIfIsHelm" name="Check if is helm">
101 <bpmn:incoming>Flow_069drgn</bpmn:incoming>
102 <bpmn:outgoing>Flow_10r76pp</bpmn:outgoing>
103 <bpmn:outgoing>Flow_1c15ua4</bpmn:outgoing>
104 </bpmn:exclusiveGateway>
105 <bpmn:sequenceFlow id="Flow_10r76pp" name="Yes" sourceRef="CheckIfIsHelm" targetRef="Activity_1aqardy">
106 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${execution.getVariable("isHelm")}</bpmn:conditionExpression>
108 <bpmn:sequenceFlow id="Flow_0yz0t7z" sourceRef="DeleteVfModuleVnfAdapter" targetRef="VnfAdapter" />
109 <bpmn:sequenceFlow id="Flow_069drgn" sourceRef="DeleteVfModuleBB_Start" targetRef="CheckIfIsHelm" />
110 <bpmn:sequenceFlow id="Flow_1c15ua4" name="No" sourceRef="CheckIfIsHelm" targetRef="DeleteVfModuleVnfAdapter" />
112 <bpmn:error id="Error_0jjnve8" name="Error_3k24na6" errorCode="AAIInventoryFailure" />
113 <bpmn:escalation id="Escalation_130je8j" name="audit" escalationCode="audit1" />
114 <bpmn:error id="Error_1le3oui" name="AAIInventoryFailure" errorCode="AAIInventoryFailure" />
115 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
116 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DeleteVfModuleBB">
117 <bpmndi:BPMNEdge id="Flow_0hlvlw2_di" bpmnElement="Flow_0hlvlw2">
118 <di:waypoint x="680" y="254" />
119 <di:waypoint x="760" y="254" />
121 <bpmndi:BPMNEdge id="Flow_0plbl7p_di" bpmnElement="Flow_0plbl7p">
122 <di:waypoint x="1010" y="254" />
123 <di:waypoint x="1062" y="254" />
125 <bpmndi:BPMNEdge id="Flow_0n2pqrr_di" bpmnElement="Flow_0n2pqrr">
126 <di:waypoint x="195" y="478" />
127 <di:waypoint x="270" y="478" />
129 <bpmndi:BPMNEdge id="SequenceFlow_1i9ft2r_di" bpmnElement="SequenceFlow_1i9ft2r">
130 <di:waypoint x="860" y="254" />
131 <di:waypoint x="910" y="254" />
133 <bpmndi:BPMNEdge id="SequenceFlow_0yuz21z_di" bpmnElement="SequenceFlow_0yuz21z">
134 <di:waypoint x="770" y="478" />
135 <di:waypoint x="800" y="478" />
137 <dc:Bounds x="722" y="493" width="90" height="0" />
140 <bpmndi:BPMNEdge id="SequenceFlow_0khqfnc_di" bpmnElement="SequenceFlow_0khqfnc">
141 <di:waypoint x="640" y="478" />
142 <di:waypoint x="670" y="478" />
144 <dc:Bounds x="598" y="493" width="90" height="0" />
147 <bpmndi:BPMNEdge id="SequenceFlow_0jtem3b_di" bpmnElement="SequenceFlow_0jtem3b">
148 <di:waypoint x="500" y="478" />
149 <di:waypoint x="540" y="478" />
151 <dc:Bounds x="473" y="493" width="90" height="0" />
154 <bpmndi:BPMNEdge id="SequenceFlow_0xyu3pk_di" bpmnElement="SequenceFlow_0xyu3pk">
155 <di:waypoint x="370" y="478" />
156 <di:waypoint x="400" y="478" />
158 <dc:Bounds x="345" y="493" width="90" height="0" />
161 <bpmndi:BPMNEdge id="SequenceFlow_09l7pcg_di" bpmnElement="SequenceFlow_09l7pcg">
162 <di:waypoint x="1030" y="478" />
163 <di:waypoint x="1142" y="478" />
165 <dc:Bounds x="1092.5" y="493" width="90" height="0" />
168 <bpmndi:BPMNEdge id="SequenceFlow_01vfwtp_di" bpmnElement="SequenceFlow_01vfwtp">
169 <di:waypoint x="900" y="478" />
170 <di:waypoint x="930" y="478" />
172 <dc:Bounds x="848" y="493" width="90" height="0" />
175 <bpmndi:BPMNEdge id="Flow_1ktykz6_di" bpmnElement="Flow_1ktykz6">
176 <di:waypoint x="680" y="120" />
177 <di:waypoint x="1080" y="120" />
178 <di:waypoint x="1080" y="236" />
180 <bpmndi:BPMNEdge id="Flow_10r76pp_di" bpmnElement="Flow_10r76pp">
181 <di:waypoint x="280" y="229" />
182 <di:waypoint x="280" y="120" />
183 <di:waypoint x="580" y="120" />
185 <dc:Bounds x="256" y="162" width="18" height="14" />
188 <bpmndi:BPMNEdge id="Flow_0yz0t7z_di" bpmnElement="Flow_0yz0t7z">
189 <di:waypoint x="500" y="254" />
190 <di:waypoint x="580" y="254" />
192 <bpmndi:BPMNEdge id="Flow_069drgn_di" bpmnElement="Flow_069drgn">
193 <di:waypoint x="195" y="254" />
194 <di:waypoint x="255" y="254" />
196 <bpmndi:BPMNEdge id="Flow_1c15ua4_di" bpmnElement="Flow_1c15ua4">
197 <di:waypoint x="305" y="254" />
198 <di:waypoint x="400" y="254" />
200 <dc:Bounds x="345" y="236" width="15" height="14" />
203 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="DeleteVfModuleBB_Start">
204 <dc:Bounds x="159" y="236" width="36" height="36" />
206 <dc:Bounds x="132" y="302" width="90" height="12" />
209 <bpmndi:BPMNShape id="ServiceTask_0pbhsub_di" bpmnElement="UpdateVfModuleDeleteStatus">
210 <dc:Bounds x="930" y="438" width="100" height="80" />
212 <bpmndi:BPMNShape id="EndEvent_1rn6yvh_di" bpmnElement="DeleteVfModuleBB_End">
213 <dc:Bounds x="1142" y="460" width="36" height="36" />
215 <dc:Bounds x="1241" y="530" width="90" height="0" />
218 <bpmndi:BPMNShape id="ServiceTask_0vlgqod_di" bpmnElement="UpdateVfModuleHeatStackId">
219 <dc:Bounds x="800" y="438" width="100" height="80" />
221 <bpmndi:BPMNShape id="ServiceTask_0tty0ac_di" bpmnElement="DeleteNetworkPolicies">
222 <dc:Bounds x="270" y="438" width="100" height="80" />
224 <bpmndi:BPMNShape id="ServiceTask_0lrrd16_di" bpmnElement="UpdateVnfManagementV6Address">
225 <dc:Bounds x="540" y="438" width="100" height="80" />
227 <bpmndi:BPMNShape id="ServiceTask_0w9805b_di" bpmnElement="UpdateVnfIpv4OamAddress">
228 <dc:Bounds x="400" y="438" width="100" height="80" />
230 <bpmndi:BPMNShape id="ServiceTask_0v8naz9_di" bpmnElement="UpdateVfModuleContrailServiceInstanceFqdn">
231 <dc:Bounds x="670" y="438" width="100" height="80" />
233 <bpmndi:BPMNShape id="IntermediateThrowEvent_1sftyjz_di" bpmnElement="aaiThrow">
234 <dc:Bounds x="1062" y="236" width="36" height="36" />
236 <dc:Bounds x="1051" y="282" width="57" height="14" />
239 <bpmndi:BPMNShape id="IntermediateCatchEvent_13y483m_di" bpmnElement="aaiCatch">
240 <dc:Bounds x="159" y="460" width="36" height="36" />
242 <dc:Bounds x="149" y="500" width="57" height="14" />
245 <bpmndi:BPMNShape id="ServiceTask_0itw3by_di" bpmnElement="ServiceTask_0itw3by">
246 <dc:Bounds x="910" y="214" width="100" height="80" />
248 <bpmndi:BPMNShape id="ServiceTask_08ulmzc_di" bpmnElement="ServiceTask_08ulmzc">
249 <dc:Bounds x="760" y="214" width="100" height="80" />
251 <bpmndi:BPMNShape id="Gateway_0s4azdf_di" bpmnElement="CheckIfIsHelm" isMarkerVisible="true">
252 <dc:Bounds x="255" y="229" width="50" height="50" />
254 <dc:Bounds x="240" y="289" width="79" height="14" />
257 <bpmndi:BPMNShape id="ServiceTask_16798zf_di" bpmnElement="DeleteVfModuleVnfAdapter">
258 <dc:Bounds x="400" y="214" width="100" height="80" />
260 <bpmndi:BPMNShape id="CallActivity_0whogn3_di" bpmnElement="VnfAdapter">
261 <dc:Bounds x="580" y="214" width="100" height="80" />
263 <bpmndi:BPMNShape id="Activity_1aqardy_di" bpmnElement="Activity_1aqardy">
264 <dc:Bounds x="580" y="80" width="100" height="80" />
266 <bpmndi:BPMNShape id="Activity_1thbmzc_di" bpmnElement="Activity_1thbmzc" isExpanded="true">
267 <dc:Bounds x="280" y="620" width="340" height="180" />
269 <bpmndi:BPMNEdge id="Flow_0yqo5xu_di" bpmnElement="Flow_0yqo5xu">
270 <di:waypoint x="500" y="710" />
271 <di:waypoint x="552" y="710" />
273 <bpmndi:BPMNEdge id="Flow_0qyhv7c_di" bpmnElement="Flow_0qyhv7c">
274 <di:waypoint x="356" y="710" />
275 <di:waypoint x="400" y="710" />
277 <bpmndi:BPMNShape id="Event_00dlrto_di" bpmnElement="Event_00dlrto">
278 <dc:Bounds x="552" y="692" width="36" height="36" />
280 <bpmndi:BPMNShape id="Event_0dfwcfl_di" bpmnElement="Event_0dfwcfl">
281 <dc:Bounds x="320" y="692" width="36" height="36" />
283 <bpmndi:BPMNShape id="Activity_025387k_di" bpmnElement="Activity_025387k">
284 <dc:Bounds x="400" y="670" width="100" height="80" />
287 </bpmndi:BPMNDiagram>