Merge "Add junit tests for MsoCloudifyUtils"
[so.git] / bpmn / so-bpmn-building-blocks / src / main / resources / subprocess / BuildingBlock / CreateNetworkBB.bpmn
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="1.9.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>
6     </bpmn2:startEvent>
7     <bpmn2:endEvent id="createNetwork_EndEvent">
8       <bpmn2:incoming>SequenceFlow_0sissul</bpmn2:incoming>
9     </bpmn2:endEvent>
10     <bpmn2:serviceTask id="QueryVpnBinding_ServiceTask" name="&#10;AAI&#10;Query&#10;(vpn binding)&#10;" camunda:expression="${AAIQueryTasks.queryNetworkVpnBinding(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
11       <bpmn2:incoming>SequenceFlow_1oc7wcr</bpmn2:incoming>
12       <bpmn2:outgoing>SequenceFlow_0n42zi5</bpmn2:outgoing>
13     </bpmn2:serviceTask>
14     <bpmn2:serviceTask id="Create_Network_ServiceTask" name="&#10;AIC&#10;Create&#10;(network)&#10;" camunda:expression="${NetworkAdapterCreateTasks.createNetwork(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
15       <bpmn2:incoming>SequenceFlow_1eqfh23</bpmn2:incoming>
16       <bpmn2:outgoing>SequenceFlow_0innva6</bpmn2:outgoing>
17     </bpmn2:serviceTask>
18     <bpmn2:serviceTask id="QueryNetworkPolicy_ServiceTask" name="&#10;AAI&#10;Query&#10;(net policy)&#10;" camunda:expression="${AAIQueryTasks.queryNetworkPolicy(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
19       <bpmn2:incoming>SequenceFlow_0n42zi5</bpmn2:incoming>
20       <bpmn2:outgoing>SequenceFlow_1yy4aik</bpmn2:outgoing>
21     </bpmn2:serviceTask>
22     <bpmn2:serviceTask id="QueryNetworkTableRef_ServiceTask" name="&#10;AAI&#10;Query&#10;(net table)&#10;" camunda:expression="${AAIQueryTasks.queryNetworkTableRef(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
23       <bpmn2:incoming>SequenceFlow_1yy4aik</bpmn2:incoming>
24       <bpmn2:outgoing>SequenceFlow_1h9kkhb</bpmn2:outgoing>
25     </bpmn2:serviceTask>
26     <bpmn2:serviceTask id="Update_Network_AAI_ServiceTask" name="&#10;AAI&#10;Update (network)&#10;" camunda:expression="${AAIUpdateTasks.updateNetworkCreated(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
27       <bpmn2:incoming>SequenceFlow_0innva6</bpmn2:incoming>
28       <bpmn2:outgoing>SequenceFlow_0sissul</bpmn2:outgoing>
29     </bpmn2:serviceTask>
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_0innva6" sourceRef="Create_Network_ServiceTask" targetRef="Update_Network_AAI_ServiceTask" />
33     <bpmn2:sequenceFlow id="SequenceFlow_0sissul" sourceRef="Update_Network_AAI_ServiceTask" targetRef="createNetwork_EndEvent" />
34     <bpmn2:sequenceFlow id="SequenceFlow_1maepy7" sourceRef="createNetwork_startEvent" targetRef="ServiceTask_get_cloud_region" />
35     <bpmn2:intermediateThrowEvent id="ThrowEvent_ToCollectAAIData" name="ThrowEvent_ToCollectAAIData">
36       <bpmn2:incoming>SequenceFlow_03ebe6c</bpmn2:incoming>
37       <bpmn2:linkEventDefinition name="CatchEvent_Collect_AAI_Data" />
38     </bpmn2:intermediateThrowEvent>
39     <bpmn2:intermediateCatchEvent id="CatchEvent_Collect_AAI_Data" name="CatchEvent_Collect_AAI_Data">
40       <bpmn2:outgoing>SequenceFlow_1oc7wcr</bpmn2:outgoing>
41       <bpmn2:linkEventDefinition name="CatchEvent_Collect_AAI_Data" />
42     </bpmn2:intermediateCatchEvent>
43     <bpmn2:intermediateCatchEvent id="CatchEvent_Create_Network" name="CatchEvent_Create_Network">
44       <bpmn2:outgoing>SequenceFlow_1eqfh23</bpmn2:outgoing>
45       <bpmn2:linkEventDefinition name="CatchEvent_Create_Network" />
46     </bpmn2:intermediateCatchEvent>
47     <bpmn2:intermediateThrowEvent id="ThrowEvent_ToCreateNetwork" name="ThrowEvent_ToCreateNetwork">
48       <bpmn2:incoming>SequenceFlow_04w6hdq</bpmn2:incoming>
49       <bpmn2:linkEventDefinition name="CatchEvent_Create_Network" />
50     </bpmn2:intermediateThrowEvent>
51     <bpmn2:sequenceFlow id="SequenceFlow_1h9kkhb" sourceRef="QueryNetworkTableRef_ServiceTask" targetRef="QueryNetworkSubnet_ServiceTask" />
52     <bpmn2:sequenceFlow id="SequenceFlow_1oc7wcr" sourceRef="CatchEvent_Collect_AAI_Data" targetRef="QueryVpnBinding_ServiceTask" />
53     <bpmn2:sequenceFlow id="SequenceFlow_1eqfh23" sourceRef="CatchEvent_Create_Network" targetRef="Create_Network_ServiceTask" />
54     <bpmn2:serviceTask id="ServiceTask_get_cloud_region" name="Process cloud region by version&#10;" camunda:expression="${AssignNetworkBBUtils.getCloudRegion(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
55       <bpmn2:incoming>SequenceFlow_1maepy7</bpmn2:incoming>
56       <bpmn2:outgoing>SequenceFlow_03ebe6c</bpmn2:outgoing>
57     </bpmn2:serviceTask>
58     <bpmn2:sequenceFlow id="SequenceFlow_03ebe6c" sourceRef="ServiceTask_get_cloud_region" targetRef="ThrowEvent_ToCollectAAIData" />
59     <bpmn2:serviceTask id="QueryNetworkSubnet_ServiceTask" name="&#10;AAI&#10;Query&#10;(subnet)&#10;" camunda:expression="${AAIQueryTasks.querySubnet(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
60       <bpmn2:incoming>SequenceFlow_1h9kkhb</bpmn2:incoming>
61       <bpmn2:outgoing>SequenceFlow_04w6hdq</bpmn2:outgoing>
62     </bpmn2:serviceTask>
63     <bpmn2:sequenceFlow id="SequenceFlow_04w6hdq" sourceRef="QueryNetworkSubnet_ServiceTask" targetRef="ThrowEvent_ToCreateNetwork" />
64   </bpmn2:process>
65   <bpmn2:error id="Error_2" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
66   <bpmn2:error id="Error_1" name="java.lang.Exception" errorCode="java.lang.Exception" />
67   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
68     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CreateNetworkBB">
69       <bpmndi:BPMNShape id="StartEvent_0lbwmd1_di" bpmnElement="createNetwork_startEvent">
70         <dc:Bounds x="236" y="-55" width="36" height="36" />
71         <bpmndi:BPMNLabel>
72           <dc:Bounds x="229" y="-14" width="50" height="12" />
73         </bpmndi:BPMNLabel>
74       </bpmndi:BPMNShape>
75       <bpmndi:BPMNShape id="EndEvent_10l9a3s_di" bpmnElement="createNetwork_EndEvent">
76         <dc:Bounds x="656" y="326" width="36" height="36" />
77         <bpmndi:BPMNLabel>
78           <dc:Bounds x="652" y="362" width="46" height="12" />
79         </bpmndi:BPMNLabel>
80       </bpmndi:BPMNShape>
81       <bpmndi:BPMNShape id="ServiceTask_1k7d8ih_di" bpmnElement="QueryVpnBinding_ServiceTask">
82         <dc:Bounds x="340" y="91" width="100" height="80" />
83       </bpmndi:BPMNShape>
84       <bpmndi:BPMNShape id="ServiceTask_1911vum_di" bpmnElement="Create_Network_ServiceTask">
85         <dc:Bounds x="346" y="304" width="100" height="80" />
86       </bpmndi:BPMNShape>
87       <bpmndi:BPMNShape id="ServiceTask_1glneas_di" bpmnElement="QueryNetworkPolicy_ServiceTask">
88         <dc:Bounds x="503" y="91" width="100" height="80" />
89       </bpmndi:BPMNShape>
90       <bpmndi:BPMNShape id="ServiceTask_00rw5co_di" bpmnElement="QueryNetworkTableRef_ServiceTask">
91         <dc:Bounds x="663" y="91" width="100" height="80" />
92       </bpmndi:BPMNShape>
93       <bpmndi:BPMNShape id="ServiceTask_0q51h0f_di" bpmnElement="Update_Network_AAI_ServiceTask">
94         <dc:Bounds x="499" y="304" width="100" height="80" />
95       </bpmndi:BPMNShape>
96       <bpmndi:BPMNEdge id="SequenceFlow_0n42zi5_di" bpmnElement="SequenceFlow_0n42zi5">
97         <di:waypoint xsi:type="dc:Point" x="440" y="131" />
98         <di:waypoint xsi:type="dc:Point" x="503" y="131" />
99         <bpmndi:BPMNLabel>
100           <dc:Bounds x="472" y="106" width="0" height="0" />
101         </bpmndi:BPMNLabel>
102       </bpmndi:BPMNEdge>
103       <bpmndi:BPMNEdge id="SequenceFlow_1yy4aik_di" bpmnElement="SequenceFlow_1yy4aik">
104         <di:waypoint xsi:type="dc:Point" x="603" y="131" />
105         <di:waypoint xsi:type="dc:Point" x="663" y="131" />
106         <bpmndi:BPMNLabel>
107           <dc:Bounds x="633" y="106" width="0" height="0" />
108         </bpmndi:BPMNLabel>
109       </bpmndi:BPMNEdge>
110       <bpmndi:BPMNEdge id="SequenceFlow_0innva6_di" bpmnElement="SequenceFlow_0innva6">
111         <di:waypoint xsi:type="dc:Point" x="446" y="344" />
112         <di:waypoint xsi:type="dc:Point" x="499" y="344" />
113         <bpmndi:BPMNLabel>
114           <dc:Bounds x="473" y="319" width="0" height="0" />
115         </bpmndi:BPMNLabel>
116       </bpmndi:BPMNEdge>
117       <bpmndi:BPMNEdge id="SequenceFlow_0sissul_di" bpmnElement="SequenceFlow_0sissul">
118         <di:waypoint xsi:type="dc:Point" x="599" y="344" />
119         <di:waypoint xsi:type="dc:Point" x="656" y="344" />
120         <bpmndi:BPMNLabel>
121           <dc:Bounds x="628" y="319" width="0" height="0" />
122         </bpmndi:BPMNLabel>
123       </bpmndi:BPMNEdge>
124       <bpmndi:BPMNEdge id="SequenceFlow_1maepy7_di" bpmnElement="SequenceFlow_1maepy7">
125         <di:waypoint xsi:type="dc:Point" x="272" y="-37" />
126         <di:waypoint xsi:type="dc:Point" x="426" y="-37" />
127         <bpmndi:BPMNLabel>
128           <dc:Bounds x="304" y="-52" width="90" height="0" />
129         </bpmndi:BPMNLabel>
130       </bpmndi:BPMNEdge>
131       <bpmndi:BPMNShape id="IntermediateThrowEvent_0fexg2g_di" bpmnElement="ThrowEvent_ToCollectAAIData">
132         <dc:Bounds x="666" y="-55" width="36" height="36" />
133         <bpmndi:BPMNLabel>
134           <dc:Bounds x="709" y="-43" width="85" height="24" />
135         </bpmndi:BPMNLabel>
136       </bpmndi:BPMNShape>
137       <bpmndi:BPMNShape id="IntermediateCatchEvent_1plrukk_di" bpmnElement="CatchEvent_Collect_AAI_Data">
138         <dc:Bounds x="236" y="113" width="36" height="36" />
139         <bpmndi:BPMNLabel>
140           <dc:Bounds x="216" y="154" width="81" height="24" />
141         </bpmndi:BPMNLabel>
142       </bpmndi:BPMNShape>
143       <bpmndi:BPMNShape id="IntermediateCatchEvent_1n0vun1_di" bpmnElement="CatchEvent_Create_Network">
144         <dc:Bounds x="236" y="326" width="36" height="36" />
145         <bpmndi:BPMNLabel>
146           <dc:Bounds x="213" y="367" width="87" height="24" />
147         </bpmndi:BPMNLabel>
148       </bpmndi:BPMNShape>
149       <bpmndi:BPMNShape id="IntermediateThrowEvent_04qwhex_di" bpmnElement="ThrowEvent_ToCreateNetwork">
150         <dc:Bounds x="972" y="113" width="36" height="36" />
151         <bpmndi:BPMNLabel>
152           <dc:Bounds x="1015" y="125" width="86" height="24" />
153         </bpmndi:BPMNLabel>
154       </bpmndi:BPMNShape>
155       <bpmndi:BPMNEdge id="SequenceFlow_1h9kkhb_di" bpmnElement="SequenceFlow_1h9kkhb">
156         <di:waypoint xsi:type="dc:Point" x="763" y="131" />
157         <di:waypoint xsi:type="dc:Point" x="818" y="131" />
158         <bpmndi:BPMNLabel>
159           <dc:Bounds x="745.5" y="116" width="90" height="0" />
160         </bpmndi:BPMNLabel>
161       </bpmndi:BPMNEdge>
162       <bpmndi:BPMNEdge id="SequenceFlow_1oc7wcr_di" bpmnElement="SequenceFlow_1oc7wcr">
163         <di:waypoint xsi:type="dc:Point" x="272" y="131" />
164         <di:waypoint xsi:type="dc:Point" x="340" y="131" />
165         <bpmndi:BPMNLabel>
166           <dc:Bounds x="306" y="106" width="0" height="0" />
167         </bpmndi:BPMNLabel>
168       </bpmndi:BPMNEdge>
169       <bpmndi:BPMNEdge id="SequenceFlow_1eqfh23_di" bpmnElement="SequenceFlow_1eqfh23">
170         <di:waypoint xsi:type="dc:Point" x="272" y="344" />
171         <di:waypoint xsi:type="dc:Point" x="346" y="344" />
172         <bpmndi:BPMNLabel>
173           <dc:Bounds x="309" y="319" width="0" height="0" />
174         </bpmndi:BPMNLabel>
175       </bpmndi:BPMNEdge>
176       <bpmndi:BPMNShape id="ServiceTask_02qnccl_di" bpmnElement="ServiceTask_get_cloud_region">
177         <dc:Bounds x="426" y="-77" width="100" height="80" />
178       </bpmndi:BPMNShape>
179       <bpmndi:BPMNEdge id="SequenceFlow_03ebe6c_di" bpmnElement="SequenceFlow_03ebe6c">
180         <di:waypoint xsi:type="dc:Point" x="526" y="-37" />
181         <di:waypoint xsi:type="dc:Point" x="666" y="-37" />
182         <bpmndi:BPMNLabel>
183           <dc:Bounds x="551" y="-52" width="90" height="0" />
184         </bpmndi:BPMNLabel>
185       </bpmndi:BPMNEdge>
186       <bpmndi:BPMNShape id="ServiceTask_0j3odqk_di" bpmnElement="QueryNetworkSubnet_ServiceTask">
187         <dc:Bounds x="818" y="91" width="100" height="80" />
188       </bpmndi:BPMNShape>
189       <bpmndi:BPMNEdge id="SequenceFlow_04w6hdq_di" bpmnElement="SequenceFlow_04w6hdq">
190         <di:waypoint xsi:type="dc:Point" x="918" y="131" />
191         <di:waypoint xsi:type="dc:Point" x="972" y="131" />
192         <bpmndi:BPMNLabel>
193           <dc:Bounds x="945" y="110" width="0" height="12" />
194         </bpmndi:BPMNLabel>
195       </bpmndi:BPMNEdge>
196     </bpmndi:BPMNPlane>
197   </bpmndi:BPMNDiagram>
198 </bpmn2:definitions>