move network adapter to an external client task
[so.git] / bpmn / so-bpmn-building-blocks / src / main / resources / subprocess / BuildingBlock / CreateVfModuleBB.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: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="3.7.0">
3   <bpmn:process id="CreateVfModuleBB" name="CreateVfModuleBB" isExecutable="true">
4     <bpmn:startEvent id="CreateVfModuleBB_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>SequenceFlow_15hn8si</bpmn:outgoing>
10     </bpmn:serviceTask>
11     <bpmn:sequenceFlow id="SequenceFlow_1xr6chl" sourceRef="CreateVfModuleBB_Start" targetRef="QueryVnf" />
12     <bpmn:endEvent id="CreateVfModuleBB_End">
13       <bpmn:incoming>SequenceFlow_1vbwdaw</bpmn:incoming>
14     </bpmn:endEvent>
15     <bpmn:serviceTask id="CreateVfModule" name="Prepare Request" camunda:expression="${VnfAdapterCreateTasks.createVfModule(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
16       <bpmn:incoming>SequenceFlow_15hn8si</bpmn:incoming>
17       <bpmn:outgoing>SequenceFlow_16g4dz0</bpmn:outgoing>
18     </bpmn:serviceTask>
19     <bpmn:sequenceFlow id="SequenceFlow_15hn8si" sourceRef="QueryVfModule" targetRef="CreateVfModule" />
20     <bpmn:sequenceFlow id="SequenceFlow_1s4rpyp" sourceRef="QueryVnf" targetRef="QueryVfModule" />
21     <bpmn:serviceTask id="QueryVnf" name="&#10;SDNC&#10;Get&#10;(vnf)&#10;" camunda:expression="${SDNCQueryTasks.queryVnf(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
22       <bpmn:incoming>SequenceFlow_1xr6chl</bpmn:incoming>
23       <bpmn:outgoing>SequenceFlow_1s4rpyp</bpmn:outgoing>
24     </bpmn:serviceTask>
25     <bpmn:sequenceFlow id="SequenceFlow_16g4dz0" sourceRef="CreateVfModule" targetRef="VnfAdapter" />
26     <bpmn:sequenceFlow id="SequenceFlow_0ecr393" sourceRef="VnfAdapter" targetRef="CreateNetworkPolicies" />
27     <bpmn:callActivity id="VnfAdapter" name="Vnf Adapter" calledElement="VnfAdapter">
28       <bpmn:extensionElements>
29         <camunda:in source="gBuildingBlockExecution" target="gBuildingBlockExecution" />
30         <camunda:out source="WorkflowException" target="WorkflowException" />
31         <camunda:in source="VNFREST_Request" target="VNFREST_Request" />
32         <camunda:out source="heatStackId" target="heatStackId" />
33         <camunda:out source="contrailServiceInstanceFqdn" target="contrailServiceInstanceFqdn" />
34         <camunda:out source="oamManagementV4Address" target="oamManagementV4Address" />
35         <camunda:out source="oamManagementV6Address" target="oamManagementV6Address" />
36         <camunda:out source="contrailNetworkPolicyFqdnList" target="contrailNetworkPolicyFqdnList" />
37       </bpmn:extensionElements>
38       <bpmn:incoming>SequenceFlow_16g4dz0</bpmn:incoming>
39       <bpmn:outgoing>SequenceFlow_0ecr393</bpmn:outgoing>
40     </bpmn:callActivity>
41     <bpmn:serviceTask id="UpdateVfModuleStatus" name="&#10;AAI&#10;Update&#10;(vf module)&#10;" camunda:expression="${AAIUpdateTasks.updateOrchestrationStatusCreatedVfModule(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
42       <bpmn:incoming>SequenceFlow_0rds4rj</bpmn:incoming>
43       <bpmn:outgoing>SequenceFlow_1vbwdaw</bpmn:outgoing>
44     </bpmn:serviceTask>
45     <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;)))}">
46       <bpmn:incoming>SequenceFlow_15do1tu</bpmn:incoming>
47       <bpmn:outgoing>SequenceFlow_0rds4rj</bpmn:outgoing>
48     </bpmn:serviceTask>
49     <bpmn:subProcess id="SubProcess_1getwnf" name="Error Handling&#10;&#10;" triggeredByEvent="true">
50       <bpmn:startEvent id="StartEvent_1c8o652">
51         <bpmn:outgoing>SequenceFlow_0gcots6</bpmn:outgoing>
52         <bpmn:errorEventDefinition />
53       </bpmn:startEvent>
54       <bpmn:endEvent id="EndEvent_1emam1w">
55         <bpmn:incoming>SequenceFlow_0gcots6</bpmn:incoming>
56         <bpmn:terminateEventDefinition />
57       </bpmn:endEvent>
58       <bpmn:sequenceFlow id="SequenceFlow_0gcots6" sourceRef="StartEvent_1c8o652" targetRef="EndEvent_1emam1w" />
59     </bpmn:subProcess>
60     <bpmn:sequenceFlow id="SequenceFlow_0rds4rj" sourceRef="UpdateVfModuleHeatStackId" targetRef="UpdateVfModuleStatus" />
61     <bpmn:sequenceFlow id="SequenceFlow_1vbwdaw" sourceRef="UpdateVfModuleStatus" targetRef="CreateVfModuleBB_End" />
62     <bpmn:serviceTask id="CreateNetworkPolicies" name="AAI Create (network policies)" camunda:expression="${AAICreateTasks.createNetworkPolicies(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
63       <bpmn:incoming>SequenceFlow_0ecr393</bpmn:incoming>
64       <bpmn:outgoing>SequenceFlow_0xqhep5</bpmn:outgoing>
65     </bpmn:serviceTask>
66     <bpmn:sequenceFlow id="SequenceFlow_0xqhep5" sourceRef="CreateNetworkPolicies" targetRef="UpdateVnfIpv4OamAddress" />
67     <bpmn:serviceTask id="UpdateVnfIpv4OamAddress" name="AAI Update (VNF) " camunda:expression="${AAIUpdateTasks.updateIpv4OamAddressVnf(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
68       <bpmn:incoming>SequenceFlow_0xqhep5</bpmn:incoming>
69       <bpmn:outgoing>SequenceFlow_1yo6mvv</bpmn:outgoing>
70     </bpmn:serviceTask>
71     <bpmn:sequenceFlow id="SequenceFlow_1yo6mvv" sourceRef="UpdateVnfIpv4OamAddress" targetRef="UpdateVnfManagementV6Address" />
72     <bpmn:serviceTask id="UpdateVnfManagementV6Address" name="AAI Update (VNF)" camunda:expression="${AAIUpdateTasks.updateManagementV6AddressVnf(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
73       <bpmn:incoming>SequenceFlow_1yo6mvv</bpmn:incoming>
74       <bpmn:outgoing>SequenceFlow_1i03uy2</bpmn:outgoing>
75     </bpmn:serviceTask>
76     <bpmn:sequenceFlow id="SequenceFlow_1i03uy2" sourceRef="UpdateVnfManagementV6Address" targetRef="UpdateVfModuleContrailServiceInstanceFqdn" />
77     <bpmn:serviceTask id="UpdateVfModuleContrailServiceInstanceFqdn" name="AAI&#10;Update&#10;(vf module)&#10;" camunda:expression="${AAIUpdateTasks.updateContrailServiceInstanceFqdnVfModule(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
78       <bpmn:incoming>SequenceFlow_1i03uy2</bpmn:incoming>
79       <bpmn:outgoing>SequenceFlow_15do1tu</bpmn:outgoing>
80     </bpmn:serviceTask>
81     <bpmn:sequenceFlow id="SequenceFlow_15do1tu" sourceRef="UpdateVfModuleContrailServiceInstanceFqdn" targetRef="UpdateVfModuleHeatStackId" />
82   </bpmn:process>
83   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
84     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CreateVfModuleBB">
85       <bpmndi:BPMNShape id="StartEvent_0kxwniy_di" bpmnElement="CreateVfModuleBB_Start">
86         <dc:Bounds x="159" y="88" width="36" height="36" />
87         <bpmndi:BPMNLabel>
88           <dc:Bounds x="77" y="124" width="0" height="0" />
89         </bpmndi:BPMNLabel>
90       </bpmndi:BPMNShape>
91       <bpmndi:BPMNShape id="ServiceTask_13t22km_di" bpmnElement="QueryVfModule">
92         <dc:Bounds x="516" y="66" width="100" height="80" />
93       </bpmndi:BPMNShape>
94       <bpmndi:BPMNEdge id="SequenceFlow_1xr6chl_di" bpmnElement="SequenceFlow_1xr6chl">
95         <di:waypoint x="195" y="106" />
96         <di:waypoint x="316" y="106" />
97         <bpmndi:BPMNLabel>
98           <dc:Bounds x="156" y="91" width="0" height="0" />
99         </bpmndi:BPMNLabel>
100       </bpmndi:BPMNEdge>
101       <bpmndi:BPMNShape id="EndEvent_0qdq7wj_di" bpmnElement="CreateVfModuleBB_End">
102         <dc:Bounds x="1218" y="293" width="36" height="36" />
103         <bpmndi:BPMNLabel>
104           <dc:Bounds x="1136" y="333" width="0" height="0" />
105         </bpmndi:BPMNLabel>
106       </bpmndi:BPMNShape>
107       <bpmndi:BPMNShape id="ServiceTask_1dgenhy_di" bpmnElement="CreateVfModule">
108         <dc:Bounds x="712" y="66" width="100" height="80" />
109       </bpmndi:BPMNShape>
110       <bpmndi:BPMNEdge id="SequenceFlow_15hn8si_di" bpmnElement="SequenceFlow_15hn8si">
111         <di:waypoint x="616" y="106" />
112         <di:waypoint x="712" y="106" />
113         <bpmndi:BPMNLabel>
114           <dc:Bounds x="519" y="91" width="90" height="0" />
115         </bpmndi:BPMNLabel>
116       </bpmndi:BPMNEdge>
117       <bpmndi:BPMNEdge id="SequenceFlow_1s4rpyp_di" bpmnElement="SequenceFlow_1s4rpyp">
118         <di:waypoint x="416" y="106" />
119         <di:waypoint x="516" y="106" />
120         <bpmndi:BPMNLabel>
121           <dc:Bounds x="321" y="91" width="90" height="0" />
122         </bpmndi:BPMNLabel>
123       </bpmndi:BPMNEdge>
124       <bpmndi:BPMNShape id="ServiceTask_1frb5h2_di" bpmnElement="QueryVnf">
125         <dc:Bounds x="316" y="66" width="100" height="80" />
126       </bpmndi:BPMNShape>
127       <bpmndi:BPMNEdge id="SequenceFlow_16g4dz0_di" bpmnElement="SequenceFlow_16g4dz0">
128         <di:waypoint x="812" y="106" />
129         <di:waypoint x="890" y="106" />
130         <bpmndi:BPMNLabel>
131           <dc:Bounds x="751" y="91" width="0" height="0" />
132         </bpmndi:BPMNLabel>
133       </bpmndi:BPMNEdge>
134       <bpmndi:BPMNEdge id="SequenceFlow_0ecr393_di" bpmnElement="SequenceFlow_0ecr393">
135         <di:waypoint x="990" y="107" />
136         <di:waypoint x="1094" y="107" />
137         <di:waypoint x="1094" y="209" />
138         <di:waypoint x="173" y="209" />
139         <di:waypoint x="173" y="306" />
140         <di:waypoint x="242" y="306" />
141         <bpmndi:BPMNLabel>
142           <dc:Bounds x="534" y="194" width="0" height="0" />
143         </bpmndi:BPMNLabel>
144       </bpmndi:BPMNEdge>
145       <bpmndi:BPMNShape id="CallActivity_1i1pfzb_di" bpmnElement="VnfAdapter">
146         <dc:Bounds x="890" y="66" width="100" height="80" />
147       </bpmndi:BPMNShape>
148       <bpmndi:BPMNShape id="ServiceTask_0fpfn71_di" bpmnElement="UpdateVfModuleStatus">
149         <dc:Bounds x="1042" y="271" width="100" height="80" />
150       </bpmndi:BPMNShape>
151       <bpmndi:BPMNShape id="ServiceTask_04k1b85_di" bpmnElement="UpdateVfModuleHeatStackId">
152         <dc:Bounds x="877" y="271" width="100" height="80" />
153       </bpmndi:BPMNShape>
154       <bpmndi:BPMNShape id="SubProcess_1getwnf_di" bpmnElement="SubProcess_1getwnf" isExpanded="true">
155         <dc:Bounds x="236" y="439" width="231" height="135" />
156       </bpmndi:BPMNShape>
157       <bpmndi:BPMNShape id="StartEvent_1c8o652_di" bpmnElement="StartEvent_1c8o652">
158         <dc:Bounds x="275" y="497" width="36" height="36" />
159         <bpmndi:BPMNLabel>
160           <dc:Bounds x="148" y="533" width="0" height="0" />
161         </bpmndi:BPMNLabel>
162       </bpmndi:BPMNShape>
163       <bpmndi:BPMNShape id="EndEvent_1emam1w_di" bpmnElement="EndEvent_1emam1w">
164         <dc:Bounds x="412" y="497" width="36" height="36" />
165         <bpmndi:BPMNLabel>
166           <dc:Bounds x="285" y="533" width="0" height="0" />
167         </bpmndi:BPMNLabel>
168       </bpmndi:BPMNShape>
169       <bpmndi:BPMNEdge id="SequenceFlow_0gcots6_di" bpmnElement="SequenceFlow_0gcots6">
170         <di:waypoint x="311" y="515" />
171         <di:waypoint x="412" y="515" />
172         <bpmndi:BPMNLabel>
173           <dc:Bounds x="262" y="494" width="0" height="0" />
174         </bpmndi:BPMNLabel>
175       </bpmndi:BPMNEdge>
176       <bpmndi:BPMNEdge id="SequenceFlow_0rds4rj_di" bpmnElement="SequenceFlow_0rds4rj">
177         <di:waypoint x="977" y="311" />
178         <di:waypoint x="1042" y="311" />
179         <bpmndi:BPMNLabel>
180           <dc:Bounds x="910" y="296" width="0" height="0" />
181         </bpmndi:BPMNLabel>
182       </bpmndi:BPMNEdge>
183       <bpmndi:BPMNEdge id="SequenceFlow_1vbwdaw_di" bpmnElement="SequenceFlow_1vbwdaw">
184         <di:waypoint x="1142" y="311" />
185         <di:waypoint x="1183" y="311" />
186         <di:waypoint x="1183" y="311" />
187         <di:waypoint x="1218" y="311" />
188         <bpmndi:BPMNLabel>
189           <dc:Bounds x="1098" y="311" width="0" height="0" />
190         </bpmndi:BPMNLabel>
191       </bpmndi:BPMNEdge>
192       <bpmndi:BPMNShape id="ServiceTask_1v8zx4s_di" bpmnElement="CreateNetworkPolicies">
193         <dc:Bounds x="242" y="271" width="100" height="80" />
194       </bpmndi:BPMNShape>
195       <bpmndi:BPMNEdge id="SequenceFlow_0xqhep5_di" bpmnElement="SequenceFlow_0xqhep5">
196         <di:waypoint x="342" y="311" />
197         <di:waypoint x="395" y="311" />
198         <bpmndi:BPMNLabel>
199           <dc:Bounds x="269" y="296" width="0" height="0" />
200         </bpmndi:BPMNLabel>
201       </bpmndi:BPMNEdge>
202       <bpmndi:BPMNShape id="ServiceTask_015ayw5_di" bpmnElement="UpdateVnfIpv4OamAddress">
203         <dc:Bounds x="395" y="271" width="100" height="80" />
204       </bpmndi:BPMNShape>
205       <bpmndi:BPMNEdge id="SequenceFlow_1yo6mvv_di" bpmnElement="SequenceFlow_1yo6mvv">
206         <di:waypoint x="495" y="311" />
207         <di:waypoint x="564" y="311" />
208         <bpmndi:BPMNLabel>
209           <dc:Bounds x="430" y="296" width="0" height="0" />
210         </bpmndi:BPMNLabel>
211       </bpmndi:BPMNEdge>
212       <bpmndi:BPMNShape id="ServiceTask_0mlfsc9_di" bpmnElement="UpdateVnfManagementV6Address">
213         <dc:Bounds x="564" y="271" width="100" height="80" />
214       </bpmndi:BPMNShape>
215       <bpmndi:BPMNEdge id="SequenceFlow_1i03uy2_di" bpmnElement="SequenceFlow_1i03uy2">
216         <di:waypoint x="664" y="311" />
217         <di:waypoint x="712" y="311" />
218         <bpmndi:BPMNLabel>
219           <dc:Bounds x="588" y="296" width="0" height="0" />
220         </bpmndi:BPMNLabel>
221       </bpmndi:BPMNEdge>
222       <bpmndi:BPMNShape id="ServiceTask_0wctnhw_di" bpmnElement="UpdateVfModuleContrailServiceInstanceFqdn">
223         <dc:Bounds x="712" y="271" width="100" height="80" />
224       </bpmndi:BPMNShape>
225       <bpmndi:BPMNEdge id="SequenceFlow_15do1tu_di" bpmnElement="SequenceFlow_15do1tu">
226         <di:waypoint x="812" y="311" />
227         <di:waypoint x="877" y="311" />
228         <bpmndi:BPMNLabel>
229           <dc:Bounds x="745" y="286" width="0" height="0" />
230         </bpmndi:BPMNLabel>
231       </bpmndi:BPMNEdge>
232     </bpmndi:BPMNPlane>
233   </bpmndi:BPMNDiagram>
234 </bpmn:definitions>