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.0.0">
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_1sj2wbe</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="UpdateCnfAai" />
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" />
111 <bpmn:callActivity id="UpdateCnfAai" name="Update Cnf Data in AAI" calledElement="UpdateCnfAai">
112 <bpmn:extensionElements>
113 <camunda:in source="gBuildingBlockExecution" target="gBuildingBlockExecution" />
114 <camunda:out source="WorkflowException" target="WorkflowException" />
115 <camunda:in source="heatStackId" target="heatStackId" />
116 <camunda:out source="heatStackId" target="heatStackId" />
117 </bpmn:extensionElements>
118 <bpmn:incoming>Flow_1ktykz6</bpmn:incoming>
119 <bpmn:outgoing>Flow_1sj2wbe</bpmn:outgoing>
121 <bpmn:sequenceFlow id="Flow_1sj2wbe" sourceRef="UpdateCnfAai" targetRef="aaiThrow" />
123 <bpmn:error id="Error_0jjnve8" name="Error_3k24na6" errorCode="AAIInventoryFailure" />
124 <bpmn:escalation id="Escalation_130je8j" name="audit" escalationCode="audit1" />
125 <bpmn:error id="Error_1le3oui" name="AAIInventoryFailure" errorCode="AAIInventoryFailure" />
126 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
127 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DeleteVfModuleBB">
128 <bpmndi:BPMNEdge id="Flow_1c15ua4_di" bpmnElement="Flow_1c15ua4">
129 <di:waypoint x="305" y="254" />
130 <di:waypoint x="400" y="254" />
132 <dc:Bounds x="345" y="236" width="15" height="14" />
135 <bpmndi:BPMNEdge id="Flow_069drgn_di" bpmnElement="Flow_069drgn">
136 <di:waypoint x="195" y="254" />
137 <di:waypoint x="255" y="254" />
139 <bpmndi:BPMNEdge id="Flow_0yz0t7z_di" bpmnElement="Flow_0yz0t7z">
140 <di:waypoint x="500" y="254" />
141 <di:waypoint x="580" y="254" />
143 <bpmndi:BPMNEdge id="Flow_10r76pp_di" bpmnElement="Flow_10r76pp">
144 <di:waypoint x="280" y="229" />
145 <di:waypoint x="280" y="120" />
146 <di:waypoint x="400" y="120" />
148 <dc:Bounds x="256" y="162" width="18" height="14" />
151 <bpmndi:BPMNEdge id="Flow_1ktykz6_di" bpmnElement="Flow_1ktykz6">
152 <di:waypoint x="500" y="120" />
153 <di:waypoint x="740" y="120" />
155 <bpmndi:BPMNEdge id="Flow_0hlvlw2_di" bpmnElement="Flow_0hlvlw2">
156 <di:waypoint x="680" y="254" />
157 <di:waypoint x="760" y="254" />
159 <bpmndi:BPMNEdge id="Flow_0plbl7p_di" bpmnElement="Flow_0plbl7p">
160 <di:waypoint x="1010" y="254" />
161 <di:waypoint x="1062" y="254" />
163 <bpmndi:BPMNEdge id="Flow_0n2pqrr_di" bpmnElement="Flow_0n2pqrr">
164 <di:waypoint x="195" y="478" />
165 <di:waypoint x="270" y="478" />
167 <bpmndi:BPMNEdge id="SequenceFlow_1i9ft2r_di" bpmnElement="SequenceFlow_1i9ft2r">
168 <di:waypoint x="860" y="254" />
169 <di:waypoint x="910" y="254" />
171 <bpmndi:BPMNEdge id="SequenceFlow_0yuz21z_di" bpmnElement="SequenceFlow_0yuz21z">
172 <di:waypoint x="770" y="478" />
173 <di:waypoint x="800" y="478" />
175 <dc:Bounds x="722" y="493" width="90" height="0" />
178 <bpmndi:BPMNEdge id="SequenceFlow_0khqfnc_di" bpmnElement="SequenceFlow_0khqfnc">
179 <di:waypoint x="640" y="478" />
180 <di:waypoint x="670" y="478" />
182 <dc:Bounds x="598" y="493" width="90" height="0" />
185 <bpmndi:BPMNEdge id="SequenceFlow_0jtem3b_di" bpmnElement="SequenceFlow_0jtem3b">
186 <di:waypoint x="500" y="478" />
187 <di:waypoint x="540" y="478" />
189 <dc:Bounds x="473" y="493" width="90" height="0" />
192 <bpmndi:BPMNEdge id="SequenceFlow_0xyu3pk_di" bpmnElement="SequenceFlow_0xyu3pk">
193 <di:waypoint x="370" y="478" />
194 <di:waypoint x="400" y="478" />
196 <dc:Bounds x="345" y="493" width="90" height="0" />
199 <bpmndi:BPMNEdge id="SequenceFlow_09l7pcg_di" bpmnElement="SequenceFlow_09l7pcg">
200 <di:waypoint x="1030" y="478" />
201 <di:waypoint x="1142" y="478" />
203 <dc:Bounds x="1092.5" y="493" width="90" height="0" />
206 <bpmndi:BPMNEdge id="SequenceFlow_01vfwtp_di" bpmnElement="SequenceFlow_01vfwtp">
207 <di:waypoint x="900" y="478" />
208 <di:waypoint x="930" y="478" />
210 <dc:Bounds x="848" y="493" width="90" height="0" />
213 <bpmndi:BPMNEdge id="Flow_1sj2wbe_di" bpmnElement="Flow_1sj2wbe">
214 <di:waypoint x="840" y="120" />
215 <di:waypoint x="1080" y="120" />
216 <di:waypoint x="1080" y="236" />
218 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="DeleteVfModuleBB_Start">
219 <dc:Bounds x="159" y="236" width="36" height="36" />
221 <dc:Bounds x="132" y="302" width="90" height="12" />
224 <bpmndi:BPMNShape id="ServiceTask_16798zf_di" bpmnElement="DeleteVfModuleVnfAdapter">
225 <dc:Bounds x="400" y="214" width="100" height="80" />
227 <bpmndi:BPMNShape id="ServiceTask_0pbhsub_di" bpmnElement="UpdateVfModuleDeleteStatus">
228 <dc:Bounds x="930" y="438" width="100" height="80" />
230 <bpmndi:BPMNShape id="EndEvent_1rn6yvh_di" bpmnElement="DeleteVfModuleBB_End">
231 <dc:Bounds x="1142" y="460" width="36" height="36" />
233 <dc:Bounds x="1241" y="530" width="90" height="0" />
236 <bpmndi:BPMNShape id="CallActivity_0whogn3_di" bpmnElement="VnfAdapter">
237 <dc:Bounds x="580" y="214" width="100" height="80" />
239 <bpmndi:BPMNShape id="ServiceTask_0vlgqod_di" bpmnElement="UpdateVfModuleHeatStackId">
240 <dc:Bounds x="800" y="438" width="100" height="80" />
242 <bpmndi:BPMNShape id="ServiceTask_0tty0ac_di" bpmnElement="DeleteNetworkPolicies">
243 <dc:Bounds x="270" y="438" width="100" height="80" />
245 <bpmndi:BPMNShape id="ServiceTask_0lrrd16_di" bpmnElement="UpdateVnfManagementV6Address">
246 <dc:Bounds x="540" y="438" width="100" height="80" />
248 <bpmndi:BPMNShape id="ServiceTask_0w9805b_di" bpmnElement="UpdateVnfIpv4OamAddress">
249 <dc:Bounds x="400" y="438" width="100" height="80" />
251 <bpmndi:BPMNShape id="ServiceTask_0v8naz9_di" bpmnElement="UpdateVfModuleContrailServiceInstanceFqdn">
252 <dc:Bounds x="670" y="438" width="100" height="80" />
254 <bpmndi:BPMNShape id="IntermediateThrowEvent_1sftyjz_di" bpmnElement="aaiThrow">
255 <dc:Bounds x="1062" y="236" width="36" height="36" />
257 <dc:Bounds x="1051" y="282" width="57" height="14" />
260 <bpmndi:BPMNShape id="IntermediateCatchEvent_13y483m_di" bpmnElement="aaiCatch">
261 <dc:Bounds x="159" y="460" width="36" height="36" />
263 <dc:Bounds x="149" y="500" width="57" height="14" />
266 <bpmndi:BPMNShape id="ServiceTask_0itw3by_di" bpmnElement="ServiceTask_0itw3by">
267 <dc:Bounds x="910" y="214" width="100" height="80" />
269 <bpmndi:BPMNShape id="ServiceTask_08ulmzc_di" bpmnElement="ServiceTask_08ulmzc">
270 <dc:Bounds x="760" y="214" width="100" height="80" />
272 <bpmndi:BPMNShape id="Activity_1wkyyas_di" bpmnElement="UpdateCnfAai">
273 <dc:Bounds x="740" y="80" width="100" height="80" />
275 <bpmndi:BPMNShape id="Activity_1thbmzc_di" bpmnElement="Activity_1thbmzc" isExpanded="true">
276 <dc:Bounds x="280" y="620" width="340" height="180" />
278 <bpmndi:BPMNEdge id="Flow_0yqo5xu_di" bpmnElement="Flow_0yqo5xu">
279 <di:waypoint x="500" y="710" />
280 <di:waypoint x="552" y="710" />
282 <bpmndi:BPMNEdge id="Flow_0qyhv7c_di" bpmnElement="Flow_0qyhv7c">
283 <di:waypoint x="356" y="710" />
284 <di:waypoint x="400" y="710" />
286 <bpmndi:BPMNShape id="Event_00dlrto_di" bpmnElement="Event_00dlrto">
287 <dc:Bounds x="552" y="692" width="36" height="36" />
289 <bpmndi:BPMNShape id="Event_0dfwcfl_di" bpmnElement="Event_0dfwcfl">
290 <dc:Bounds x="320" y="692" width="36" height="36" />
292 <bpmndi:BPMNShape id="Activity_025387k_di" bpmnElement="Activity_025387k">
293 <dc:Bounds x="400" y="670" width="100" height="80" />
295 <bpmndi:BPMNShape id="Activity_1aqardy_di" bpmnElement="Activity_1aqardy">
296 <dc:Bounds x="400" y="80" width="100" height="80" />
298 <bpmndi:BPMNShape id="Gateway_0s4azdf_di" bpmnElement="CheckIfIsHelm" isMarkerVisible="true">
299 <dc:Bounds x="255" y="229" width="50" height="50" />
301 <dc:Bounds x="240" y="289" width="79" height="14" />
305 </bpmndi:BPMNDiagram>