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 / DeleteNs.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="DeleteNs" name="DeleteNs" 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="${DeleteNsTask.setJobStatusToStarted(execution)}">
12       <bpmn:incoming>Flow_1tqn5q5</bpmn:incoming>
13       <bpmn:outgoing>Flow_0fhodlp</bpmn:outgoing>
14     </bpmn:serviceTask>
15     <bpmn:serviceTask id="Activity_1r4l8w8" name="Set Job Status to FINISHED" camunda:expression="${DeleteNsTask.setJobStatusToFinished(execution)}">
16       <bpmn:incoming>Flow_1rtsvpm</bpmn:incoming>
17       <bpmn:outgoing>Flow_0t87ov3</bpmn:outgoing>
18     </bpmn:serviceTask>
19     <bpmn:sequenceFlow id="Flow_0t87ov3" sourceRef="Activity_1r4l8w8" targetRef="EndEvent_1" />
20     <bpmn:subProcess id="Activity_06ko4e2" name="Error Handling" triggeredByEvent="true">
21       <bpmn:startEvent id="Event_1ibvrn2" name="error">
22         <bpmn:outgoing>Flow_0554tjv</bpmn:outgoing>
23         <bpmn:errorEventDefinition id="ErrorEventDefinition_0lc46mh" />
24       </bpmn:startEvent>
25       <bpmn:endEvent id="Event_02f7sr1" name="end">
26         <bpmn:incoming>Flow_04xvpee</bpmn:incoming>
27       </bpmn:endEvent>
28       <bpmn:sequenceFlow id="Flow_0554tjv" sourceRef="Event_1ibvrn2" targetRef="Activity_1sj0nvr" />
29       <bpmn:serviceTask id="Activity_1sj0nvr" name="Set Job Status to ERROR" camunda:asyncBefore="true" camunda:expression="${DeleteNsTask.setJobStatusToError(execution)}">
30         <bpmn:incoming>Flow_0554tjv</bpmn:incoming>
31         <bpmn:outgoing>Flow_04xvpee</bpmn:outgoing>
32       </bpmn:serviceTask>
33       <bpmn:sequenceFlow id="Flow_04xvpee" sourceRef="Activity_1sj0nvr" targetRef="Event_02f7sr1" />
34     </bpmn:subProcess>
35     <bpmn:subProcess id="Activity_1dx9fz6" name="Java Exception Handling" triggeredByEvent="true">
36       <bpmn:startEvent id="Event_0zne7ch" name="error">
37         <bpmn:outgoing>Flow_0j1otrx</bpmn:outgoing>
38         <bpmn:errorEventDefinition id="ErrorEventDefinition_1p3h4ta" errorRef="Error_0rqvnym" camunda:errorCodeVariable="BPMN_javaExpCode" camunda:errorMessageVariable="BPMN_javaExpMsg" />
39       </bpmn:startEvent>
40       <bpmn:endEvent id="Event_0bcyh7u">
41         <bpmn:incoming>Flow_0oqv7vl</bpmn:incoming>
42       </bpmn:endEvent>
43       <bpmn:sequenceFlow id="Flow_0j1otrx" sourceRef="Event_0zne7ch" targetRef="Activity_15uwy90" />
44       <bpmn:serviceTask id="Activity_15uwy90" name="Set Job Status to ERROR" camunda:asyncBefore="true" camunda:expression="${DeleteNsTask.setJobStatusToError(execution)}">
45         <bpmn:incoming>Flow_0j1otrx</bpmn:incoming>
46         <bpmn:outgoing>Flow_0oqv7vl</bpmn:outgoing>
47       </bpmn:serviceTask>
48       <bpmn:sequenceFlow id="Flow_0oqv7vl" sourceRef="Activity_15uwy90" targetRef="Event_0bcyh7u" />
49     </bpmn:subProcess>
50     <bpmn:serviceTask id="Activity_0vlb2nk" name="Check NS Instance exists In DB " camunda:expression="${DeleteNsTask.checkIfNsInstanceExistsInDb(execution)}">
51       <bpmn:incoming>Flow_0fhodlp</bpmn:incoming>
52       <bpmn:outgoing>Flow_1duwqzf</bpmn:outgoing>
53     </bpmn:serviceTask>
54     <bpmn:serviceTask id="Activity_09tqz8x" name="Check that NS Instance in DB is in NOT_INSTANTIATED state" camunda:expression="${DeleteNsTask.checkthatNsInstanceInDbIsInNotInstantiatedState(execution)}">
55       <bpmn:incoming>Flow_02g3nbb</bpmn:incoming>
56       <bpmn:outgoing>Flow_1ihvsfs</bpmn:outgoing>
57     </bpmn:serviceTask>
58     <bpmn:serviceTask id="Activity_03ht66t" name="Delete NS Instance from DB" camunda:expression="${DeleteNsTask.deleteNsInstanceFromDb(execution)}">
59       <bpmn:incoming>Flow_04wub0a</bpmn:incoming>
60       <bpmn:outgoing>Flow_1rtsvpm</bpmn:outgoing>
61     </bpmn:serviceTask>
62     <bpmn:sequenceFlow id="Flow_1rtsvpm" sourceRef="Activity_03ht66t" targetRef="Activity_1r4l8w8" />
63     <bpmn:sequenceFlow id="Flow_0fhodlp" sourceRef="Activity_15ksfz6" targetRef="Activity_0vlb2nk" />
64     <bpmn:sequenceFlow id="Flow_1duwqzf" sourceRef="Activity_0vlb2nk" targetRef="Gateway_1tjajb0" />
65     <bpmn:sequenceFlow id="Flow_1ihvsfs" sourceRef="Activity_09tqz8x" targetRef="Gateway_1voek52" />
66     <bpmn:serviceTask id="Activity_1rrzri0" name="Delete NS Instance from AAI" camunda:expression="${DeleteNsTask.deleteNsInstanceFromAai(execution)}">
67       <bpmn:incoming>Flow_1buncqe</bpmn:incoming>
68       <bpmn:outgoing>Flow_04wub0a</bpmn:outgoing>
69     </bpmn:serviceTask>
70     <bpmn:sequenceFlow id="Flow_04wub0a" sourceRef="Activity_1rrzri0" targetRef="Activity_03ht66t" />
71     <bpmn:exclusiveGateway id="Gateway_1tjajb0" name="Does NS Instance Exist?">
72       <bpmn:incoming>Flow_1duwqzf</bpmn:incoming>
73       <bpmn:outgoing>Flow_02g3nbb</bpmn:outgoing>
74       <bpmn:outgoing>Flow_1swnlzf</bpmn:outgoing>
75     </bpmn:exclusiveGateway>
76     <bpmn:sequenceFlow id="Flow_02g3nbb" name="Yes" sourceRef="Gateway_1tjajb0" targetRef="Activity_09tqz8x">
77       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{nsInstanceExists}</bpmn:conditionExpression>
78     </bpmn:sequenceFlow>
79     <bpmn:exclusiveGateway id="Gateway_1voek52" name="Is NS Instance in NOT INSTANTIATED State?">
80       <bpmn:incoming>Flow_1ihvsfs</bpmn:incoming>
81       <bpmn:outgoing>Flow_1buncqe</bpmn:outgoing>
82       <bpmn:outgoing>Flow_1eozcur</bpmn:outgoing>
83     </bpmn:exclusiveGateway>
84     <bpmn:sequenceFlow id="Flow_1buncqe" name="Yes" sourceRef="Gateway_1voek52" targetRef="Activity_1rrzri0">
85       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{isInNotInstantiatedState}</bpmn:conditionExpression>
86     </bpmn:sequenceFlow>
87     <bpmn:endEvent id="Event_0dqc93c">
88       <bpmn:incoming>Flow_1swnlzf</bpmn:incoming>
89       <bpmn:incoming>Flow_1eozcur</bpmn:incoming>
90       <bpmn:errorEventDefinition id="ErrorEventDefinition_0pfrgad" errorRef="Error_0rqvnym" />
91     </bpmn:endEvent>
92     <bpmn:sequenceFlow id="Flow_1swnlzf" name="No" sourceRef="Gateway_1tjajb0" targetRef="Event_0dqc93c">
93       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{not nsInstanceExists}</bpmn:conditionExpression>
94     </bpmn:sequenceFlow>
95     <bpmn:sequenceFlow id="Flow_1eozcur" name="No" sourceRef="Gateway_1voek52" targetRef="Event_0dqc93c">
96       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{not isInNotInstantiatedState}</bpmn:conditionExpression>
97     </bpmn:sequenceFlow>
98   </bpmn:process>
99   <bpmn:error id="Error_0s855yd" name="java.lang.Exception" errorCode="java.lang.Exception" />
100   <bpmn:error id="Error_0rqvnym" name="NsWorkflowProcessingException" errorCode="DELETE_NS_WORKFLOW_PROCESSING_EXCEPTION" />
101   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
102     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DeleteNs">
103       <bpmndi:BPMNEdge id="Flow_1eozcur_di" bpmnElement="Flow_1eozcur">
104         <di:waypoint x="830" y="192" />
105         <di:waypoint x="830" y="270" />
106         <di:waypoint x="708" y="270" />
107         <bpmndi:BPMNLabel>
108           <dc:Bounds x="843" y="228" width="14" height="14" />
109         </bpmndi:BPMNLabel>
110       </bpmndi:BPMNEdge>
111       <bpmndi:BPMNEdge id="Flow_1swnlzf_di" bpmnElement="Flow_1swnlzf">
112         <di:waypoint x="550" y="192" />
113         <di:waypoint x="550" y="270" />
114         <di:waypoint x="672" y="270" />
115         <bpmndi:BPMNLabel>
116           <dc:Bounds x="558" y="228" width="14" height="14" />
117         </bpmndi:BPMNLabel>
118       </bpmndi:BPMNEdge>
119       <bpmndi:BPMNEdge id="Flow_1buncqe_di" bpmnElement="Flow_1buncqe">
120         <di:waypoint x="855" y="167" />
121         <di:waypoint x="960" y="167" />
122         <bpmndi:BPMNLabel>
123           <dc:Bounds x="890" y="149" width="19" height="14" />
124         </bpmndi:BPMNLabel>
125       </bpmndi:BPMNEdge>
126       <bpmndi:BPMNEdge id="Flow_02g3nbb_di" bpmnElement="Flow_02g3nbb">
127         <di:waypoint x="575" y="167" />
128         <di:waypoint x="640" y="167" />
129         <bpmndi:BPMNLabel>
130           <dc:Bounds x="598" y="149" width="19" height="14" />
131         </bpmndi:BPMNLabel>
132       </bpmndi:BPMNEdge>
133       <bpmndi:BPMNEdge id="Flow_04wub0a_di" bpmnElement="Flow_04wub0a">
134         <di:waypoint x="1060" y="167" />
135         <di:waypoint x="1100" y="167" />
136       </bpmndi:BPMNEdge>
137       <bpmndi:BPMNEdge id="Flow_1ihvsfs_di" bpmnElement="Flow_1ihvsfs">
138         <di:waypoint x="740" y="167" />
139         <di:waypoint x="805" y="167" />
140       </bpmndi:BPMNEdge>
141       <bpmndi:BPMNEdge id="Flow_1duwqzf_di" bpmnElement="Flow_1duwqzf">
142         <di:waypoint x="490" y="167" />
143         <di:waypoint x="525" y="167" />
144       </bpmndi:BPMNEdge>
145       <bpmndi:BPMNEdge id="Flow_0fhodlp_di" bpmnElement="Flow_0fhodlp">
146         <di:waypoint x="350" y="167" />
147         <di:waypoint x="390" y="167" />
148       </bpmndi:BPMNEdge>
149       <bpmndi:BPMNEdge id="Flow_1rtsvpm_di" bpmnElement="Flow_1rtsvpm">
150         <di:waypoint x="1200" y="167" />
151         <di:waypoint x="1240" y="167" />
152       </bpmndi:BPMNEdge>
153       <bpmndi:BPMNEdge id="Flow_0t87ov3_di" bpmnElement="Flow_0t87ov3">
154         <di:waypoint x="1340" y="167" />
155         <di:waypoint x="1382" y="167" />
156       </bpmndi:BPMNEdge>
157       <bpmndi:BPMNEdge id="Flow_1tqn5q5_di" bpmnElement="Flow_1tqn5q5">
158         <di:waypoint x="208" y="167" />
159         <di:waypoint x="250" y="167" />
160       </bpmndi:BPMNEdge>
161       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
162         <dc:Bounds x="172" y="149" width="36" height="36" />
163         <bpmndi:BPMNLabel>
164           <dc:Bounds x="158" y="192" width="67" height="14" />
165         </bpmndi:BPMNLabel>
166       </bpmndi:BPMNShape>
167       <bpmndi:BPMNShape id="Event_0db1w1a_di" bpmnElement="EndEvent_1">
168         <dc:Bounds x="1382" y="149" width="36" height="36" />
169         <bpmndi:BPMNLabel>
170           <dc:Bounds x="1369" y="192" width="63" height="14" />
171         </bpmndi:BPMNLabel>
172       </bpmndi:BPMNShape>
173       <bpmndi:BPMNShape id="Activity_15ksfz6_di" bpmnElement="Activity_15ksfz6">
174         <dc:Bounds x="250" y="127" width="100" height="80" />
175       </bpmndi:BPMNShape>
176       <bpmndi:BPMNShape id="Activity_1r4l8w8_di" bpmnElement="Activity_1r4l8w8">
177         <dc:Bounds x="1240" y="127" width="100" height="80" />
178       </bpmndi:BPMNShape>
179       <bpmndi:BPMNShape id="Activity_06ko4e2_di" bpmnElement="Activity_06ko4e2" isExpanded="true">
180         <dc:Bounds x="431" y="360" width="438" height="130" />
181       </bpmndi:BPMNShape>
182       <bpmndi:BPMNEdge id="Flow_04xvpee_di" bpmnElement="Flow_04xvpee">
183         <di:waypoint x="681" y="423" />
184         <di:waypoint x="813" y="423" />
185       </bpmndi:BPMNEdge>
186       <bpmndi:BPMNEdge id="Flow_0554tjv_di" bpmnElement="Flow_0554tjv">
187         <di:waypoint x="489" y="423" />
188         <di:waypoint x="581" y="423" />
189       </bpmndi:BPMNEdge>
190       <bpmndi:BPMNShape id="Event_1ibvrn2_di" bpmnElement="Event_1ibvrn2">
191         <dc:Bounds x="453" y="405" width="36" height="36" />
192         <bpmndi:BPMNLabel>
193           <dc:Bounds x="459" y="448" width="24" height="14" />
194         </bpmndi:BPMNLabel>
195       </bpmndi:BPMNShape>
196       <bpmndi:BPMNShape id="Event_02f7sr1_di" bpmnElement="Event_02f7sr1">
197         <dc:Bounds x="813" y="405" width="36" height="36" />
198         <bpmndi:BPMNLabel>
199           <dc:Bounds x="823" y="447" width="19" height="14" />
200         </bpmndi:BPMNLabel>
201       </bpmndi:BPMNShape>
202       <bpmndi:BPMNShape id="Activity_1sj0nvr_di" bpmnElement="Activity_1sj0nvr">
203         <dc:Bounds x="581" y="383" width="100" height="80" />
204       </bpmndi:BPMNShape>
205       <bpmndi:BPMNShape id="Activity_1dx9fz6_di" bpmnElement="Activity_1dx9fz6" isExpanded="true">
206         <dc:Bounds x="431" y="520" width="438" height="130" />
207       </bpmndi:BPMNShape>
208       <bpmndi:BPMNEdge id="Flow_0oqv7vl_di" bpmnElement="Flow_0oqv7vl">
209         <di:waypoint x="680" y="583" />
210         <di:waypoint x="772" y="583" />
211       </bpmndi:BPMNEdge>
212       <bpmndi:BPMNEdge id="Flow_0j1otrx_di" bpmnElement="Flow_0j1otrx">
213         <di:waypoint x="522" y="583" />
214         <di:waypoint x="580" y="583" />
215       </bpmndi:BPMNEdge>
216       <bpmndi:BPMNShape id="Event_0zne7ch_di" bpmnElement="Event_0zne7ch">
217         <dc:Bounds x="486" y="565" width="36" height="36" />
218         <bpmndi:BPMNLabel>
219           <dc:Bounds x="493" y="608" width="24" height="14" />
220         </bpmndi:BPMNLabel>
221       </bpmndi:BPMNShape>
222       <bpmndi:BPMNShape id="Event_0bcyh7u_di" bpmnElement="Event_0bcyh7u">
223         <dc:Bounds x="772" y="565" width="36" height="36" />
224       </bpmndi:BPMNShape>
225       <bpmndi:BPMNShape id="Activity_15uwy90_di" bpmnElement="Activity_15uwy90">
226         <dc:Bounds x="580" y="543" width="100" height="80" />
227       </bpmndi:BPMNShape>
228       <bpmndi:BPMNShape id="Activity_0vlb2nk_di" bpmnElement="Activity_0vlb2nk">
229         <dc:Bounds x="390" y="127" width="100" height="80" />
230       </bpmndi:BPMNShape>
231       <bpmndi:BPMNShape id="Activity_09tqz8x_di" bpmnElement="Activity_09tqz8x">
232         <dc:Bounds x="640" y="127" width="100" height="80" />
233       </bpmndi:BPMNShape>
234       <bpmndi:BPMNShape id="Activity_03ht66t_di" bpmnElement="Activity_03ht66t">
235         <dc:Bounds x="1100" y="127" width="100" height="80" />
236       </bpmndi:BPMNShape>
237       <bpmndi:BPMNShape id="Activity_1rrzri0_di" bpmnElement="Activity_1rrzri0">
238         <dc:Bounds x="960" y="127" width="100" height="80" />
239       </bpmndi:BPMNShape>
240       <bpmndi:BPMNShape id="Gateway_1tjajb0_di" bpmnElement="Gateway_1tjajb0" isMarkerVisible="true">
241         <dc:Bounds x="525" y="142" width="50" height="50" />
242         <bpmndi:BPMNLabel>
243           <dc:Bounds x="505" y="106" width="89" height="27" />
244         </bpmndi:BPMNLabel>
245       </bpmndi:BPMNShape>
246       <bpmndi:BPMNShape id="Gateway_1voek52_di" bpmnElement="Gateway_1voek52" isMarkerVisible="true">
247         <dc:Bounds x="805" y="142" width="50" height="50" />
248         <bpmndi:BPMNLabel>
249           <dc:Bounds x="791" y="83" width="79" height="53" />
250         </bpmndi:BPMNLabel>
251       </bpmndi:BPMNShape>
252       <bpmndi:BPMNShape id="Event_029a1ih_di" bpmnElement="Event_0dqc93c">
253         <dc:Bounds x="672" y="252" width="36" height="36" />
254         <bpmndi:BPMNLabel>
255           <dc:Bounds x="646" y="245" width="88" height="27" />
256         </bpmndi:BPMNLabel>
257       </bpmndi:BPMNShape>
258     </bpmndi:BPMNPlane>
259   </bpmndi:BPMNDiagram>
260 </bpmn:definitions>