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="1.11.3">
3 <bpmn:collaboration id="Collaboration_1d0w8lf">
4 <bpmn:participant id="Participant_1egg397" name="SO Create and Activate Pnf Resource" processRef="CreateAndActivatePnfResource" />
5 <bpmn:participant id="Participant_0atuyq0" name="AAI" />
6 <bpmn:participant id="Participant_19w87ws" name="Workflow Message Service (communication with DMAAP) " />
7 <bpmn:messageFlow id="MessageFlow_1h3xu88" sourceRef="CreateAndActivatePnf_CreateAaiEntry" targetRef="Participant_0atuyq0" />
8 <bpmn:messageFlow id="MessageFlow_09ibv5a" sourceRef="CheckAiiForCorrelationId" targetRef="Participant_0atuyq0" />
9 <bpmn:messageFlow id="MessageFlow_0vjul4t" sourceRef="Participant_0atuyq0" targetRef="CheckAiiForCorrelationId" />
10 <bpmn:messageFlow id="MessageFlow_1vrcp2d" sourceRef="Participant_19w87ws" targetRef="WaitForDmaapPnfReadyNotification" />
11 <bpmn:messageFlow id="MessageFlow_0tg4hw9" sourceRef="InformDmaapClient" targetRef="Participant_19w87ws" />
12 <bpmn:messageFlow id="MessageFlow_1py54jr" sourceRef="CancelDmaapClientSubscription" targetRef="Participant_19w87ws" />
14 <bpmn:process id="CreateAndActivatePnfResource" name="CreateAndActivatePnfResource" isExecutable="true">
15 <bpmn:sequenceFlow id="SequenceFlow_1kc34bc" sourceRef="WaitForDmaapTimeout" targetRef="CancelDmaapClientSubscription" />
16 <bpmn:sequenceFlow id="SequenceFlow_1o8od8e" sourceRef="InformDmaapClient" targetRef="WaitForDmaapPnfReadyNotification" />
17 <bpmn:sequenceFlow id="SequenceFlow_17s9025" sourceRef="AaiEntryExists" targetRef="InformDmaapClient" />
18 <bpmn:sequenceFlow id="SequenceFlow_1ls8pua" name="No" sourceRef="DoesAaiContainInfoAboutIp" targetRef="AaiEntryExists">
19 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{!aaiContainsInfoAboutIp}</bpmn:conditionExpression>
21 <bpmn:sequenceFlow id="SequenceFlow_1qr6cmf" sourceRef="CreateAndActivatePnf_CreateAaiEntry" targetRef="AaiEntryExists" />
22 <bpmn:sequenceFlow id="SequenceFlow_0v5ffpe" name="No" sourceRef="DoesAaiContainInfoAboutPnf" targetRef="CreateAndActivatePnf_CreateAaiEntry">
23 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{!aaiContainsInfoAboutPnf}</bpmn:conditionExpression>
25 <bpmn:sequenceFlow id="SequenceFlow_1l1t6ak" name="Yes" sourceRef="DoesAaiContainInfoAboutPnf" targetRef="DoesAaiContainInfoAboutIp">
26 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{aaiContainsInfoAboutPnf}</bpmn:conditionExpression>
28 <bpmn:sequenceFlow id="SequenceFlow_1j4r3zt" sourceRef="CheckAiiForCorrelationId" targetRef="DoesAaiContainInfoAboutPnf" />
29 <bpmn:sequenceFlow id="SequenceFlow_0j5ksz1" sourceRef="CreateAndActivatePnf_StartEvent" targetRef="CheckAiiForCorrelationId" />
30 <bpmn:sequenceFlow id="SequenceFlow_0p09qgm" sourceRef="WaitForDmaapPnfReadyNotification" targetRef="AaiEntryUpdated" />
31 <bpmn:sequenceFlow id="SequenceFlow_1h6yz62" name="Yes" sourceRef="DoesAaiContainInfoAboutIp" targetRef="AaiEntryAlreadyUpToDate">
32 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{aaiContainsInfoAboutIp}</bpmn:conditionExpression>
34 <bpmn:endEvent id="AaiEntryAlreadyUpToDate" name="AAI entry already up-to-date">
35 <bpmn:incoming>SequenceFlow_1h6yz62</bpmn:incoming>
37 <bpmn:exclusiveGateway id="DoesAaiContainInfoAboutIp" name="Does AAI contain info about IPv4 or IPv6?">
38 <bpmn:incoming>SequenceFlow_1l1t6ak</bpmn:incoming>
39 <bpmn:outgoing>SequenceFlow_1h6yz62</bpmn:outgoing>
40 <bpmn:outgoing>SequenceFlow_1ls8pua</bpmn:outgoing>
41 </bpmn:exclusiveGateway>
42 <bpmn:endEvent id="ThrowTimeoutException" name="Throw timeout exception">
43 <bpmn:incoming>SequenceFlow_1miyzfe</bpmn:incoming>
44 <bpmn:errorEventDefinition errorRef="Error_1" />
46 <bpmn:sequenceFlow id="SequenceFlow_1miyzfe" sourceRef="CancelDmaapClientSubscription" targetRef="ThrowTimeoutException" />
47 <bpmn:serviceTask id="CheckAiiForCorrelationId" name="Check AAI for correlation_id" camunda:delegateExpression="${checkAaiForCorrelationIdDelegate}">
48 <bpmn:incoming>SequenceFlow_0j5ksz1</bpmn:incoming>
49 <bpmn:outgoing>SequenceFlow_1j4r3zt</bpmn:outgoing>
51 <bpmn:startEvent id="CreateAndActivatePnf_StartEvent">
52 <bpmn:outgoing>SequenceFlow_0j5ksz1</bpmn:outgoing>
54 <bpmn:intermediateThrowEvent id="AaiEntryExists" name="AAI entry exists, lacking IP">
55 <bpmn:incoming>SequenceFlow_1qr6cmf</bpmn:incoming>
56 <bpmn:incoming>SequenceFlow_1ls8pua</bpmn:incoming>
57 <bpmn:outgoing>SequenceFlow_17s9025</bpmn:outgoing>
58 </bpmn:intermediateThrowEvent>
59 <bpmn:endEvent id="AaiEntryUpdated" name="AAI entry updated">
60 <bpmn:incoming>SequenceFlow_0p09qgm</bpmn:incoming>
62 <bpmn:exclusiveGateway id="DoesAaiContainInfoAboutPnf" name="Does AAI contain info about pnf?">
63 <bpmn:incoming>SequenceFlow_1j4r3zt</bpmn:incoming>
64 <bpmn:outgoing>SequenceFlow_1l1t6ak</bpmn:outgoing>
65 <bpmn:outgoing>SequenceFlow_0v5ffpe</bpmn:outgoing>
66 </bpmn:exclusiveGateway>
67 <bpmn:serviceTask id="CreateAndActivatePnf_CreateAaiEntry" name="Create AAI entry with pnf-id = correlation_id" camunda:delegateExpression="${createAaiEntryWithPnfIdDelegate}">
68 <bpmn:incoming>SequenceFlow_0v5ffpe</bpmn:incoming>
69 <bpmn:outgoing>SequenceFlow_1qr6cmf</bpmn:outgoing>
71 <bpmn:serviceTask id="InformDmaapClient" name="Inform DmaapClient about business key and corresponding pnf-id" camunda:delegateExpression="${informDmaapClient}">
72 <bpmn:incoming>SequenceFlow_17s9025</bpmn:incoming>
73 <bpmn:outgoing>SequenceFlow_1o8od8e</bpmn:outgoing>
75 <bpmn:receiveTask id="WaitForDmaapPnfReadyNotification" name="Wait for DMAAP pnf-ready notification" messageRef="Message_13h1tlo">
76 <bpmn:incoming>SequenceFlow_1o8od8e</bpmn:incoming>
77 <bpmn:outgoing>SequenceFlow_0p09qgm</bpmn:outgoing>
79 <bpmn:boundaryEvent id="WaitForDmaapTimeout" name="Timeout" attachedToRef="WaitForDmaapPnfReadyNotification">
80 <bpmn:outgoing>SequenceFlow_1kc34bc</bpmn:outgoing>
81 <bpmn:timerEventDefinition>
82 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">#{timeoutForPnfEntryNotification}</bpmn:timeDuration>
83 </bpmn:timerEventDefinition>
85 <bpmn:serviceTask id="CancelDmaapClientSubscription" name="Cancel DmaapClient subscription" camunda:delegateExpression="${cancelDmaapSubscription}">
86 <bpmn:incoming>SequenceFlow_1kc34bc</bpmn:incoming>
87 <bpmn:outgoing>SequenceFlow_1miyzfe</bpmn:outgoing>
89 <bpmn:association id="Association_0d7oxnz" sourceRef="CreateAndActivatePnf_StartEvent" targetRef="TextAnnotation_1eyzes8" />
90 <bpmn:textAnnotation id="TextAnnotation_1eyzes8">
91 <bpmn:text><![CDATA[Inputs:
92 - timeoutForPnfEntryNotification - String
93 - correlationId - String
95 </bpmn:textAnnotation>
97 <bpmn:error id="Error_1" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
98 <bpmn:message id="Message_13h1tlo" name="WorkflowMessage" />
99 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
100 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1d0w8lf">
101 <bpmndi:BPMNShape id="Participant_1egg397_di" bpmnElement="Participant_1egg397">
102 <dc:Bounds x="0" y="0" width="1488" height="437" />
104 <bpmndi:BPMNShape id="ExclusiveGateway_1cttgdo_di" bpmnElement="DoesAaiContainInfoAboutPnf" isMarkerVisible="true">
105 <dc:Bounds x="338" y="182" width="50" height="50" />
107 <dc:Bounds x="320" y="283" width="85" height="20" />
110 <bpmndi:BPMNShape id="ExclusiveGateway_0yamdfm_di" bpmnElement="DoesAaiContainInfoAboutIp" isMarkerVisible="true">
111 <dc:Bounds x="646" y="41" width="50" height="50" />
113 <dc:Bounds x="627" y="5" width="87" height="30" />
116 <bpmndi:BPMNShape id="EndEvent_0k52gr7_di" bpmnElement="AaiEntryUpdated">
117 <dc:Bounds x="1312" y="189" width="36" height="36" />
119 <dc:Bounds x="1286" y="230" width="89" height="10" />
122 <bpmndi:BPMNShape id="StartEvent_0j5ok9h_di" bpmnElement="CreateAndActivatePnf_StartEvent">
123 <dc:Bounds x="49" y="189" width="36" height="36" />
125 <dc:Bounds x="23" y="228" width="90" height="20" />
128 <bpmndi:BPMNShape id="ServiceTask_0a5uk9o_di" bpmnElement="CheckAiiForCorrelationId">
129 <dc:Bounds x="159" y="167" width="100" height="80" />
131 <bpmndi:BPMNShape id="ServiceTask_0iimk5v_di" bpmnElement="CreateAndActivatePnf_CreateAaiEntry">
132 <dc:Bounds x="467" y="167" width="100" height="80" />
134 <bpmndi:BPMNEdge id="SequenceFlow_1j4r3zt_di" bpmnElement="SequenceFlow_1j4r3zt">
135 <di:waypoint xsi:type="dc:Point" x="259" y="207" />
136 <di:waypoint xsi:type="dc:Point" x="338" y="207" />
138 <dc:Bounds x="253.5" y="187" width="90" height="10" />
141 <bpmndi:BPMNEdge id="SequenceFlow_1l1t6ak_di" bpmnElement="SequenceFlow_1l1t6ak">
142 <di:waypoint xsi:type="dc:Point" x="363" y="182" />
143 <di:waypoint xsi:type="dc:Point" x="363" y="66" />
144 <di:waypoint xsi:type="dc:Point" x="646" y="66" />
146 <dc:Bounds x="378" y="159" width="19" height="10" />
149 <bpmndi:BPMNEdge id="SequenceFlow_0v5ffpe_di" bpmnElement="SequenceFlow_0v5ffpe">
150 <di:waypoint xsi:type="dc:Point" x="388" y="207" />
151 <di:waypoint xsi:type="dc:Point" x="467" y="207" />
153 <dc:Bounds x="396.3963414634147" y="210" width="15" height="10" />
156 <bpmndi:BPMNEdge id="SequenceFlow_1h6yz62_di" bpmnElement="SequenceFlow_1h6yz62">
157 <di:waypoint xsi:type="dc:Point" x="696" y="66" />
158 <di:waypoint xsi:type="dc:Point" x="1312" y="66" />
160 <dc:Bounds x="708.1232876712329" y="51" width="19" height="10" />
163 <bpmndi:BPMNEdge id="SequenceFlow_1ls8pua_di" bpmnElement="SequenceFlow_1ls8pua">
164 <di:waypoint xsi:type="dc:Point" x="671" y="91" />
165 <di:waypoint xsi:type="dc:Point" x="671" y="164" />
166 <di:waypoint xsi:type="dc:Point" x="671" y="164" />
167 <di:waypoint xsi:type="dc:Point" x="671" y="189" />
169 <dc:Bounds x="681" y="105" width="15" height="10" />
172 <bpmndi:BPMNEdge id="SequenceFlow_1qr6cmf_di" bpmnElement="SequenceFlow_1qr6cmf">
173 <di:waypoint xsi:type="dc:Point" x="567" y="207" />
174 <di:waypoint xsi:type="dc:Point" x="653" y="207" />
176 <dc:Bounds x="565" y="187" width="90" height="10" />
179 <bpmndi:BPMNEdge id="SequenceFlow_0j5ksz1_di" bpmnElement="SequenceFlow_0j5ksz1">
180 <di:waypoint xsi:type="dc:Point" x="85" y="207" />
181 <di:waypoint xsi:type="dc:Point" x="122" y="207" />
182 <di:waypoint xsi:type="dc:Point" x="122" y="207" />
183 <di:waypoint xsi:type="dc:Point" x="159" y="207" />
185 <dc:Bounds x="92" y="202" width="90" height="10" />
188 <bpmndi:BPMNShape id="Participant_0i9ban2_di" bpmnElement="Participant_0atuyq0">
189 <dc:Bounds x="123" y="523" width="502" height="60" />
191 <bpmndi:BPMNEdge id="MessageFlow_1h3xu88_di" bpmnElement="MessageFlow_1h3xu88">
192 <di:waypoint xsi:type="dc:Point" x="517" y="247" />
193 <di:waypoint xsi:type="dc:Point" x="517" y="523" />
195 <dc:Bounds x="487" y="380" width="90" height="10" />
198 <bpmndi:BPMNEdge id="MessageFlow_09ibv5a_di" bpmnElement="MessageFlow_09ibv5a">
199 <di:waypoint xsi:type="dc:Point" x="190" y="247" />
200 <di:waypoint xsi:type="dc:Point" x="190" y="523" />
202 <dc:Bounds x="160" y="404" width="90" height="10" />
205 <bpmndi:BPMNEdge id="MessageFlow_0vjul4t_di" bpmnElement="MessageFlow_0vjul4t">
206 <di:waypoint xsi:type="dc:Point" x="229" y="523" />
207 <di:waypoint xsi:type="dc:Point" x="229" y="247" />
209 <dc:Bounds x="199" y="404" width="90" height="10" />
212 <bpmndi:BPMNShape id="Participant_0vmrrhf_di" bpmnElement="Participant_19w87ws">
213 <dc:Bounds x="804" y="523" width="463" height="60" />
215 <bpmndi:BPMNShape id="EndEvent_0wbx6tt_di" bpmnElement="ThrowTimeoutException">
216 <dc:Bounds x="1312" y="345" width="36" height="36" />
218 <dc:Bounds x="1305" y="382" width="70" height="20" />
221 <bpmndi:BPMNShape id="EndEvent_00cy7r0_di" bpmnElement="AaiEntryAlreadyUpToDate">
222 <dc:Bounds x="1312" y="48" width="36" height="36" />
224 <dc:Bounds x="1288" y="89" width="85" height="20" />
227 <bpmndi:BPMNShape id="IntermediateThrowEvent_0fjcdy4_di" bpmnElement="AaiEntryExists">
228 <dc:Bounds x="653" y="189" width="36" height="36" />
230 <dc:Bounds x="634" y="235" width="80" height="20" />
233 <bpmndi:BPMNShape id="TextAnnotation_1eyzes8_di" bpmnElement="TextAnnotation_1eyzes8">
234 <dc:Bounds x="66" y="70" width="243" height="54" />
236 <bpmndi:BPMNEdge id="Association_0d7oxnz_di" bpmnElement="Association_0d7oxnz">
237 <di:waypoint xsi:type="dc:Point" x="67" y="189" />
238 <di:waypoint xsi:type="dc:Point" x="67" y="124" />
240 <bpmndi:BPMNEdge id="MessageFlow_1vrcp2d_di" bpmnElement="MessageFlow_1vrcp2d">
241 <di:waypoint xsi:type="dc:Point" x="1006" y="523" />
242 <di:waypoint xsi:type="dc:Point" x="1006" y="247" />
244 <dc:Bounds x="976" y="380" width="90" height="10" />
247 <bpmndi:BPMNEdge id="SequenceFlow_17s9025_di" bpmnElement="SequenceFlow_17s9025">
248 <di:waypoint xsi:type="dc:Point" x="689" y="207" />
249 <di:waypoint xsi:type="dc:Point" x="775" y="207" />
251 <dc:Bounds x="687" y="187" width="90" height="10" />
254 <bpmndi:BPMNShape id="BoundaryEvent_15eo1k9_di" bpmnElement="WaitForDmaapTimeout">
255 <dc:Bounds x="1020" y="229" width="36" height="36" />
257 <dc:Bounds x="1051" y="260" width="40" height="10" />
260 <bpmndi:BPMNEdge id="SequenceFlow_1kc34bc_di" bpmnElement="SequenceFlow_1kc34bc">
261 <di:waypoint xsi:type="dc:Point" x="1038" y="265" />
262 <di:waypoint xsi:type="dc:Point" x="1038" y="363" />
263 <di:waypoint xsi:type="dc:Point" x="1133" y="363" />
265 <dc:Bounds x="1008" y="309" width="90" height="10" />
268 <bpmndi:BPMNShape id="ReceiveTask_1sfysua_di" bpmnElement="WaitForDmaapPnfReadyNotification">
269 <dc:Bounds x="954" y="167" width="100" height="80" />
271 <bpmndi:BPMNEdge id="SequenceFlow_0p09qgm_di" bpmnElement="SequenceFlow_0p09qgm">
272 <di:waypoint xsi:type="dc:Point" x="1054" y="207" />
273 <di:waypoint xsi:type="dc:Point" x="1312" y="207" />
275 <dc:Bounds x="1138" y="187" width="90" height="10" />
278 <bpmndi:BPMNEdge id="SequenceFlow_1o8od8e_di" bpmnElement="SequenceFlow_1o8od8e">
279 <di:waypoint xsi:type="dc:Point" x="875" y="207" />
280 <di:waypoint xsi:type="dc:Point" x="954" y="207" />
282 <dc:Bounds x="869.5" y="187" width="90" height="10" />
285 <bpmndi:BPMNEdge id="MessageFlow_0tg4hw9_di" bpmnElement="MessageFlow_0tg4hw9">
286 <di:waypoint xsi:type="dc:Point" x="825" y="247" />
287 <di:waypoint xsi:type="dc:Point" x="825" y="523" />
289 <dc:Bounds x="795" y="380" width="90" height="10" />
292 <bpmndi:BPMNShape id="ServiceTask_1iax11n_di" bpmnElement="InformDmaapClient">
293 <dc:Bounds x="775" y="167" width="100" height="80" />
295 <bpmndi:BPMNEdge id="SequenceFlow_1miyzfe_di" bpmnElement="SequenceFlow_1miyzfe">
296 <di:waypoint xsi:type="dc:Point" x="1233" y="363" />
297 <di:waypoint xsi:type="dc:Point" x="1312" y="363" />
299 <dc:Bounds x="1227.5" y="343" width="90" height="10" />
302 <bpmndi:BPMNEdge id="MessageFlow_1py54jr_di" bpmnElement="MessageFlow_1py54jr">
303 <di:waypoint xsi:type="dc:Point" x="1183" y="403" />
304 <di:waypoint xsi:type="dc:Point" x="1183" y="523" />
306 <dc:Bounds x="1153" y="458" width="90" height="10" />
309 <bpmndi:BPMNShape id="ServiceTask_12j7hox_di" bpmnElement="CancelDmaapClientSubscription">
310 <dc:Bounds x="1133" y="323" width="100" height="80" />
313 </bpmndi:BPMNDiagram>