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