Code & Workflow Enhancements for CNF - Upgrade
[so.git] / bpmn / so-bpmn-building-blocks / src / main / resources / subprocess / BuildingBlock / UpgradeVfModuleBB.bpmn
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:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1jxlg2g" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.12.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.15.0">
3   <bpmn:process id="UpgradeVfModuleBB" name="UpgradeVfModuleBB" isExecutable="true">
4     <bpmn:startEvent id="UpgradeVfModuleBB_Start">
5       <bpmn:outgoing>SequenceFlow_1xr6chl</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:serviceTask id="QueryVfModule" name="&#10;SDNC&#10;Get&#10;(vf module)&#10;" camunda:expression="${SDNCQueryTasks.queryVfModule(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
8       <bpmn:incoming>SequenceFlow_1s4rpyp</bpmn:incoming>
9       <bpmn:outgoing>Flow_0gbxjjk</bpmn:outgoing>
10     </bpmn:serviceTask>
11     <bpmn:endEvent id="UpgradeVfModuleBB_End">
12       <bpmn:incoming>SequenceFlow_1vbwdaw</bpmn:incoming>
13     </bpmn:endEvent>
14     <bpmn:serviceTask id="QueryVnf" name="&#10;SDNC&#10;Get&#10;(vnf)&#10;" camunda:expression="${SDNCQueryTasks.queryVnf(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
15       <bpmn:incoming>SequenceFlow_1xr6chl</bpmn:incoming>
16       <bpmn:outgoing>SequenceFlow_1s4rpyp</bpmn:outgoing>
17     </bpmn:serviceTask>
18     <bpmn:serviceTask id="UpdateVfModuleStatus" name="&#10;AAI&#10;Update&#10;(vf module) - Pending Activation&#10;" camunda:expression="${AAIUpdateTasks.updateOrchestrationStatusPendingActivationVfModule(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
19       <bpmn:incoming>SequenceFlow_0rds4rj</bpmn:incoming>
20       <bpmn:outgoing>SequenceFlow_1vbwdaw</bpmn:outgoing>
21     </bpmn:serviceTask>
22     <bpmn:serviceTask id="UpdateVfModuleHeatStackId" name="&#10;AAI&#10;Update&#10;(vf module)&#10;" camunda:expression="${AAIUpdateTasks.updateHeatStackIdVfModule(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
23       <bpmn:incoming>SequenceFlow_15do1tu</bpmn:incoming>
24       <bpmn:outgoing>SequenceFlow_0rds4rj</bpmn:outgoing>
25     </bpmn:serviceTask>
26     <bpmn:serviceTask id="CreateNetworkPolicies" name="AAI Create (network policies)" camunda:expression="${AAICreateTasks.createNetworkPolicies(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
27       <bpmn:incoming>Flow_1c9ox62</bpmn:incoming>
28       <bpmn:outgoing>SequenceFlow_0xqhep5</bpmn:outgoing>
29     </bpmn:serviceTask>
30     <bpmn:serviceTask id="UpdateVnfIpv4OamAddress" name="AAI Update (VNF) " camunda:expression="${AAIUpdateTasks.updateIpv4OamAddressVnf(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
31       <bpmn:incoming>SequenceFlow_0xqhep5</bpmn:incoming>
32       <bpmn:outgoing>SequenceFlow_1yo6mvv</bpmn:outgoing>
33     </bpmn:serviceTask>
34     <bpmn:serviceTask id="UpdateVnfManagementV6Address" name="AAI Update (VNF)" camunda:expression="${AAIUpdateTasks.updateManagementV6AddressVnf(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
35       <bpmn:incoming>SequenceFlow_1yo6mvv</bpmn:incoming>
36       <bpmn:outgoing>SequenceFlow_1i03uy2</bpmn:outgoing>
37     </bpmn:serviceTask>
38     <bpmn:serviceTask id="UpdateVfModuleContrailServiceInstanceFqdn" name="AAI&#10;Update&#10;(vf module)&#10;" camunda:expression="${AAIUpdateTasks.updateContrailServiceInstanceFqdnVfModule(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
39       <bpmn:incoming>SequenceFlow_1i03uy2</bpmn:incoming>
40       <bpmn:outgoing>SequenceFlow_15do1tu</bpmn:outgoing>
41     </bpmn:serviceTask>
42     <bpmn:serviceTask id="CnfAdapter" name="Cnf Adapter" camunda:expression="${CnfAdapterUpgradeTasks.upgradeInstance(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
43       <bpmn:incoming>Flow_0gbxjjk</bpmn:incoming>
44       <bpmn:outgoing>Flow_1il4743</bpmn:outgoing>
45     </bpmn:serviceTask>
46     <bpmn:subProcess id="Activity_10eqhmz" name="Inventory Error Handling" triggeredByEvent="true">
47       <bpmn:endEvent id="Event_108oetk">
48         <bpmn:incoming>Flow_03q6ty9</bpmn:incoming>
49       </bpmn:endEvent>
50       <bpmn:serviceTask id="Activity_1p8hxyt" name="Process Error" camunda:expression="${ExceptionBuilder.processInventoryException(execution)}">
51         <bpmn:incoming>Flow_1sqy91r</bpmn:incoming>
52         <bpmn:outgoing>Flow_03q6ty9</bpmn:outgoing>
53       </bpmn:serviceTask>
54       <bpmn:sequenceFlow id="Flow_03q6ty9" sourceRef="Activity_1p8hxyt" targetRef="Event_108oetk" />
55       <bpmn:sequenceFlow id="Flow_1sqy91r" sourceRef="Event_1pengt4" targetRef="Activity_1p8hxyt" />
56       <bpmn:startEvent id="Event_1pengt4">
57         <bpmn:outgoing>Flow_1sqy91r</bpmn:outgoing>
58         <bpmn:errorEventDefinition id="ErrorEventDefinition_0sq3chy" errorRef="Error_0t7oivz" />
59       </bpmn:startEvent>
60     </bpmn:subProcess>
61     <bpmn:callActivity id="UpdateCnfAai" name="Update Cnf Data in AAI" calledElement="UpdateCnfAai">
62       <bpmn:extensionElements>
63         <camunda:in source="gBuildingBlockExecution" target="gBuildingBlockExecution" />
64         <camunda:out source="WorkflowException" target="WorkflowException" />
65         <camunda:in source="heatStackId" target="heatStackId" />
66         <camunda:out source="heatStackId" target="heatStackId" />
67       </bpmn:extensionElements>
68       <bpmn:incoming>Flow_1il4743</bpmn:incoming>
69       <bpmn:outgoing>Flow_0piytnn</bpmn:outgoing>
70     </bpmn:callActivity>
71     <bpmn:sequenceFlow id="SequenceFlow_1xr6chl" sourceRef="UpgradeVfModuleBB_Start" targetRef="QueryVnf" />
72     <bpmn:sequenceFlow id="SequenceFlow_1s4rpyp" sourceRef="QueryVnf" targetRef="QueryVfModule" />
73     <bpmn:sequenceFlow id="SequenceFlow_1vbwdaw" sourceRef="UpdateVfModuleStatus" targetRef="UpgradeVfModuleBB_End" />
74     <bpmn:sequenceFlow id="SequenceFlow_0rds4rj" sourceRef="UpdateVfModuleHeatStackId" targetRef="UpdateVfModuleStatus" />
75     <bpmn:sequenceFlow id="SequenceFlow_15do1tu" sourceRef="UpdateVfModuleContrailServiceInstanceFqdn" targetRef="UpdateVfModuleHeatStackId" />
76     <bpmn:sequenceFlow id="SequenceFlow_0xqhep5" sourceRef="CreateNetworkPolicies" targetRef="UpdateVnfIpv4OamAddress" />
77     <bpmn:sequenceFlow id="SequenceFlow_1yo6mvv" sourceRef="UpdateVnfIpv4OamAddress" targetRef="UpdateVnfManagementV6Address" />
78     <bpmn:sequenceFlow id="SequenceFlow_1i03uy2" sourceRef="UpdateVnfManagementV6Address" targetRef="UpdateVfModuleContrailServiceInstanceFqdn" />
79     <bpmn:sequenceFlow id="Flow_1il4743" sourceRef="CnfAdapter" targetRef="UpdateCnfAai" />
80     <bpmn:intermediateThrowEvent id="aaiThrow" name="Update AAI">
81       <bpmn:incoming>Flow_0piytnn</bpmn:incoming>
82       <bpmn:linkEventDefinition id="LinkEventDefinition_1c2sbij" name="AAI" />
83     </bpmn:intermediateThrowEvent>
84     <bpmn:sequenceFlow id="Flow_0gbxjjk" sourceRef="QueryVfModule" targetRef="CnfAdapter" />
85     <bpmn:sequenceFlow id="Flow_0piytnn" sourceRef="UpdateCnfAai" targetRef="aaiThrow" />
86     <bpmn:intermediateCatchEvent id="aaiCatch" name="Update AAI">
87       <bpmn:outgoing>Flow_1c9ox62</bpmn:outgoing>
88       <bpmn:linkEventDefinition id="LinkEventDefinition_0dycelb" name="AAI" />
89     </bpmn:intermediateCatchEvent>
90     <bpmn:sequenceFlow id="Flow_1c9ox62" sourceRef="aaiCatch" targetRef="CreateNetworkPolicies" />
91   </bpmn:process>
92   <bpmn:error id="Error_0t7oivz" name="AAIInventoryFailure" errorCode="AAIInventoryFailure" />
93   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
94     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="UpgradeVfModuleBB">
95       <bpmndi:BPMNEdge id="Flow_1c9ox62_di" bpmnElement="Flow_1c9ox62">
96         <di:waypoint x="208" y="372" />
97         <di:waypoint x="300" y="372" />
98       </bpmndi:BPMNEdge>
99       <bpmndi:BPMNEdge id="Flow_0piytnn_di" bpmnElement="Flow_0piytnn">
100         <di:waypoint x="970" y="120" />
101         <di:waypoint x="1062" y="120" />
102       </bpmndi:BPMNEdge>
103       <bpmndi:BPMNEdge id="Flow_0gbxjjk_di" bpmnElement="Flow_0gbxjjk">
104         <di:waypoint x="570" y="120" />
105         <di:waypoint x="680" y="120" />
106       </bpmndi:BPMNEdge>
107       <bpmndi:BPMNEdge id="Flow_1il4743_di" bpmnElement="Flow_1il4743">
108         <di:waypoint x="780" y="120" />
109         <di:waypoint x="870" y="120" />
110       </bpmndi:BPMNEdge>
111       <bpmndi:BPMNEdge id="SequenceFlow_1i03uy2_di" bpmnElement="SequenceFlow_1i03uy2">
112         <di:waypoint x="722" y="372" />
113         <di:waypoint x="770" y="372" />
114       </bpmndi:BPMNEdge>
115       <bpmndi:BPMNEdge id="SequenceFlow_1yo6mvv_di" bpmnElement="SequenceFlow_1yo6mvv">
116         <di:waypoint x="553" y="372" />
117         <di:waypoint x="622" y="372" />
118       </bpmndi:BPMNEdge>
119       <bpmndi:BPMNEdge id="SequenceFlow_0xqhep5_di" bpmnElement="SequenceFlow_0xqhep5">
120         <di:waypoint x="400" y="372" />
121         <di:waypoint x="453" y="372" />
122       </bpmndi:BPMNEdge>
123       <bpmndi:BPMNEdge id="SequenceFlow_15do1tu_di" bpmnElement="SequenceFlow_15do1tu">
124         <di:waypoint x="870" y="372" />
125         <di:waypoint x="935" y="372" />
126       </bpmndi:BPMNEdge>
127       <bpmndi:BPMNEdge id="SequenceFlow_0rds4rj_di" bpmnElement="SequenceFlow_0rds4rj">
128         <di:waypoint x="1035" y="372" />
129         <di:waypoint x="1100" y="372" />
130       </bpmndi:BPMNEdge>
131       <bpmndi:BPMNEdge id="SequenceFlow_1vbwdaw_di" bpmnElement="SequenceFlow_1vbwdaw">
132         <di:waypoint x="1200" y="372" />
133         <di:waypoint x="1241" y="372" />
134         <di:waypoint x="1241" y="372" />
135         <di:waypoint x="1276" y="372" />
136       </bpmndi:BPMNEdge>
137       <bpmndi:BPMNEdge id="SequenceFlow_1s4rpyp_di" bpmnElement="SequenceFlow_1s4rpyp">
138         <di:waypoint x="389" y="120" />
139         <di:waypoint x="470" y="120" />
140       </bpmndi:BPMNEdge>
141       <bpmndi:BPMNEdge id="SequenceFlow_1xr6chl_di" bpmnElement="SequenceFlow_1xr6chl">
142         <di:waypoint x="188" y="120" />
143         <di:waypoint x="289" y="120" />
144       </bpmndi:BPMNEdge>
145       <bpmndi:BPMNShape id="CreateVfModuleBB_Start_di" bpmnElement="UpgradeVfModuleBB_Start">
146         <dc:Bounds x="152" y="102" width="36" height="36" />
147       </bpmndi:BPMNShape>
148       <bpmndi:BPMNShape id="QueryVfModule_di" bpmnElement="QueryVfModule">
149         <dc:Bounds x="470" y="80" width="100" height="80" />
150       </bpmndi:BPMNShape>
151       <bpmndi:BPMNShape id="CreateVfModuleBB_End_di" bpmnElement="UpgradeVfModuleBB_End">
152         <dc:Bounds x="1276" y="354" width="36" height="36" />
153       </bpmndi:BPMNShape>
154       <bpmndi:BPMNShape id="QueryVnf_di" bpmnElement="QueryVnf">
155         <dc:Bounds x="289" y="80" width="100" height="80" />
156       </bpmndi:BPMNShape>
157       <bpmndi:BPMNShape id="UpdateVfModuleStatus_di" bpmnElement="UpdateVfModuleStatus">
158         <dc:Bounds x="1100" y="332" width="100" height="80" />
159       </bpmndi:BPMNShape>
160       <bpmndi:BPMNShape id="UpdateVfModuleHeatStackId_di" bpmnElement="UpdateVfModuleHeatStackId">
161         <dc:Bounds x="935" y="332" width="100" height="80" />
162       </bpmndi:BPMNShape>
163       <bpmndi:BPMNShape id="CreateNetworkPolicies_di" bpmnElement="CreateNetworkPolicies">
164         <dc:Bounds x="300" y="332" width="100" height="80" />
165       </bpmndi:BPMNShape>
166       <bpmndi:BPMNShape id="UpdateVnfIpv4OamAddress_di" bpmnElement="UpdateVnfIpv4OamAddress">
167         <dc:Bounds x="453" y="332" width="100" height="80" />
168       </bpmndi:BPMNShape>
169       <bpmndi:BPMNShape id="UpdateVnfManagementV6Address_di" bpmnElement="UpdateVnfManagementV6Address">
170         <dc:Bounds x="622" y="332" width="100" height="80" />
171       </bpmndi:BPMNShape>
172       <bpmndi:BPMNShape id="UpdateVfModuleContrailServiceInstanceFqdn_di" bpmnElement="UpdateVfModuleContrailServiceInstanceFqdn">
173         <dc:Bounds x="770" y="332" width="100" height="80" />
174       </bpmndi:BPMNShape>
175       <bpmndi:BPMNShape id="CnfAdapter_di" bpmnElement="CnfAdapter">
176         <dc:Bounds x="680" y="80" width="100" height="80" />
177       </bpmndi:BPMNShape>
178       <bpmndi:BPMNShape id="Activity_10eqhmz_di" bpmnElement="Activity_10eqhmz" isExpanded="true">
179         <dc:Bounds x="216" y="494" width="340" height="180" />
180       </bpmndi:BPMNShape>
181       <bpmndi:BPMNEdge id="Flow_1sqy91r_di" bpmnElement="Flow_1sqy91r">
182         <di:waypoint x="292" y="584" />
183         <di:waypoint x="336" y="584" />
184       </bpmndi:BPMNEdge>
185       <bpmndi:BPMNEdge id="Flow_03q6ty9_di" bpmnElement="Flow_03q6ty9">
186         <di:waypoint x="436" y="584" />
187         <di:waypoint x="488" y="584" />
188       </bpmndi:BPMNEdge>
189       <bpmndi:BPMNShape id="Event_108oetk_di" bpmnElement="Event_108oetk">
190         <dc:Bounds x="488" y="566" width="36" height="36" />
191       </bpmndi:BPMNShape>
192       <bpmndi:BPMNShape id="Activity_1p8hxyt_di" bpmnElement="Activity_1p8hxyt">
193         <dc:Bounds x="336" y="544" width="100" height="80" />
194       </bpmndi:BPMNShape>
195       <bpmndi:BPMNShape id="Event_13ssqoq_di" bpmnElement="Event_1pengt4">
196         <dc:Bounds x="256" y="566" width="36" height="36" />
197       </bpmndi:BPMNShape>
198       <bpmndi:BPMNShape id="UpdateCnfAai_di" bpmnElement="UpdateCnfAai">
199         <dc:Bounds x="870" y="80" width="100" height="80" />
200       </bpmndi:BPMNShape>
201       <bpmndi:BPMNShape id="aaiThrow_di" bpmnElement="aaiThrow">
202         <dc:Bounds x="1062" y="102" width="36" height="36" />
203         <bpmndi:BPMNLabel>
204           <dc:Bounds x="1051" y="148" width="57" height="14" />
205         </bpmndi:BPMNLabel>
206       </bpmndi:BPMNShape>
207       <bpmndi:BPMNShape id="aaiCatch_di" bpmnElement="aaiCatch">
208         <dc:Bounds x="172" y="354" width="36" height="36" />
209         <bpmndi:BPMNLabel>
210           <dc:Bounds x="162" y="394" width="57" height="14" />
211         </bpmndi:BPMNLabel>
212       </bpmndi:BPMNShape>
213     </bpmndi:BPMNPlane>
214   </bpmndi:BPMNDiagram>
215 </bpmn:definitions>