1 <?xml version="1.0" encoding="UTF-8"?>
2 <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" id="_MagIIMOUEeW8asg-vCEgWQ" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="Camunda Modeler" exporterVersion="3.7.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3 <bpmn2:process id="CreateNetworkBB" name="CreateNetworkBB" isExecutable="true">
4 <bpmn2:startEvent id="createNetwork_startEvent">
5 <bpmn2:outgoing>SequenceFlow_1maepy7</bpmn2:outgoing>
7 <bpmn2:endEvent id="createNetwork_EndEvent">
8 <bpmn2:incoming>SequenceFlow_0sissul</bpmn2:incoming>
10 <bpmn2:serviceTask id="QueryVpnBinding_ServiceTask" name=" AAI Query (vpn binding) " camunda:expression="${AAIQueryTasks.queryNetworkVpnBinding(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
11 <bpmn2:incoming>SequenceFlow_1oc7wcr</bpmn2:incoming>
12 <bpmn2:outgoing>SequenceFlow_0n42zi5</bpmn2:outgoing>
14 <bpmn2:serviceTask id="Create_Network_ServiceTask" name="Prepare Request" camunda:expression="${NetworkAdapterCreateTasks.createNetwork(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
15 <bpmn2:incoming>SequenceFlow_1eqfh23</bpmn2:incoming>
16 <bpmn2:outgoing>SequenceFlow_1fm99t6</bpmn2:outgoing>
18 <bpmn2:serviceTask id="QueryNetworkPolicy_ServiceTask" name=" AAI Query (net policy) " camunda:expression="${AAIQueryTasks.queryNetworkPolicy(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
19 <bpmn2:incoming>SequenceFlow_0n42zi5</bpmn2:incoming>
20 <bpmn2:outgoing>SequenceFlow_1yy4aik</bpmn2:outgoing>
22 <bpmn2:serviceTask id="QueryNetworkTableRef_ServiceTask" name=" AAI Query (net table) " camunda:expression="${AAIQueryTasks.queryNetworkTableRef(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
23 <bpmn2:incoming>SequenceFlow_1yy4aik</bpmn2:incoming>
24 <bpmn2:outgoing>SequenceFlow_1h9kkhb</bpmn2:outgoing>
26 <bpmn2:serviceTask id="Update_Network_AAI_ServiceTask" name=" AAI Update (network) " camunda:expression="${AAIUpdateTasks.updateNetworkCreated(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
27 <bpmn2:incoming>SequenceFlow_16152be</bpmn2:incoming>
28 <bpmn2:outgoing>SequenceFlow_0sissul</bpmn2:outgoing>
30 <bpmn2:sequenceFlow id="SequenceFlow_0n42zi5" sourceRef="QueryVpnBinding_ServiceTask" targetRef="QueryNetworkPolicy_ServiceTask" />
31 <bpmn2:sequenceFlow id="SequenceFlow_1yy4aik" sourceRef="QueryNetworkPolicy_ServiceTask" targetRef="QueryNetworkTableRef_ServiceTask" />
32 <bpmn2:sequenceFlow id="SequenceFlow_0sissul" sourceRef="Update_Network_AAI_ServiceTask" targetRef="createNetwork_EndEvent" />
33 <bpmn2:sequenceFlow id="SequenceFlow_1maepy7" sourceRef="createNetwork_startEvent" targetRef="ServiceTask_get_cloud_region" />
34 <bpmn2:intermediateThrowEvent id="ThrowEvent_ToCollectAAIData" name="Query AAI">
35 <bpmn2:incoming>SequenceFlow_03ebe6c</bpmn2:incoming>
36 <bpmn2:linkEventDefinition name="CatchEvent_Collect_AAI_Data" />
37 </bpmn2:intermediateThrowEvent>
38 <bpmn2:intermediateCatchEvent id="CatchEvent_Collect_AAI_Data" name="Query AAI">
39 <bpmn2:outgoing>SequenceFlow_1oc7wcr</bpmn2:outgoing>
40 <bpmn2:linkEventDefinition name="CatchEvent_Collect_AAI_Data" />
41 </bpmn2:intermediateCatchEvent>
42 <bpmn2:intermediateCatchEvent id="CatchEvent_Create_Network" name="Create Network">
43 <bpmn2:outgoing>SequenceFlow_1eqfh23</bpmn2:outgoing>
44 <bpmn2:linkEventDefinition name="CatchEvent_Create_Network" />
45 </bpmn2:intermediateCatchEvent>
46 <bpmn2:intermediateThrowEvent id="ThrowEvent_ToCreateNetwork" name="Create Network">
47 <bpmn2:incoming>SequenceFlow_0y0w60u</bpmn2:incoming>
48 <bpmn2:linkEventDefinition name="CatchEvent_Create_Network" />
49 </bpmn2:intermediateThrowEvent>
50 <bpmn2:sequenceFlow id="SequenceFlow_1h9kkhb" sourceRef="QueryNetworkTableRef_ServiceTask" targetRef="QueryNetworkSubnet_ServiceTask" />
51 <bpmn2:sequenceFlow id="SequenceFlow_1oc7wcr" sourceRef="CatchEvent_Collect_AAI_Data" targetRef="QueryVpnBinding_ServiceTask" />
52 <bpmn2:sequenceFlow id="SequenceFlow_1eqfh23" sourceRef="CatchEvent_Create_Network" targetRef="Create_Network_ServiceTask" />
53 <bpmn2:serviceTask id="ServiceTask_get_cloud_region" name="Process cloud region by version " camunda:expression="${AssignNetworkBBUtils.getCloudRegion(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
54 <bpmn2:incoming>SequenceFlow_1maepy7</bpmn2:incoming>
55 <bpmn2:outgoing>SequenceFlow_03ebe6c</bpmn2:outgoing>
57 <bpmn2:sequenceFlow id="SequenceFlow_03ebe6c" sourceRef="ServiceTask_get_cloud_region" targetRef="ThrowEvent_ToCollectAAIData" />
58 <bpmn2:callActivity id="CallActivity_0aj19il" name="Network Adapter" calledElement="NetworkAdapter">
59 <bpmn2:extensionElements>
60 <camunda:in source="networkAdapterRequest" target="networkAdapterRequest" />
61 <camunda:out source="WorkflowException" target="WorkflowException" />
62 <camunda:out source="createNetworkResponse" target="createNetworkResponse" />
63 <camunda:in source="gBuildingBlockExecution" target="gBuildingBlockExecution" />
64 </bpmn2:extensionElements>
65 <bpmn2:incoming>SequenceFlow_1fm99t6</bpmn2:incoming>
66 <bpmn2:outgoing>SequenceFlow_0qpu80i</bpmn2:outgoing>
68 <bpmn2:serviceTask id="ServiceTask_1k8gsz5" name="Process Response From Openstack" camunda:expression="${NetworkAdapterCreateTasks.processResponseFromOpenstack(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
69 <bpmn2:incoming>SequenceFlow_0qpu80i</bpmn2:incoming>
70 <bpmn2:outgoing>SequenceFlow_16152be</bpmn2:outgoing>
72 <bpmn2:sequenceFlow id="SequenceFlow_0qpu80i" sourceRef="CallActivity_0aj19il" targetRef="ServiceTask_1k8gsz5" />
73 <bpmn2:sequenceFlow id="SequenceFlow_16152be" sourceRef="ServiceTask_1k8gsz5" targetRef="Update_Network_AAI_ServiceTask" />
74 <bpmn2:sequenceFlow id="SequenceFlow_1fm99t6" sourceRef="Create_Network_ServiceTask" targetRef="CallActivity_0aj19il" />
75 <bpmn2:serviceTask id="QueryNetworkSubnet_ServiceTask" name=" AAI Query (subnet) " camunda:expression="${AAIQueryTasks.querySubnet(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
76 <bpmn2:incoming>SequenceFlow_1h9kkhb</bpmn2:incoming>
77 <bpmn2:outgoing>SequenceFlow_0y0w60u</bpmn2:outgoing>
79 <bpmn2:sequenceFlow id="SequenceFlow_0y0w60u" sourceRef="QueryNetworkSubnet_ServiceTask" targetRef="ThrowEvent_ToCreateNetwork" />
81 <bpmn2:error id="Error_2" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
82 <bpmn2:error id="Error_1" name="java.lang.Exception" errorCode="java.lang.Exception" />
83 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
84 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CreateNetworkBB">
85 <bpmndi:BPMNShape id="StartEvent_0lbwmd1_di" bpmnElement="createNetwork_startEvent">
86 <dc:Bounds x="176" y="105" width="36" height="36" />
88 <dc:Bounds x="229" y="-14" width="50" height="12" />
91 <bpmndi:BPMNShape id="EndEvent_10l9a3s_di" bpmnElement="createNetwork_EndEvent">
92 <dc:Bounds x="937" y="486" width="36" height="36" />
94 <dc:Bounds x="971" y="362" width="90" height="12" />
97 <bpmndi:BPMNShape id="ServiceTask_1k7d8ih_di" bpmnElement="QueryVpnBinding_ServiceTask">
98 <dc:Bounds x="280" y="251" width="100" height="80" />
100 <bpmndi:BPMNShape id="ServiceTask_1911vum_di" bpmnElement="Create_Network_ServiceTask">
101 <dc:Bounds x="286" y="464" width="100" height="80" />
103 <bpmndi:BPMNShape id="ServiceTask_1glneas_di" bpmnElement="QueryNetworkPolicy_ServiceTask">
104 <dc:Bounds x="443" y="251" width="100" height="80" />
106 <bpmndi:BPMNShape id="ServiceTask_00rw5co_di" bpmnElement="QueryNetworkTableRef_ServiceTask">
107 <dc:Bounds x="603" y="251" width="100" height="80" />
109 <bpmndi:BPMNShape id="ServiceTask_0q51h0f_di" bpmnElement="Update_Network_AAI_ServiceTask">
110 <dc:Bounds x="776" y="464" width="100" height="80" />
112 <bpmndi:BPMNEdge id="SequenceFlow_0n42zi5_di" bpmnElement="SequenceFlow_0n42zi5">
113 <di:waypoint x="380" y="291" />
114 <di:waypoint x="443" y="291" />
116 <dc:Bounds x="472" y="106" width="0" height="0" />
119 <bpmndi:BPMNEdge id="SequenceFlow_1yy4aik_di" bpmnElement="SequenceFlow_1yy4aik">
120 <di:waypoint x="543" y="291" />
121 <di:waypoint x="603" y="291" />
123 <dc:Bounds x="633" y="106" width="0" height="0" />
126 <bpmndi:BPMNEdge id="SequenceFlow_0sissul_di" bpmnElement="SequenceFlow_0sissul">
127 <di:waypoint x="876" y="504" />
128 <di:waypoint x="937" y="504" />
130 <dc:Bounds x="921.5" y="329" width="90" height="0" />
133 <bpmndi:BPMNEdge id="SequenceFlow_1maepy7_di" bpmnElement="SequenceFlow_1maepy7">
134 <di:waypoint x="212" y="123" />
135 <di:waypoint x="366" y="123" />
137 <dc:Bounds x="304" y="-52" width="90" height="0" />
140 <bpmndi:BPMNShape id="IntermediateThrowEvent_0fexg2g_di" bpmnElement="ThrowEvent_ToCollectAAIData">
141 <dc:Bounds x="606" y="105" width="36" height="36" />
143 <dc:Bounds x="608" y="146" width="31" height="27" />
146 <bpmndi:BPMNShape id="IntermediateCatchEvent_1plrukk_di" bpmnElement="CatchEvent_Collect_AAI_Data">
147 <dc:Bounds x="176" y="273" width="36" height="36" />
149 <dc:Bounds x="181" y="314" width="31" height="27" />
152 <bpmndi:BPMNShape id="IntermediateCatchEvent_1n0vun1_di" bpmnElement="CatchEvent_Create_Network">
153 <dc:Bounds x="176" y="486" width="36" height="36" />
155 <dc:Bounds x="173" y="527" width="41" height="27" />
158 <bpmndi:BPMNShape id="IntermediateThrowEvent_04qwhex_di" bpmnElement="ThrowEvent_ToCreateNetwork">
159 <dc:Bounds x="902" y="273" width="36" height="36" />
161 <dc:Bounds x="899" y="314" width="41" height="27" />
164 <bpmndi:BPMNEdge id="SequenceFlow_1h9kkhb_di" bpmnElement="SequenceFlow_1h9kkhb">
165 <di:waypoint x="703" y="291" />
166 <di:waypoint x="757" y="291" />
168 <dc:Bounds x="745" y="116" width="90" height="0" />
171 <bpmndi:BPMNEdge id="SequenceFlow_1oc7wcr_di" bpmnElement="SequenceFlow_1oc7wcr">
172 <di:waypoint x="212" y="291" />
173 <di:waypoint x="280" y="291" />
175 <dc:Bounds x="306" y="106" width="0" height="0" />
178 <bpmndi:BPMNEdge id="SequenceFlow_1eqfh23_di" bpmnElement="SequenceFlow_1eqfh23">
179 <di:waypoint x="212" y="504" />
180 <di:waypoint x="286" y="504" />
182 <dc:Bounds x="309" y="319" width="0" height="0" />
185 <bpmndi:BPMNShape id="ServiceTask_02qnccl_di" bpmnElement="ServiceTask_get_cloud_region">
186 <dc:Bounds x="366" y="83" width="100" height="80" />
188 <bpmndi:BPMNEdge id="SequenceFlow_03ebe6c_di" bpmnElement="SequenceFlow_03ebe6c">
189 <di:waypoint x="466" y="123" />
190 <di:waypoint x="606" y="123" />
192 <dc:Bounds x="551" y="-52" width="90" height="0" />
195 <bpmndi:BPMNShape id="CallActivity_0aj19il_di" bpmnElement="CallActivity_0aj19il">
196 <dc:Bounds x="443" y="464" width="100" height="80" />
198 <bpmndi:BPMNShape id="ServiceTask_1k8gsz5_di" bpmnElement="ServiceTask_1k8gsz5">
199 <dc:Bounds x="603" y="464" width="100" height="80" />
201 <bpmndi:BPMNEdge id="SequenceFlow_0qpu80i_di" bpmnElement="SequenceFlow_0qpu80i">
202 <di:waypoint x="543" y="504" />
203 <di:waypoint x="603" y="504" />
205 <dc:Bounds x="633" y="323" width="0" height="12" />
208 <bpmndi:BPMNEdge id="SequenceFlow_16152be_di" bpmnElement="SequenceFlow_16152be">
209 <di:waypoint x="703" y="504" />
210 <di:waypoint x="776" y="504" />
212 <dc:Bounds x="799.5" y="323" width="0" height="12" />
215 <bpmndi:BPMNEdge id="SequenceFlow_1fm99t6_di" bpmnElement="SequenceFlow_1fm99t6">
216 <di:waypoint x="386" y="504" />
217 <di:waypoint x="443" y="504" />
219 <dc:Bounds x="474.5" y="323" width="0" height="12" />
222 <bpmndi:BPMNShape id="ServiceTask_0u4ie2q_di" bpmnElement="QueryNetworkSubnet_ServiceTask">
223 <dc:Bounds x="757" y="251" width="100" height="80" />
225 <bpmndi:BPMNEdge id="SequenceFlow_0y0w60u_di" bpmnElement="SequenceFlow_0y0w60u">
226 <di:waypoint x="857" y="291" />
227 <di:waypoint x="902" y="291" />
229 <dc:Bounds x="939.5" y="110" width="0" height="12" />
233 </bpmndi:BPMNDiagram>