Merge "Added fix for potential nullpointerexception"
[so.git] / bpmn / so-bpmn-building-blocks / src / main / resources / subprocess / BuildingBlock / AssignNetworkBB.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.10.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3   <bpmn2:process id="AssignNetworkBB" name="AssignNetworkBB" isExecutable="true">
4     <bpmn2:startEvent id="AssignNetworkBB_start">
5       <bpmn2:outgoing>SequenceFlow_11op1ih</bpmn2:outgoing>
6     </bpmn2:startEvent>
7     <bpmn2:serviceTask id="ServiceTask_get_cloud_region" name="&#10;Process cloud region by version&#10;" camunda:expression="${AssignNetworkBBUtils.getCloudRegion(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
8       <bpmn2:incoming>SequenceFlow_0jm95hf</bpmn2:incoming>
9       <bpmn2:outgoing>SequenceFlow_16hhbw3</bpmn2:outgoing>
10     </bpmn2:serviceTask>
11     <bpmn2:serviceTask id="ServiceTask_assign_network_sdnc" name="&#10;SDNC&#10;Assign&#10;(network)&#10;" camunda:expression="${SDNCAssignTasks.assignNetwork(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
12       <bpmn2:incoming>SequenceFlow_16hhbw3</bpmn2:incoming>
13       <bpmn2:outgoing>SequenceFlow_0oawye1</bpmn2:outgoing>
14     </bpmn2:serviceTask>
15     <bpmn2:serviceTask id="ServiceTask_put_network_in_AAI" name="&#10;AAI&#10;Create&#10;(network)&#10;" camunda:expression="${AAICreateTasks.createNetwork(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
16       <bpmn2:incoming>SequenceFlow_0gkr871</bpmn2:incoming>
17       <bpmn2:outgoing>SequenceFlow_1ctpnpe</bpmn2:outgoing>
18     </bpmn2:serviceTask>
19     <bpmn2:serviceTask id="ServiceTask_assign_network_aai" name="&#10;AAI&#10;Update&#10;(network)&#10;" camunda:expression="${AAIUpdateTasks.updateOrchestrationStatusAssignedNetwork(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
20       <bpmn2:incoming>SequenceFlow_0oawye1</bpmn2:incoming>
21       <bpmn2:outgoing>SequenceFlow_0988gld</bpmn2:outgoing>
22     </bpmn2:serviceTask>
23     <bpmn2:sequenceFlow id="SequenceFlow_017131q" name="Yes" sourceRef="networkFoundByName_ExclusiveGateway" targetRef="ExclusiveGateway_0vtj8n8">
24       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{AssignNetwork.networkFoundByName(execution.getVariable("gBuildingBlockExecution")) == true}]]></bpmn2:conditionExpression>
25     </bpmn2:sequenceFlow>
26     <bpmn2:sequenceFlow id="SequenceFlow_0gkr871" name="No" sourceRef="networkFoundByName_ExclusiveGateway" targetRef="ServiceTask_put_network_in_AAI" />
27     <bpmn2:endEvent id="AssignNetworkBB_end">
28       <bpmn2:incoming>SequenceFlow_0988gld</bpmn2:incoming>
29     </bpmn2:endEvent>
30     <bpmn2:sequenceFlow id="SequenceFlow_11op1ih" sourceRef="AssignNetworkBB_start" targetRef="networkFoundByName_ExclusiveGateway" />
31     <bpmn2:serviceTask id="ServiceTask_connect_to_NCIG" name="&#10;AAI&#10;Connect&#10;(collection)&#10;" camunda:expression="${AAICreateTasks.connectNetworkToNetworkCollectionInstanceGroup(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
32       <bpmn2:incoming>SequenceFlow_07z7hcu</bpmn2:incoming>
33       <bpmn2:outgoing>SequenceFlow_0e08b9t</bpmn2:outgoing>
34     </bpmn2:serviceTask>
35     <bpmn2:serviceTask id="ServiceTask_connect_to_NCSI" name="&#10;AAI&#10;Connect&#10;(svc instance)&#10;" camunda:expression="${AAICreateTasks.connectNetworkToNetworkCollectionServiceInstance(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
36       <bpmn2:incoming>SequenceFlow_0e08b9t</bpmn2:incoming>
37       <bpmn2:outgoing>SequenceFlow_0mxc4ri</bpmn2:outgoing>
38     </bpmn2:serviceTask>
39     <bpmn2:sequenceFlow id="SequenceFlow_1ctpnpe" sourceRef="ServiceTask_put_network_in_AAI" targetRef="ServiceTask_connect_to_Tenant" />
40     <bpmn2:sequenceFlow id="SequenceFlow_0e08b9t" sourceRef="ServiceTask_connect_to_NCIG" targetRef="ServiceTask_connect_to_NCSI" />
41     <bpmn2:sequenceFlow id="SequenceFlow_0mxc4ri" sourceRef="ServiceTask_connect_to_NCSI" targetRef="ExclusiveGateway_0vtj8n8" />
42     <bpmn2:serviceTask id="ServiceTask_connect_to_Tenant" name="&#10;AAI&#10;Connect&#10;(tenant)&#10;" camunda:expression="${AAICreateTasks.connectNetworkToTenant(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
43       <bpmn2:incoming>SequenceFlow_1ctpnpe</bpmn2:incoming>
44       <bpmn2:outgoing>SequenceFlow_0fwcvep</bpmn2:outgoing>
45     </bpmn2:serviceTask>
46     <bpmn2:serviceTask id="ServiceTask_connect_to_CloudRegion" name="&#10;AAI&#10;Connect&#10;(cloud region)&#10;" camunda:expression="${AAICreateTasks.connectNetworkToCloudRegion(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
47       <bpmn2:incoming>SequenceFlow_0fwcvep</bpmn2:incoming>
48       <bpmn2:outgoing>SequenceFlow_07z7hcu</bpmn2:outgoing>
49     </bpmn2:serviceTask>
50     <bpmn2:sequenceFlow id="SequenceFlow_0fwcvep" sourceRef="ServiceTask_connect_to_Tenant" targetRef="ServiceTask_connect_to_CloudRegion" />
51     <bpmn2:sequenceFlow id="SequenceFlow_07z7hcu" sourceRef="ServiceTask_connect_to_CloudRegion" targetRef="ServiceTask_connect_to_NCIG" />
52     <bpmn2:inclusiveGateway id="networkFoundByName_ExclusiveGateway" name="Network Name Found?" default="SequenceFlow_0gkr871">
53       <bpmn2:incoming>SequenceFlow_11op1ih</bpmn2:incoming>
54       <bpmn2:outgoing>SequenceFlow_017131q</bpmn2:outgoing>
55       <bpmn2:outgoing>SequenceFlow_0gkr871</bpmn2:outgoing>
56     </bpmn2:inclusiveGateway>
57     <bpmn2:inclusiveGateway id="ExclusiveGateway_0vtj8n8">
58       <bpmn2:incoming>SequenceFlow_017131q</bpmn2:incoming>
59       <bpmn2:incoming>SequenceFlow_0mxc4ri</bpmn2:incoming>
60       <bpmn2:outgoing>SequenceFlow_0jm95hf</bpmn2:outgoing>
61     </bpmn2:inclusiveGateway>
62     <bpmn2:sequenceFlow id="SequenceFlow_0jm95hf" sourceRef="ExclusiveGateway_0vtj8n8" targetRef="ServiceTask_get_cloud_region" />
63     <bpmn2:sequenceFlow id="SequenceFlow_16hhbw3" sourceRef="ServiceTask_get_cloud_region" targetRef="ServiceTask_assign_network_sdnc" />
64     <bpmn2:sequenceFlow id="SequenceFlow_0oawye1" sourceRef="ServiceTask_assign_network_sdnc" targetRef="ServiceTask_assign_network_aai" />
65     <bpmn2:sequenceFlow id="SequenceFlow_0988gld" sourceRef="ServiceTask_assign_network_aai" targetRef="AssignNetworkBB_end" />
66     <bpmn2:textAnnotation id="TextAnnotation_0dnksb2">    <bpmn2:text>sets Cloud Region on BB execution for SDNC assign</bpmn2:text>
67 </bpmn2:textAnnotation>
68     <bpmn2:association id="Association_1rsqd3z" sourceRef="ServiceTask_get_cloud_region" targetRef="TextAnnotation_0dnksb2" />
69     <bpmn2:textAnnotation id="TextAnnotation_17jb2vn">    <bpmn2:text>conditionally executed if Network Collection Instance Group exists</bpmn2:text>
70 </bpmn2:textAnnotation>
71     <bpmn2:association id="Association_15ppe1t" sourceRef="ServiceTask_connect_to_NCIG" targetRef="TextAnnotation_17jb2vn" />
72   </bpmn2:process>
73   <bpmn2:error id="Error_2" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
74   <bpmn2:error id="Error_1" name="java.lang.Exception" errorCode="java.lang.Exception" />
75   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
76     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="AssignNetworkBB">
77       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_47" bpmnElement="AssignNetworkBB_start">
78         <dc:Bounds x="746" y="-105" width="36" height="36" />
79         <bpmndi:BPMNLabel>
80           <dc:Bounds x="739" y="-64" width="50" height="12" />
81         </bpmndi:BPMNLabel>
82       </bpmndi:BPMNShape>
83       <bpmndi:BPMNShape id="ServiceTask_1wo7ke9_di" bpmnElement="ServiceTask_get_cloud_region">
84         <dc:Bounds x="1632" y="-127" width="100" height="80" />
85       </bpmndi:BPMNShape>
86       <bpmndi:BPMNShape id="ServiceTask_1ofnl0p_di" bpmnElement="ServiceTask_assign_network_sdnc">
87         <dc:Bounds x="1769" y="-127" width="100" height="80" />
88       </bpmndi:BPMNShape>
89       <bpmndi:BPMNShape id="TextAnnotation_0dnksb2_di" bpmnElement="TextAnnotation_0dnksb2">
90         <dc:Bounds x="1576" y="35" width="212" height="30" />
91       </bpmndi:BPMNShape>
92       <bpmndi:BPMNEdge id="Association_1rsqd3z_di" bpmnElement="Association_1rsqd3z">
93         <di:waypoint xsi:type="dc:Point" x="1682" y="-47" />
94         <di:waypoint xsi:type="dc:Point" x="1682" y="35" />
95       </bpmndi:BPMNEdge>
96       <bpmndi:BPMNShape id="ServiceTask_1dm3ngd_di" bpmnElement="ServiceTask_put_network_in_AAI">
97         <dc:Bounds x="906" y="-49" width="100" height="80" />
98       </bpmndi:BPMNShape>
99       <bpmndi:BPMNShape id="ServiceTask_18yks1p_di" bpmnElement="ServiceTask_assign_network_aai">
100         <dc:Bounds x="1909" y="-127" width="100" height="80" />
101       </bpmndi:BPMNShape>
102       <bpmndi:BPMNEdge id="SequenceFlow_017131q_di" bpmnElement="SequenceFlow_017131q">
103         <di:waypoint xsi:type="dc:Point" x="863" y="-112" />
104         <di:waypoint xsi:type="dc:Point" x="863" y="-161" />
105         <di:waypoint xsi:type="dc:Point" x="1562" y="-161" />
106         <di:waypoint xsi:type="dc:Point" x="1562" y="-112" />
107         <bpmndi:BPMNLabel>
108           <dc:Bounds x="871.5" y="-151.96931534232883" width="19" height="12" />
109         </bpmndi:BPMNLabel>
110       </bpmndi:BPMNEdge>
111       <bpmndi:BPMNEdge id="SequenceFlow_0gkr871_di" bpmnElement="SequenceFlow_0gkr871">
112         <di:waypoint xsi:type="dc:Point" x="863" y="-62" />
113         <di:waypoint xsi:type="dc:Point" x="863" y="-9" />
114         <di:waypoint xsi:type="dc:Point" x="906" y="-9" />
115         <bpmndi:BPMNLabel>
116           <dc:Bounds x="872.125" y="-36.06410256410257" width="14" height="12" />
117         </bpmndi:BPMNLabel>
118       </bpmndi:BPMNEdge>
119       <bpmndi:BPMNShape id="EndEvent_083u1a5_di" bpmnElement="AssignNetworkBB_end">
120         <dc:Bounds x="2118" y="-105" width="36" height="36" />
121         <bpmndi:BPMNLabel>
122           <dc:Bounds x="2113" y="-65" width="46" height="12" />
123         </bpmndi:BPMNLabel>
124       </bpmndi:BPMNShape>
125       <bpmndi:BPMNEdge id="SequenceFlow_11op1ih_di" bpmnElement="SequenceFlow_11op1ih">
126         <di:waypoint xsi:type="dc:Point" x="782" y="-87" />
127         <di:waypoint xsi:type="dc:Point" x="838" y="-87" />
128         <bpmndi:BPMNLabel>
129           <dc:Bounds x="765" y="-102" width="90" height="0" />
130         </bpmndi:BPMNLabel>
131       </bpmndi:BPMNEdge>
132       <bpmndi:BPMNShape id="ServiceTask_0a96yhg_di" bpmnElement="ServiceTask_connect_to_NCIG">
133         <dc:Bounds x="1286" y="-49" width="100" height="80" />
134       </bpmndi:BPMNShape>
135       <bpmndi:BPMNShape id="ServiceTask_0mauyto_di" bpmnElement="ServiceTask_connect_to_NCSI">
136         <dc:Bounds x="1422" y="-49" width="100" height="80" />
137       </bpmndi:BPMNShape>
138       <bpmndi:BPMNEdge id="SequenceFlow_1ctpnpe_di" bpmnElement="SequenceFlow_1ctpnpe">
139         <di:waypoint xsi:type="dc:Point" x="1006" y="-9" />
140         <di:waypoint xsi:type="dc:Point" x="1036" y="-9" />
141         <bpmndi:BPMNLabel>
142           <dc:Bounds x="976" y="-24" width="90" height="0" />
143         </bpmndi:BPMNLabel>
144       </bpmndi:BPMNEdge>
145       <bpmndi:BPMNEdge id="SequenceFlow_0e08b9t_di" bpmnElement="SequenceFlow_0e08b9t">
146         <di:waypoint xsi:type="dc:Point" x="1386" y="-9" />
147         <di:waypoint xsi:type="dc:Point" x="1422" y="-9" />
148         <bpmndi:BPMNLabel>
149           <dc:Bounds x="1359" y="-24" width="90" height="0" />
150         </bpmndi:BPMNLabel>
151       </bpmndi:BPMNEdge>
152       <bpmndi:BPMNEdge id="SequenceFlow_0mxc4ri_di" bpmnElement="SequenceFlow_0mxc4ri">
153         <di:waypoint xsi:type="dc:Point" x="1522" y="-9" />
154         <di:waypoint xsi:type="dc:Point" x="1562" y="-9" />
155         <di:waypoint xsi:type="dc:Point" x="1562" y="-62" />
156         <bpmndi:BPMNLabel>
157           <dc:Bounds x="1497" y="-24" width="90" height="0" />
158         </bpmndi:BPMNLabel>
159       </bpmndi:BPMNEdge>
160       <bpmndi:BPMNShape id="ServiceTask_019bzpc_di" bpmnElement="ServiceTask_connect_to_Tenant">
161         <dc:Bounds x="1036" y="-49" width="100" height="80" />
162       </bpmndi:BPMNShape>
163       <bpmndi:BPMNShape id="ServiceTask_1alvmym_di" bpmnElement="ServiceTask_connect_to_CloudRegion">
164         <dc:Bounds x="1162" y="-49" width="100" height="80" />
165       </bpmndi:BPMNShape>
166       <bpmndi:BPMNEdge id="SequenceFlow_0fwcvep_di" bpmnElement="SequenceFlow_0fwcvep">
167         <di:waypoint xsi:type="dc:Point" x="1136" y="-9" />
168         <di:waypoint xsi:type="dc:Point" x="1162" y="-9" />
169         <bpmndi:BPMNLabel>
170           <dc:Bounds x="1104" y="-24" width="90" height="0" />
171         </bpmndi:BPMNLabel>
172       </bpmndi:BPMNEdge>
173       <bpmndi:BPMNEdge id="SequenceFlow_07z7hcu_di" bpmnElement="SequenceFlow_07z7hcu">
174         <di:waypoint xsi:type="dc:Point" x="1262" y="-9" />
175         <di:waypoint xsi:type="dc:Point" x="1286" y="-9" />
176         <bpmndi:BPMNLabel>
177           <dc:Bounds x="1229" y="-24" width="90" height="0" />
178         </bpmndi:BPMNLabel>
179       </bpmndi:BPMNEdge>
180       <bpmndi:BPMNShape id="TextAnnotation_17jb2vn_di" bpmnElement="TextAnnotation_17jb2vn">
181         <dc:Bounds x="1232" y="86" width="158" height="54" />
182       </bpmndi:BPMNShape>
183       <bpmndi:BPMNEdge id="Association_15ppe1t_di" bpmnElement="Association_15ppe1t">
184         <di:waypoint xsi:type="dc:Point" x="1306" y="31" />
185         <di:waypoint xsi:type="dc:Point" x="1267" y="86" />
186       </bpmndi:BPMNEdge>
187       <bpmndi:BPMNShape id="InclusiveGateway_0kiphfm_di" bpmnElement="networkFoundByName_ExclusiveGateway">
188         <dc:Bounds x="838" y="-112" width="50" height="50" />
189         <bpmndi:BPMNLabel>
190           <dc:Bounds x="898" y="-104" width="73" height="24" />
191         </bpmndi:BPMNLabel>
192       </bpmndi:BPMNShape>
193       <bpmndi:BPMNShape id="InclusiveGateway_0pxktc3_di" bpmnElement="ExclusiveGateway_0vtj8n8">
194         <dc:Bounds x="1537" y="-112" width="50" height="50" />
195         <bpmndi:BPMNLabel>
196           <dc:Bounds x="1562" y="-58" width="0" height="12" />
197         </bpmndi:BPMNLabel>
198       </bpmndi:BPMNShape>
199       <bpmndi:BPMNEdge id="SequenceFlow_0jm95hf_di" bpmnElement="SequenceFlow_0jm95hf">
200         <di:waypoint xsi:type="dc:Point" x="1587" y="-87" />
201         <di:waypoint xsi:type="dc:Point" x="1632" y="-87" />
202         <bpmndi:BPMNLabel>
203           <dc:Bounds x="1609.5" y="-108" width="0" height="12" />
204         </bpmndi:BPMNLabel>
205       </bpmndi:BPMNEdge>
206       <bpmndi:BPMNEdge id="SequenceFlow_16hhbw3_di" bpmnElement="SequenceFlow_16hhbw3">
207         <di:waypoint xsi:type="dc:Point" x="1732" y="-87" />
208         <di:waypoint xsi:type="dc:Point" x="1769" y="-87" />
209         <bpmndi:BPMNLabel>
210           <dc:Bounds x="1750.5" y="-108" width="0" height="12" />
211         </bpmndi:BPMNLabel>
212       </bpmndi:BPMNEdge>
213       <bpmndi:BPMNEdge id="SequenceFlow_0oawye1_di" bpmnElement="SequenceFlow_0oawye1">
214         <di:waypoint xsi:type="dc:Point" x="1869" y="-87" />
215         <di:waypoint xsi:type="dc:Point" x="1909" y="-87" />
216         <bpmndi:BPMNLabel>
217           <dc:Bounds x="1889" y="-108" width="0" height="12" />
218         </bpmndi:BPMNLabel>
219       </bpmndi:BPMNEdge>
220       <bpmndi:BPMNEdge id="SequenceFlow_0988gld_di" bpmnElement="SequenceFlow_0988gld">
221         <di:waypoint xsi:type="dc:Point" x="2009" y="-87" />
222         <di:waypoint xsi:type="dc:Point" x="2118" y="-87" />
223         <bpmndi:BPMNLabel>
224           <dc:Bounds x="2063.5" y="-108" width="0" height="12" />
225         </bpmndi:BPMNLabel>
226       </bpmndi:BPMNEdge>
227     </bpmndi:BPMNPlane>
228   </bpmndi:BPMNDiagram>
229 </bpmn2:definitions>