Merge "Removing so-monitoring module"
[so.git] / so-etsi-nfvo / so-etsi-nfvo-ns-lcm / so-etsi-nfvo-ns-lcm-bpmn-flows / src / main / resources / CreateNs.bpmn
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:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1l4zor5" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.2.0">
3   <bpmn:process id="CreateNs" name="&#10;CreateNs" isExecutable="true">
4     <bpmn:startEvent id="StartEvent_1" name="Start Process">
5       <bpmn:outgoing>Flow_1tqn5q5</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:endEvent id="EndEvent_1" name="End Process">
8       <bpmn:incoming>Flow_0t87ov3</bpmn:incoming>
9     </bpmn:endEvent>
10     <bpmn:sequenceFlow id="Flow_1tqn5q5" sourceRef="StartEvent_1" targetRef="Activity_15ksfz6" />
11     <bpmn:serviceTask id="Activity_15ksfz6" name="Set Job Status to STARTED" camunda:asyncBefore="true" camunda:expression="${CreateNsTask.setJobStatusToStarted(execution)}">
12       <bpmn:incoming>Flow_1tqn5q5</bpmn:incoming>
13       <bpmn:outgoing>Flow_0y07mxe</bpmn:outgoing>
14     </bpmn:serviceTask>
15     <bpmn:sequenceFlow id="Flow_0y07mxe" sourceRef="Activity_15ksfz6" targetRef="Activity_12yonzp" />
16     <bpmn:serviceTask id="Activity_1r4l8w8" name="Set Job Status to FINISHED" camunda:expression="${CreateNsTask.setJobStatusToFinished(execution)}">
17       <bpmn:incoming>Flow_1rtsvpm</bpmn:incoming>
18       <bpmn:outgoing>Flow_0t87ov3</bpmn:outgoing>
19     </bpmn:serviceTask>
20     <bpmn:sequenceFlow id="Flow_0t87ov3" sourceRef="Activity_1r4l8w8" targetRef="EndEvent_1" />
21     <bpmn:exclusiveGateway id="Gateway_0fuwzjj" name="Does Ns Package exists?">
22       <bpmn:incoming>Flow_09582uw</bpmn:incoming>
23       <bpmn:outgoing>Flow_1f4vi10</bpmn:outgoing>
24       <bpmn:outgoing>Flow_0qabgp7</bpmn:outgoing>
25     </bpmn:exclusiveGateway>
26     <bpmn:serviceTask id="Activity_12yonzp" name="Get Ns Package from ETSI Catalog Manager" camunda:expression="${CreateNsTask.getNsPackage(execution)}">
27       <bpmn:incoming>Flow_0y07mxe</bpmn:incoming>
28       <bpmn:outgoing>Flow_09582uw</bpmn:outgoing>
29     </bpmn:serviceTask>
30     <bpmn:sequenceFlow id="Flow_09582uw" sourceRef="Activity_12yonzp" targetRef="Gateway_0fuwzjj" />
31     <bpmn:subProcess id="Activity_06ko4e2" name="Error Handling" triggeredByEvent="true">
32       <bpmn:startEvent id="Event_1ibvrn2" name="error">
33         <bpmn:outgoing>Flow_0554tjv</bpmn:outgoing>
34         <bpmn:errorEventDefinition id="ErrorEventDefinition_0lc46mh" />
35       </bpmn:startEvent>
36       <bpmn:endEvent id="Event_02f7sr1" name="end">
37         <bpmn:incoming>Flow_04xvpee</bpmn:incoming>
38       </bpmn:endEvent>
39       <bpmn:sequenceFlow id="Flow_0554tjv" sourceRef="Event_1ibvrn2" targetRef="Activity_1sj0nvr" />
40       <bpmn:serviceTask id="Activity_1sj0nvr" name="Set Job Status to ERROR" camunda:asyncBefore="true" camunda:expression="${CreateNsTask.setJobStatusToError(execution)}">
41         <bpmn:incoming>Flow_0554tjv</bpmn:incoming>
42         <bpmn:outgoing>Flow_04xvpee</bpmn:outgoing>
43       </bpmn:serviceTask>
44       <bpmn:sequenceFlow id="Flow_04xvpee" sourceRef="Activity_1sj0nvr" targetRef="Event_02f7sr1" />
45     </bpmn:subProcess>
46     <bpmn:subProcess id="Activity_1dx9fz6" name="Java Exception Handling" triggeredByEvent="true">
47       <bpmn:startEvent id="Event_0zne7ch" name="error">
48         <bpmn:outgoing>Flow_0j1otrx</bpmn:outgoing>
49         <bpmn:errorEventDefinition id="ErrorEventDefinition_1p3h4ta" errorRef="Error_0s855yd" camunda:errorCodeVariable="BPMN_javaExpCode" camunda:errorMessageVariable="BPMN_javaExpMsg" />
50       </bpmn:startEvent>
51       <bpmn:endEvent id="Event_0bcyh7u">
52         <bpmn:incoming>Flow_0oqv7vl</bpmn:incoming>
53       </bpmn:endEvent>
54       <bpmn:sequenceFlow id="Flow_0j1otrx" sourceRef="Event_0zne7ch" targetRef="Activity_15uwy90" />
55       <bpmn:serviceTask id="Activity_15uwy90" name="Set Job Status to ERROR" camunda:asyncBefore="true" camunda:expression="${CreateNsTask.setJobStatusToError(execution)}">
56         <bpmn:incoming>Flow_0j1otrx</bpmn:incoming>
57         <bpmn:outgoing>Flow_0oqv7vl</bpmn:outgoing>
58       </bpmn:serviceTask>
59       <bpmn:sequenceFlow id="Flow_0oqv7vl" sourceRef="Activity_15uwy90" targetRef="Event_0bcyh7u" />
60     </bpmn:subProcess>
61     <bpmn:sequenceFlow id="Flow_1f4vi10" name="No" sourceRef="Gateway_0fuwzjj" targetRef="Event_016q8gu">
62       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{not doesNsPackageExists}</bpmn:conditionExpression>
63     </bpmn:sequenceFlow>
64     <bpmn:endEvent id="Event_016q8gu">
65       <bpmn:incoming>Flow_1f4vi10</bpmn:incoming>
66       <bpmn:incoming>Flow_1yql1cm</bpmn:incoming>
67       <bpmn:errorEventDefinition id="ErrorEventDefinition_1ugx52k" errorRef="Error_0rqvnym" />
68     </bpmn:endEvent>
69     <bpmn:sequenceFlow id="Flow_0qabgp7" name="Yes" sourceRef="Gateway_0fuwzjj" targetRef="Activity_0vlb2nk">
70       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{doesNsPackageExists}</bpmn:conditionExpression>
71     </bpmn:sequenceFlow>
72     <bpmn:serviceTask id="Activity_0vlb2nk" name="Check NS Instance exists In DB " camunda:expression="${CreateNsTask.doesNsInstanceExistsInDb(execution)}">
73       <bpmn:incoming>Flow_0qabgp7</bpmn:incoming>
74       <bpmn:outgoing>Flow_1exrj2b</bpmn:outgoing>
75     </bpmn:serviceTask>
76     <bpmn:sequenceFlow id="Flow_1exrj2b" sourceRef="Activity_0vlb2nk" targetRef="Gateway_0d7n517" />
77     <bpmn:exclusiveGateway id="Gateway_0d7n517">
78       <bpmn:incoming>Flow_1exrj2b</bpmn:incoming>
79       <bpmn:outgoing>Flow_1rkg44s</bpmn:outgoing>
80       <bpmn:outgoing>Flow_1yql1cm</bpmn:outgoing>
81     </bpmn:exclusiveGateway>
82     <bpmn:sequenceFlow id="Flow_1rkg44s" name="No" sourceRef="Gateway_0d7n517" targetRef="Activity_09tqz8x">
83       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{not doesNsInstanceExists}</bpmn:conditionExpression>
84     </bpmn:sequenceFlow>
85     <bpmn:sequenceFlow id="Flow_1yql1cm" name="Yes" sourceRef="Gateway_0d7n517" targetRef="Event_016q8gu">
86       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{doesNsInstanceExists}</bpmn:conditionExpression>
87     </bpmn:sequenceFlow>
88     <bpmn:serviceTask id="Activity_09tqz8x" name="Create NS Instance record in DB" camunda:expression="${CreateNsTask.createNsInstanceInDb(execution)}">
89       <bpmn:incoming>Flow_1rkg44s</bpmn:incoming>
90       <bpmn:outgoing>Flow_1jvfwd2</bpmn:outgoing>
91     </bpmn:serviceTask>
92     <bpmn:sequenceFlow id="Flow_1jvfwd2" sourceRef="Activity_09tqz8x" targetRef="Activity_1akc79d" />
93     <bpmn:serviceTask id="Activity_1akc79d" name="Create NS Instance in AAI" camunda:expression="${CreateNsTask.createNsInstanceInAai(execution)}">
94       <bpmn:incoming>Flow_1jvfwd2</bpmn:incoming>
95       <bpmn:outgoing>Flow_0e5hvno</bpmn:outgoing>
96     </bpmn:serviceTask>
97     <bpmn:sequenceFlow id="Flow_0e5hvno" sourceRef="Activity_1akc79d" targetRef="Activity_03ht66t" />
98     <bpmn:serviceTask id="Activity_03ht66t" name="Set Create NS Response" camunda:expression="${CreateNsTask.setCreateNsResponse(execution)}">
99       <bpmn:incoming>Flow_0e5hvno</bpmn:incoming>
100       <bpmn:outgoing>Flow_1rtsvpm</bpmn:outgoing>
101     </bpmn:serviceTask>
102     <bpmn:sequenceFlow id="Flow_1rtsvpm" sourceRef="Activity_03ht66t" targetRef="Activity_1r4l8w8" />
103   </bpmn:process>
104   <bpmn:error id="Error_0s855yd" name="java.lang.Exception" errorCode="java.lang.Exception" />
105   <bpmn:error id="Error_0rqvnym" name="NsWorkflowProcessingException" errorCode="CREATE_NS_WORKFLOW_PROCESSING_EXCEPTION" />
106   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
107     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CreateNs">
108       <bpmndi:BPMNEdge id="Flow_1rtsvpm_di" bpmnElement="Flow_1rtsvpm">
109         <di:waypoint x="1160" y="157" />
110         <di:waypoint x="1160" y="230" />
111       </bpmndi:BPMNEdge>
112       <bpmndi:BPMNEdge id="Flow_0e5hvno_di" bpmnElement="Flow_0e5hvno">
113         <di:waypoint x="1070" y="117" />
114         <di:waypoint x="1110" y="117" />
115       </bpmndi:BPMNEdge>
116       <bpmndi:BPMNEdge id="Flow_1jvfwd2_di" bpmnElement="Flow_1jvfwd2">
117         <di:waypoint x="930" y="117" />
118         <di:waypoint x="970" y="117" />
119       </bpmndi:BPMNEdge>
120       <bpmndi:BPMNEdge id="Flow_1yql1cm_di" bpmnElement="Flow_1yql1cm">
121         <di:waypoint x="760" y="142" />
122         <di:waypoint x="760" y="230" />
123         <di:waypoint x="668" y="230" />
124         <bpmndi:BPMNLabel>
125           <dc:Bounds x="766" y="183" width="19" height="14" />
126         </bpmndi:BPMNLabel>
127       </bpmndi:BPMNEdge>
128       <bpmndi:BPMNEdge id="Flow_1rkg44s_di" bpmnElement="Flow_1rkg44s">
129         <di:waypoint x="785" y="117" />
130         <di:waypoint x="830" y="117" />
131         <bpmndi:BPMNLabel>
132           <dc:Bounds x="799" y="99" width="14" height="14" />
133         </bpmndi:BPMNLabel>
134       </bpmndi:BPMNEdge>
135       <bpmndi:BPMNEdge id="Flow_1exrj2b_di" bpmnElement="Flow_1exrj2b">
136         <di:waypoint x="700" y="117" />
137         <di:waypoint x="735" y="117" />
138       </bpmndi:BPMNEdge>
139       <bpmndi:BPMNEdge id="Flow_0qabgp7_di" bpmnElement="Flow_0qabgp7">
140         <di:waypoint x="565" y="117" />
141         <di:waypoint x="600" y="117" />
142         <bpmndi:BPMNLabel>
143           <dc:Bounds x="579" y="99" width="19" height="14" />
144         </bpmndi:BPMNLabel>
145       </bpmndi:BPMNEdge>
146       <bpmndi:BPMNEdge id="Flow_1f4vi10_di" bpmnElement="Flow_1f4vi10">
147         <di:waypoint x="540" y="142" />
148         <di:waypoint x="540" y="230" />
149         <di:waypoint x="632" y="230" />
150         <bpmndi:BPMNLabel>
151           <dc:Bounds x="548" y="183" width="14" height="14" />
152         </bpmndi:BPMNLabel>
153       </bpmndi:BPMNEdge>
154       <bpmndi:BPMNEdge id="Flow_09582uw_di" bpmnElement="Flow_09582uw">
155         <di:waypoint x="480" y="117" />
156         <di:waypoint x="515" y="117" />
157       </bpmndi:BPMNEdge>
158       <bpmndi:BPMNEdge id="Flow_0t87ov3_di" bpmnElement="Flow_0t87ov3">
159         <di:waypoint x="1160" y="310" />
160         <di:waypoint x="1160" y="357" />
161       </bpmndi:BPMNEdge>
162       <bpmndi:BPMNEdge id="Flow_0y07mxe_di" bpmnElement="Flow_0y07mxe">
163         <di:waypoint x="350" y="117" />
164         <di:waypoint x="380" y="117" />
165       </bpmndi:BPMNEdge>
166       <bpmndi:BPMNEdge id="Flow_1tqn5q5_di" bpmnElement="Flow_1tqn5q5">
167         <di:waypoint x="208" y="117" />
168         <di:waypoint x="250" y="117" />
169       </bpmndi:BPMNEdge>
170       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
171         <dc:Bounds x="172" y="99" width="36" height="36" />
172         <bpmndi:BPMNLabel>
173           <dc:Bounds x="158" y="142" width="67" height="14" />
174         </bpmndi:BPMNLabel>
175       </bpmndi:BPMNShape>
176       <bpmndi:BPMNShape id="Event_0db1w1a_di" bpmnElement="EndEvent_1">
177         <dc:Bounds x="1142" y="357" width="36" height="36" />
178         <bpmndi:BPMNLabel>
179           <dc:Bounds x="1129" y="400" width="63" height="14" />
180         </bpmndi:BPMNLabel>
181       </bpmndi:BPMNShape>
182       <bpmndi:BPMNShape id="Activity_15ksfz6_di" bpmnElement="Activity_15ksfz6">
183         <dc:Bounds x="250" y="77" width="100" height="80" />
184       </bpmndi:BPMNShape>
185       <bpmndi:BPMNShape id="Activity_1r4l8w8_di" bpmnElement="Activity_1r4l8w8">
186         <dc:Bounds x="1110" y="230" width="100" height="80" />
187       </bpmndi:BPMNShape>
188       <bpmndi:BPMNShape id="Gateway_0fuwzjj_di" bpmnElement="Gateway_0fuwzjj" isMarkerVisible="true">
189         <dc:Bounds x="515" y="92" width="50" height="50" />
190         <bpmndi:BPMNLabel>
191           <dc:Bounds x="498" y="62" width="88" height="27" />
192         </bpmndi:BPMNLabel>
193       </bpmndi:BPMNShape>
194       <bpmndi:BPMNShape id="Activity_12yonzp_di" bpmnElement="Activity_12yonzp">
195         <dc:Bounds x="380" y="77" width="100" height="80" />
196       </bpmndi:BPMNShape>
197       <bpmndi:BPMNShape id="Activity_06ko4e2_di" bpmnElement="Activity_06ko4e2" isExpanded="true">
198         <dc:Bounds x="431" y="310" width="438" height="130" />
199       </bpmndi:BPMNShape>
200       <bpmndi:BPMNEdge id="Flow_04xvpee_di" bpmnElement="Flow_04xvpee">
201         <di:waypoint x="681" y="373" />
202         <di:waypoint x="813" y="373" />
203       </bpmndi:BPMNEdge>
204       <bpmndi:BPMNEdge id="Flow_0554tjv_di" bpmnElement="Flow_0554tjv">
205         <di:waypoint x="489" y="373" />
206         <di:waypoint x="581" y="373" />
207       </bpmndi:BPMNEdge>
208       <bpmndi:BPMNShape id="Event_1ibvrn2_di" bpmnElement="Event_1ibvrn2">
209         <dc:Bounds x="453" y="355" width="36" height="36" />
210         <bpmndi:BPMNLabel>
211           <dc:Bounds x="459" y="398" width="24" height="14" />
212         </bpmndi:BPMNLabel>
213       </bpmndi:BPMNShape>
214       <bpmndi:BPMNShape id="Event_02f7sr1_di" bpmnElement="Event_02f7sr1">
215         <dc:Bounds x="813" y="355" width="36" height="36" />
216         <bpmndi:BPMNLabel>
217           <dc:Bounds x="823" y="397" width="19" height="14" />
218         </bpmndi:BPMNLabel>
219       </bpmndi:BPMNShape>
220       <bpmndi:BPMNShape id="Activity_1sj0nvr_di" bpmnElement="Activity_1sj0nvr">
221         <dc:Bounds x="581" y="333" width="100" height="80" />
222       </bpmndi:BPMNShape>
223       <bpmndi:BPMNShape id="Activity_1dx9fz6_di" bpmnElement="Activity_1dx9fz6" isExpanded="true">
224         <dc:Bounds x="431" y="470" width="438" height="130" />
225       </bpmndi:BPMNShape>
226       <bpmndi:BPMNEdge id="Flow_0oqv7vl_di" bpmnElement="Flow_0oqv7vl">
227         <di:waypoint x="680" y="533" />
228         <di:waypoint x="772" y="533" />
229       </bpmndi:BPMNEdge>
230       <bpmndi:BPMNEdge id="Flow_0j1otrx_di" bpmnElement="Flow_0j1otrx">
231         <di:waypoint x="522" y="533" />
232         <di:waypoint x="580" y="533" />
233       </bpmndi:BPMNEdge>
234       <bpmndi:BPMNShape id="Event_0zne7ch_di" bpmnElement="Event_0zne7ch">
235         <dc:Bounds x="486" y="515" width="36" height="36" />
236         <bpmndi:BPMNLabel>
237           <dc:Bounds x="493" y="558" width="24" height="14" />
238         </bpmndi:BPMNLabel>
239       </bpmndi:BPMNShape>
240       <bpmndi:BPMNShape id="Event_0bcyh7u_di" bpmnElement="Event_0bcyh7u">
241         <dc:Bounds x="772" y="515" width="36" height="36" />
242       </bpmndi:BPMNShape>
243       <bpmndi:BPMNShape id="Activity_15uwy90_di" bpmnElement="Activity_15uwy90">
244         <dc:Bounds x="580" y="493" width="100" height="80" />
245       </bpmndi:BPMNShape>
246       <bpmndi:BPMNShape id="Event_0spfqz1_di" bpmnElement="Event_016q8gu">
247         <dc:Bounds x="632" y="212" width="36" height="36" />
248       </bpmndi:BPMNShape>
249       <bpmndi:BPMNShape id="Activity_0vlb2nk_di" bpmnElement="Activity_0vlb2nk">
250         <dc:Bounds x="600" y="77" width="100" height="80" />
251       </bpmndi:BPMNShape>
252       <bpmndi:BPMNShape id="Gateway_0d7n517_di" bpmnElement="Gateway_0d7n517" isMarkerVisible="true">
253         <dc:Bounds x="735" y="92" width="50" height="50" />
254       </bpmndi:BPMNShape>
255       <bpmndi:BPMNShape id="Activity_09tqz8x_di" bpmnElement="Activity_09tqz8x">
256         <dc:Bounds x="830" y="77" width="100" height="80" />
257       </bpmndi:BPMNShape>
258       <bpmndi:BPMNShape id="Activity_1akc79d_di" bpmnElement="Activity_1akc79d">
259         <dc:Bounds x="970" y="77" width="100" height="80" />
260       </bpmndi:BPMNShape>
261       <bpmndi:BPMNShape id="Activity_03ht66t_di" bpmnElement="Activity_03ht66t">
262         <dc:Bounds x="1110" y="77" width="100" height="80" />
263       </bpmndi:BPMNShape>
264     </bpmndi:BPMNPlane>
265   </bpmndi:BPMNDiagram>
266 </bpmn:definitions>