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="CreatePnfEntryInAai" targetRef="Participant_0atuyq0" />
8 <bpmn:messageFlow id="MessageFlow_09ibv5a" sourceRef="CheckAiiForPnfCorrelationId" targetRef="Participant_0atuyq0" />
9 <bpmn:messageFlow id="MessageFlow_0vjul4t" sourceRef="Participant_0atuyq0" targetRef="CheckAiiForPnfCorrelationId" />
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_0v5ffpe" name="No" sourceRef="DoesAaiContainInfoAboutPnf" targetRef="CreatePnfEntryInAai">
18 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{!aaiContainsInfoAboutPnf}</bpmn:conditionExpression>
20 <bpmn:sequenceFlow id="SequenceFlow_0p09qgm" sourceRef="WaitForDmaapPnfReadyNotification" targetRef="CreateRelationId" />
21 <bpmn:sequenceFlow id="SequenceFlow_17s9025" sourceRef="AaiEntryExists" targetRef="InformDmaapClient" />
22 <bpmn:sequenceFlow id="SequenceFlow_1qr6cmf" sourceRef="CreatePnfEntryInAai" targetRef="AaiEntryExists" />
23 <bpmn:sequenceFlow id="SequenceFlow_1j4r3zt" sourceRef="CheckAiiForPnfCorrelationId" targetRef="DoesAaiContainInfoAboutPnf" />
24 <bpmn:sequenceFlow id="SequenceFlow_0j5ksz1" sourceRef="CreateAndActivatePnf_StartEvent" targetRef="CheckInputs" />
25 <bpmn:sequenceFlow id="SequenceFlow_1miyzfe" sourceRef="CancelDmaapClientSubscription" targetRef="ThrowTimeoutException" />
26 <bpmn:sequenceFlow id="SequenceFlow_1l1t6ak" name="Yes" sourceRef="DoesAaiContainInfoAboutPnf" targetRef="AaiEntryExists">
27 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{aaiContainsInfoAboutPnf}</bpmn:conditionExpression>
29 <bpmn:sequenceFlow id="SequenceFlow_0967g8p" sourceRef="CheckInputs" targetRef="CheckAiiForPnfCorrelationId" />
30 <bpmn:serviceTask id="CheckInputs" name="Check inputs" camunda:delegateExpression="${PnfCheckInputs}">
31 <bpmn:incoming>SequenceFlow_0j5ksz1</bpmn:incoming>
32 <bpmn:outgoing>SequenceFlow_0967g8p</bpmn:outgoing>
34 <bpmn:serviceTask id="CancelDmaapClientSubscription" name="Cancel DmaapClient subscription" camunda:delegateExpression="${CancelDmaapSubscription}">
35 <bpmn:incoming>SequenceFlow_1kc34bc</bpmn:incoming>
36 <bpmn:outgoing>SequenceFlow_1miyzfe</bpmn:outgoing>
38 <bpmn:serviceTask id="InformDmaapClient" name="Register in Dmaap" camunda:delegateExpression="${InformDmaapClient}">
39 <bpmn:incoming>SequenceFlow_17s9025</bpmn:incoming>
40 <bpmn:outgoing>SequenceFlow_1o8od8e</bpmn:outgoing>
42 <bpmn:serviceTask id="CreatePnfEntryInAai" name="Create Pnf entry in AAI" camunda:delegateExpression="${CreatePnfEntryInAaiDelegate}">
43 <bpmn:incoming>SequenceFlow_0v5ffpe</bpmn:incoming>
44 <bpmn:outgoing>SequenceFlow_1qr6cmf</bpmn:outgoing>
46 <bpmn:exclusiveGateway id="DoesAaiContainInfoAboutPnf" name="Does AAI contain info about pnf?">
47 <bpmn:incoming>SequenceFlow_1j4r3zt</bpmn:incoming>
48 <bpmn:outgoing>SequenceFlow_1l1t6ak</bpmn:outgoing>
49 <bpmn:outgoing>SequenceFlow_0v5ffpe</bpmn:outgoing>
50 </bpmn:exclusiveGateway>
51 <bpmn:serviceTask id="CheckAiiForPnfCorrelationId" name="Check AAI for pnf_correlation_id" camunda:delegateExpression="${CheckAaiForPnfCorrelationIdDelegate}">
52 <bpmn:incoming>SequenceFlow_0967g8p</bpmn:incoming>
53 <bpmn:outgoing>SequenceFlow_1j4r3zt</bpmn:outgoing>
55 <bpmn:startEvent id="CreateAndActivatePnf_StartEvent">
56 <bpmn:outgoing>SequenceFlow_0j5ksz1</bpmn:outgoing>
58 <bpmn:endEvent id="ThrowTimeoutException" name="Throw timeout exception">
59 <bpmn:incoming>SequenceFlow_1miyzfe</bpmn:incoming>
60 <bpmn:errorEventDefinition errorRef="Error_1" />
62 <bpmn:receiveTask id="WaitForDmaapPnfReadyNotification" name="Wait for DMAAP pnf-ready notification" messageRef="Message_13h1tlo">
63 <bpmn:incoming>SequenceFlow_1o8od8e</bpmn:incoming>
64 <bpmn:outgoing>SequenceFlow_0p09qgm</bpmn:outgoing>
66 <bpmn:boundaryEvent id="WaitForDmaapTimeout" name="Timeout" attachedToRef="WaitForDmaapPnfReadyNotification">
67 <bpmn:outgoing>SequenceFlow_1kc34bc</bpmn:outgoing>
68 <bpmn:timerEventDefinition>
69 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">#{timeoutForPnfEntryNotification}</bpmn:timeDuration>
70 </bpmn:timerEventDefinition>
72 <bpmn:exclusiveGateway id="AaiEntryExists" name="AAI entry exists">
73 <bpmn:incoming>SequenceFlow_1l1t6ak</bpmn:incoming>
74 <bpmn:incoming>SequenceFlow_1qr6cmf</bpmn:incoming>
75 <bpmn:outgoing>SequenceFlow_17s9025</bpmn:outgoing>
76 </bpmn:exclusiveGateway>
77 <bpmn:sequenceFlow id="SequenceFlow_0o6zhjk" sourceRef="CreateRelationId" targetRef="AaiEntryUpdated" />
78 <bpmn:endEvent id="AaiEntryUpdated" name="AAI entry updated">
79 <bpmn:incoming>SequenceFlow_0o6zhjk</bpmn:incoming>
81 <bpmn:serviceTask id="CreateRelationId" name="Create Relation" camunda:delegateExpression="${CreateRelation}">
82 <bpmn:incoming>SequenceFlow_0p09qgm</bpmn:incoming>
83 <bpmn:outgoing>SequenceFlow_0o6zhjk</bpmn:outgoing>
85 <bpmn:association id="Association_0d7oxnz" sourceRef="CreateAndActivatePnf_StartEvent" targetRef="TextAnnotation_1eyzes8" />
86 <bpmn:textAnnotation id="TextAnnotation_1eyzes8">
87 <bpmn:text><![CDATA[Inputs:
88 - timeoutForPnfEntryNotification - String
89 - pnfCorrelationId - String
90 - uuid - String]]></bpmn:text>
91 </bpmn:textAnnotation>
93 <bpmn:error id="Error_1" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
94 <bpmn:message id="Message_13h1tlo" name="WorkflowMessage" />
95 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
96 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1d0w8lf">
97 <bpmndi:BPMNShape id="Participant_1egg397_di" bpmnElement="Participant_1egg397">
98 <dc:Bounds x="-113" y="0" width="1601" height="438" />
100 <bpmndi:BPMNShape id="ExclusiveGateway_1cttgdo_di" bpmnElement="DoesAaiContainInfoAboutPnf" isMarkerVisible="true">
101 <dc:Bounds x="390" y="182" width="50" height="50" />
103 <dc:Bounds x="372" y="283" width="85" height="27" />
106 <bpmndi:BPMNShape id="EndEvent_0k52gr7_di" bpmnElement="AaiEntryUpdated">
107 <dc:Bounds x="1364" y="189" width="36" height="36" />
109 <dc:Bounds x="1339" y="230" width="89" height="12" />
112 <bpmndi:BPMNShape id="StartEvent_0j5ok9h_di" bpmnElement="CreateAndActivatePnf_StartEvent">
113 <dc:Bounds x="-54" y="189" width="36" height="36" />
115 <dc:Bounds x="-80" y="228" width="90" height="20" />
118 <bpmndi:BPMNShape id="ServiceTask_0a5uk9o_di" bpmnElement="CheckAiiForPnfCorrelationId">
119 <dc:Bounds x="219" y="167" width="100" height="80" />
121 <bpmndi:BPMNShape id="ServiceTask_0iimk5v_di" bpmnElement="CreatePnfEntryInAai">
122 <dc:Bounds x="511" y="167" width="100" height="80" />
124 <bpmndi:BPMNEdge id="SequenceFlow_1j4r3zt_di" bpmnElement="SequenceFlow_1j4r3zt">
125 <di:waypoint xsi:type="dc:Point" x="319" y="207" />
126 <di:waypoint xsi:type="dc:Point" x="390" y="207" />
128 <dc:Bounds x="309.5" y="187" width="90" height="10" />
131 <bpmndi:BPMNEdge id="SequenceFlow_1l1t6ak_di" bpmnElement="SequenceFlow_1l1t6ak">
132 <di:waypoint xsi:type="dc:Point" x="415" y="182" />
133 <di:waypoint xsi:type="dc:Point" x="415" y="66" />
134 <di:waypoint xsi:type="dc:Point" x="711" y="66" />
135 <di:waypoint xsi:type="dc:Point" x="711" y="182" />
137 <dc:Bounds x="430" y="159" width="19" height="14" />
140 <bpmndi:BPMNEdge id="SequenceFlow_0v5ffpe_di" bpmnElement="SequenceFlow_0v5ffpe">
141 <di:waypoint xsi:type="dc:Point" x="440" y="207" />
142 <di:waypoint xsi:type="dc:Point" x="511" y="207" />
144 <dc:Bounds x="448" y="210" width="14" height="14" />
147 <bpmndi:BPMNEdge id="SequenceFlow_1qr6cmf_di" bpmnElement="SequenceFlow_1qr6cmf">
148 <di:waypoint xsi:type="dc:Point" x="611" y="207" />
149 <di:waypoint xsi:type="dc:Point" x="686" y="207" />
151 <dc:Bounds x="605" y="187" width="90" height="10" />
154 <bpmndi:BPMNEdge id="SequenceFlow_0j5ksz1_di" bpmnElement="SequenceFlow_0j5ksz1">
155 <di:waypoint xsi:type="dc:Point" x="-18" y="207" />
156 <di:waypoint xsi:type="dc:Point" x="48" y="207" />
158 <dc:Bounds x="-30" y="187" width="90" height="10" />
161 <bpmndi:BPMNShape id="Participant_0i9ban2_di" bpmnElement="Participant_0atuyq0">
162 <dc:Bounds x="123" y="523" width="502" height="60" />
164 <bpmndi:BPMNEdge id="MessageFlow_1h3xu88_di" bpmnElement="MessageFlow_1h3xu88">
165 <di:waypoint xsi:type="dc:Point" x="561" y="247" />
166 <di:waypoint xsi:type="dc:Point" x="561" y="523" />
168 <dc:Bounds x="531" y="380" width="90" height="10" />
171 <bpmndi:BPMNEdge id="MessageFlow_09ibv5a_di" bpmnElement="MessageFlow_09ibv5a">
172 <di:waypoint xsi:type="dc:Point" x="250" y="247" />
173 <di:waypoint xsi:type="dc:Point" x="250" y="523" />
175 <dc:Bounds x="220" y="380" width="90" height="10" />
178 <bpmndi:BPMNEdge id="MessageFlow_0vjul4t_di" bpmnElement="MessageFlow_0vjul4t">
179 <di:waypoint xsi:type="dc:Point" x="289" y="523" />
180 <di:waypoint xsi:type="dc:Point" x="289" y="247" />
182 <dc:Bounds x="259" y="380" width="90" height="10" />
185 <bpmndi:BPMNShape id="Participant_0vmrrhf_di" bpmnElement="Participant_19w87ws">
186 <dc:Bounds x="804" y="523" width="463" height="60" />
188 <bpmndi:BPMNShape id="EndEvent_0wbx6tt_di" bpmnElement="ThrowTimeoutException">
189 <dc:Bounds x="1312" y="345" width="36" height="36" />
191 <dc:Bounds x="1305" y="382" width="70" height="27" />
194 <bpmndi:BPMNShape id="TextAnnotation_1eyzes8_di" bpmnElement="TextAnnotation_1eyzes8">
195 <dc:Bounds x="-37" y="70" width="243" height="82" />
197 <bpmndi:BPMNEdge id="Association_0d7oxnz_di" bpmnElement="Association_0d7oxnz">
198 <di:waypoint xsi:type="dc:Point" x="-36" y="189" />
199 <di:waypoint xsi:type="dc:Point" x="-36" y="152" />
201 <bpmndi:BPMNEdge id="MessageFlow_1vrcp2d_di" bpmnElement="MessageFlow_1vrcp2d">
202 <di:waypoint xsi:type="dc:Point" x="1060" y="523" />
203 <di:waypoint xsi:type="dc:Point" x="1060" y="247" />
205 <dc:Bounds x="996" y="380" width="90" height="10" />
208 <bpmndi:BPMNEdge id="SequenceFlow_17s9025_di" bpmnElement="SequenceFlow_17s9025">
209 <di:waypoint xsi:type="dc:Point" x="736" y="207" />
210 <di:waypoint xsi:type="dc:Point" x="803" y="207" />
212 <dc:Bounds x="719" y="187" width="90" height="10" />
215 <bpmndi:BPMNShape id="BoundaryEvent_15eo1k9_di" bpmnElement="WaitForDmaapTimeout">
216 <dc:Bounds x="1074" y="229" width="36" height="36" />
218 <dc:Bounds x="1117" y="240" width="40" height="14" />
221 <bpmndi:BPMNEdge id="SequenceFlow_1kc34bc_di" bpmnElement="SequenceFlow_1kc34bc">
222 <di:waypoint xsi:type="dc:Point" x="1092" y="265" />
223 <di:waypoint xsi:type="dc:Point" x="1092" y="363" />
224 <di:waypoint xsi:type="dc:Point" x="1145" y="363" />
226 <dc:Bounds x="1028" y="309" width="90" height="10" />
229 <bpmndi:BPMNShape id="ReceiveTask_1sfysua_di" bpmnElement="WaitForDmaapPnfReadyNotification">
230 <dc:Bounds x="1008" y="167" width="100" height="80" />
232 <bpmndi:BPMNEdge id="SequenceFlow_0p09qgm_di" bpmnElement="SequenceFlow_0p09qgm">
233 <di:waypoint xsi:type="dc:Point" x="1108" y="207" />
234 <di:waypoint xsi:type="dc:Point" x="1195" y="207" />
236 <dc:Bounds x="1106.5" y="187" width="90" height="10" />
239 <bpmndi:BPMNEdge id="SequenceFlow_1o8od8e_di" bpmnElement="SequenceFlow_1o8od8e">
240 <di:waypoint xsi:type="dc:Point" x="903" y="207" />
241 <di:waypoint xsi:type="dc:Point" x="1008" y="207" />
243 <dc:Bounds x="893.5" y="187" width="90" height="10" />
246 <bpmndi:BPMNEdge id="MessageFlow_0tg4hw9_di" bpmnElement="MessageFlow_0tg4hw9">
247 <di:waypoint xsi:type="dc:Point" x="853" y="247" />
248 <di:waypoint xsi:type="dc:Point" x="853" y="523" />
250 <dc:Bounds x="823" y="380" width="90" height="10" />
253 <bpmndi:BPMNShape id="ServiceTask_1iax11n_di" bpmnElement="InformDmaapClient">
254 <dc:Bounds x="803" y="167" width="100" height="80" />
256 <bpmndi:BPMNEdge id="SequenceFlow_1miyzfe_di" bpmnElement="SequenceFlow_1miyzfe">
257 <di:waypoint xsi:type="dc:Point" x="1245" y="363" />
258 <di:waypoint xsi:type="dc:Point" x="1312" y="363" />
260 <dc:Bounds x="1233.5" y="343" width="90" height="10" />
263 <bpmndi:BPMNEdge id="MessageFlow_1py54jr_di" bpmnElement="MessageFlow_1py54jr">
264 <di:waypoint xsi:type="dc:Point" x="1195" y="403" />
265 <di:waypoint xsi:type="dc:Point" x="1195" y="523" />
267 <dc:Bounds x="1165" y="458" width="90" height="10" />
270 <bpmndi:BPMNShape id="ServiceTask_12j7hox_di" bpmnElement="CancelDmaapClientSubscription">
271 <dc:Bounds x="1145" y="323" width="100" height="80" />
273 <bpmndi:BPMNEdge id="SequenceFlow_0967g8p_di" bpmnElement="SequenceFlow_0967g8p">
274 <di:waypoint xsi:type="dc:Point" x="148" y="207" />
275 <di:waypoint xsi:type="dc:Point" x="219" y="207" />
277 <dc:Bounds x="183.5" y="187" width="0" height="10" />
280 <bpmndi:BPMNShape id="ServiceTask_0lx02qn_di" bpmnElement="CheckInputs">
281 <dc:Bounds x="48" y="167" width="100" height="80" />
283 <bpmndi:BPMNShape id="ExclusiveGateway_0qwrtuy_di" bpmnElement="AaiEntryExists" isMarkerVisible="true">
284 <dc:Bounds x="686" y="182" width="50" height="50" />
286 <dc:Bounds x="672" y="242" width="77" height="14" />
289 <bpmndi:BPMNEdge id="SequenceFlow_0o6zhjk_di" bpmnElement="SequenceFlow_0o6zhjk">
290 <di:waypoint xsi:type="dc:Point" x="1295" y="207" />
291 <di:waypoint xsi:type="dc:Point" x="1364" y="207" />
293 <dc:Bounds x="1329.5" y="186" width="0" height="12" />
296 <bpmndi:BPMNShape id="ServiceTask_0xn3ug6_di" bpmnElement="CreateRelationId">
297 <dc:Bounds x="1195" y="167" width="100" height="80" />
300 </bpmndi:BPMNDiagram>