Merge "Unit test coverage"
[so.git] / bpmn / MSOInfrastructureBPMN / src / main / resources / subprocess / DoDeleteVFCNetworkServiceInstance.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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.10.0">
3   <bpmn:process id="DoDeleteVFCNetworkServiceInstance" name="DoDeleteVFCNetworkServiceInstance" isExecutable="true">
4     <bpmn:startEvent id="deleteNS_StartEvent" name="deleteNS_StartEvent">
5       <bpmn:outgoing>SequenceFlow_1qo2pln</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:sequenceFlow id="SequenceFlow_1qo2pln" sourceRef="deleteNS_StartEvent" targetRef="PreprocessIncomingRequest_task" />
8     <bpmn:scriptTask id="Task_09nzhwk" name="Delete Network Service" scriptFormat="groovy">
9       <bpmn:incoming>terminateFinished_SequenceFlow</bpmn:incoming>
10       <bpmn:outgoing>SequenceFlow_1sjop71</bpmn:outgoing>
11       <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
12 def dcsi = new DoDeleteVFCNetworkServiceInstance()
13 dcsi.deleteNetworkService(execution)]]></bpmn:script>
14     </bpmn:scriptTask>
15     <bpmn:scriptTask id="PreprocessIncomingRequest_task" name="Preprocess Incoming Request" scriptFormat="groovy">
16       <bpmn:incoming>SequenceFlow_1qo2pln</bpmn:incoming>
17       <bpmn:outgoing>SequenceFlow_150q0fo</bpmn:outgoing>
18       <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
19 def dcsi = new DoDeleteVFCNetworkServiceInstance()
20 dcsi.preProcessRequest(execution)]]></bpmn:script>
21     </bpmn:scriptTask>
22     <bpmn:scriptTask id="terminate_NSTask" name="terminate Network Service" scriptFormat="groovy">
23       <bpmn:incoming>SequenceFlow_150q0fo</bpmn:incoming>
24       <bpmn:outgoing>SequenceFlow_1ywe21t</bpmn:outgoing>
25       <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
26 def dcsi = new DoDeleteVFCNetworkServiceInstance()
27 dcsi.terminateNetworkService(execution)]]></bpmn:script>
28     </bpmn:scriptTask>
29     <bpmn:exclusiveGateway id="ExclusiveGateway_0zfksms" name="Delete NS Success?">
30       <bpmn:incoming>SequenceFlow_1sjop71</bpmn:incoming>
31       <bpmn:outgoing>deleteNSFailed_SequenceFlow</bpmn:outgoing>
32       <bpmn:outgoing>deleteNSSuccess_SequenceFlow</bpmn:outgoing>
33     </bpmn:exclusiveGateway>
34     <bpmn:sequenceFlow id="deleteNSFailed_SequenceFlow" name="no" sourceRef="ExclusiveGateway_0zfksms" targetRef="deleteNSFailed_EndEvent">
35       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("operationStatus" )  != "finished")}]]></bpmn:conditionExpression>
36     </bpmn:sequenceFlow>
37     <bpmn:exclusiveGateway id="ExclusiveGateway_1is7zys" name="terminate NS Success?">
38       <bpmn:incoming>SequenceFlow_1ywe21t</bpmn:incoming>
39       <bpmn:outgoing>terminateFailed_SequenceFlow</bpmn:outgoing>
40       <bpmn:outgoing>terminateSuccess_SequenceFlow</bpmn:outgoing>
41     </bpmn:exclusiveGateway>
42     <bpmn:sequenceFlow id="SequenceFlow_1ywe21t" sourceRef="terminate_NSTask" targetRef="ExclusiveGateway_1is7zys" />
43     <bpmn:sequenceFlow id="terminateFailed_SequenceFlow" name="no" sourceRef="ExclusiveGateway_1is7zys" targetRef="EndEvent_1gkvvpn">
44       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("jobId" )  == null || execution.getVariable("jobId" )  == "" )}]]></bpmn:conditionExpression>
45     </bpmn:sequenceFlow>
46     <bpmn:sequenceFlow id="terminateSuccess_SequenceFlow" name="yes" sourceRef="ExclusiveGateway_1is7zys" targetRef="queryJob_Task">
47       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("jobId" )  != null && execution.getVariable("jobId" )  != "" )}]]></bpmn:conditionExpression>
48     </bpmn:sequenceFlow>
49     <bpmn:exclusiveGateway id="ExclusiveGateway_15492gl" name="terminate Finished?">
50       <bpmn:incoming>SequenceFlow_0xqo13p</bpmn:incoming>
51       <bpmn:outgoing>terminateFinished_SequenceFlow</bpmn:outgoing>
52       <bpmn:outgoing>terminateProcessing_SequenceFlow</bpmn:outgoing>
53     </bpmn:exclusiveGateway>
54     <bpmn:sequenceFlow id="terminateFinished_SequenceFlow" name="yes" sourceRef="ExclusiveGateway_15492gl" targetRef="Task_09nzhwk">
55       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("operationProgress" )  == "100" )}]]></bpmn:conditionExpression>
56     </bpmn:sequenceFlow>
57     <bpmn:sequenceFlow id="terminateProcessing_SequenceFlow" name="no" sourceRef="ExclusiveGateway_15492gl" targetRef="timeDelay_Task">
58       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("operationProgress" )  != "100" )}]]></bpmn:conditionExpression>
59     </bpmn:sequenceFlow>
60     <bpmn:sequenceFlow id="SequenceFlow_0cq2q6g" sourceRef="finishNSDelete_Task" targetRef="EndEvent_1x6k78c" />
61     <bpmn:endEvent id="deleteNSFailed_EndEvent" name="deleteNSFailed">
62       <bpmn:incoming>deleteNSFailed_SequenceFlow</bpmn:incoming>
63     </bpmn:endEvent>
64     <bpmn:endEvent id="EndEvent_1gkvvpn">
65       <bpmn:incoming>terminateFailed_SequenceFlow</bpmn:incoming>
66     </bpmn:endEvent>
67     <bpmn:endEvent id="EndEvent_1x6k78c">
68       <bpmn:incoming>SequenceFlow_0cq2q6g</bpmn:incoming>
69     </bpmn:endEvent>
70     <bpmn:scriptTask id="queryJob_Task" name="Query NS Progress" scriptFormat="groovy">
71       <bpmn:incoming>terminateSuccess_SequenceFlow</bpmn:incoming>
72       <bpmn:incoming>SequenceFlow_1gsbpxj</bpmn:incoming>
73       <bpmn:outgoing>SequenceFlow_0xqo13p</bpmn:outgoing>
74       <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
75 def dcsi = new DoDeleteVFCNetworkServiceInstance()
76 dcsi.queryNSProgress(execution)]]></bpmn:script>
77     </bpmn:scriptTask>
78     <bpmn:scriptTask id="finishNSDelete_Task" name="Finish NS Delete">
79       <bpmn:incoming>deleteNSSuccess_SequenceFlow</bpmn:incoming>
80       <bpmn:outgoing>SequenceFlow_0cq2q6g</bpmn:outgoing>
81       <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
82 def dcsi = new DoCreateVFCNetworkServiceInstance()
83 dcsi.finishNSDelete(execution)]]></bpmn:script>
84     </bpmn:scriptTask>
85     <bpmn:sequenceFlow id="SequenceFlow_0xqo13p" sourceRef="queryJob_Task" targetRef="ExclusiveGateway_15492gl" />
86     <bpmn:scriptTask id="timeDelay_Task" name="timeDelay" scriptFormat="groovy">
87       <bpmn:incoming>terminateProcessing_SequenceFlow</bpmn:incoming>
88       <bpmn:outgoing>SequenceFlow_1gsbpxj</bpmn:outgoing>
89       <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
90 def dcsi = new DoDeleteVFCNetworkServiceInstance()
91 dcsi.timeDelay(execution)]]></bpmn:script>
92     </bpmn:scriptTask>
93     <bpmn:sequenceFlow id="SequenceFlow_1gsbpxj" sourceRef="timeDelay_Task" targetRef="queryJob_Task" />
94     <bpmn:sequenceFlow id="SequenceFlow_150q0fo" sourceRef="PreprocessIncomingRequest_task" targetRef="terminate_NSTask" />
95     <bpmn:sequenceFlow id="SequenceFlow_1sjop71" sourceRef="Task_09nzhwk" targetRef="ExclusiveGateway_0zfksms" />
96     <bpmn:sequenceFlow id="deleteNSSuccess_SequenceFlow" name="yes" sourceRef="ExclusiveGateway_0zfksms" targetRef="finishNSDelete_Task">
97       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("operationStatus" ) == "finished")}]]></bpmn:conditionExpression>
98     </bpmn:sequenceFlow>
99   </bpmn:process>
100   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
101     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoDeleteVFCNetworkServiceInstance">
102       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="deleteNS_StartEvent">
103         <dc:Bounds x="175" y="111" width="36" height="36" />
104         <bpmndi:BPMNLabel>
105           <dc:Bounds x="151" y="147" width="86" height="24" />
106         </bpmndi:BPMNLabel>
107       </bpmndi:BPMNShape>
108       <bpmndi:BPMNEdge id="SequenceFlow_1qo2pln_di" bpmnElement="SequenceFlow_1qo2pln">
109         <di:waypoint xsi:type="dc:Point" x="211" y="129" />
110         <di:waypoint xsi:type="dc:Point" x="407" y="129" />
111         <bpmndi:BPMNLabel>
112           <dc:Bounds x="264" y="108" width="90" height="12" />
113         </bpmndi:BPMNLabel>
114       </bpmndi:BPMNEdge>
115       <bpmndi:BPMNShape id="ScriptTask_1dw39hg_di" bpmnElement="Task_09nzhwk">
116         <dc:Bounds x="722" y="555" width="100" height="80" />
117       </bpmndi:BPMNShape>
118       <bpmndi:BPMNShape id="ScriptTask_03j6ogo_di" bpmnElement="PreprocessIncomingRequest_task">
119         <dc:Bounds x="407" y="89" width="100" height="80" />
120       </bpmndi:BPMNShape>
121       <bpmndi:BPMNShape id="ScriptTask_1qmmew8_di" bpmnElement="terminate_NSTask">
122         <dc:Bounds x="694" y="89" width="100" height="80" />
123       </bpmndi:BPMNShape>
124       <bpmndi:BPMNShape id="ExclusiveGateway_0zfksms_di" bpmnElement="ExclusiveGateway_0zfksms" isMarkerVisible="true">
125         <dc:Bounds x="517" y="570" width="50" height="50" />
126         <bpmndi:BPMNLabel>
127           <dc:Bounds x="519" y="624" width="52" height="24" />
128         </bpmndi:BPMNLabel>
129       </bpmndi:BPMNShape>
130       <bpmndi:BPMNEdge id="SequenceFlow_0df541u_di" bpmnElement="deleteNSFailed_SequenceFlow">
131         <di:waypoint xsi:type="dc:Point" x="542" y="570" />
132         <di:waypoint xsi:type="dc:Point" x="542" y="446" />
133         <bpmndi:BPMNLabel>
134           <dc:Bounds x="551" y="474.11353711790395" width="12" height="12" />
135         </bpmndi:BPMNLabel>
136       </bpmndi:BPMNEdge>
137       <bpmndi:BPMNShape id="ExclusiveGateway_1is7zys_di" bpmnElement="ExclusiveGateway_1is7zys" isMarkerVisible="true">
138         <dc:Bounds x="1034" y="105" width="50" height="50" />
139         <bpmndi:BPMNLabel>
140           <dc:Bounds x="1032" y="159" width="65" height="24" />
141         </bpmndi:BPMNLabel>
142       </bpmndi:BPMNShape>
143       <bpmndi:BPMNEdge id="SequenceFlow_1ywe21t_di" bpmnElement="SequenceFlow_1ywe21t">
144         <di:waypoint xsi:type="dc:Point" x="794" y="128" />
145         <di:waypoint xsi:type="dc:Point" x="1034" y="130" />
146         <bpmndi:BPMNLabel>
147           <dc:Bounds x="869" y="108" width="90" height="12" />
148         </bpmndi:BPMNLabel>
149       </bpmndi:BPMNEdge>
150       <bpmndi:BPMNEdge id="SequenceFlow_0j7xo94_di" bpmnElement="terminateFailed_SequenceFlow">
151         <di:waypoint xsi:type="dc:Point" x="1059" y="105" />
152         <di:waypoint xsi:type="dc:Point" x="1059" y="33" />
153         <bpmndi:BPMNLabel>
154           <dc:Bounds x="1068" y="63" width="12" height="12" />
155         </bpmndi:BPMNLabel>
156       </bpmndi:BPMNEdge>
157       <bpmndi:BPMNEdge id="SequenceFlow_1ui2n9l_di" bpmnElement="terminateSuccess_SequenceFlow">
158         <di:waypoint xsi:type="dc:Point" x="1059" y="155" />
159         <di:waypoint xsi:type="dc:Point" x="1059" y="271" />
160         <bpmndi:BPMNLabel>
161           <dc:Bounds x="1066" y="207" width="19" height="12" />
162         </bpmndi:BPMNLabel>
163       </bpmndi:BPMNEdge>
164       <bpmndi:BPMNShape id="ExclusiveGateway_15492gl_di" bpmnElement="ExclusiveGateway_15492gl" isMarkerVisible="true">
165         <dc:Bounds x="1034" y="570" width="50" height="50" />
166         <bpmndi:BPMNLabel>
167           <dc:Bounds x="1040" y="624" width="47" height="24" />
168         </bpmndi:BPMNLabel>
169       </bpmndi:BPMNShape>
170       <bpmndi:BPMNEdge id="SequenceFlow_0hftgi6_di" bpmnElement="terminateFinished_SequenceFlow">
171         <di:waypoint xsi:type="dc:Point" x="1034" y="595" />
172         <di:waypoint xsi:type="dc:Point" x="822" y="595" />
173         <bpmndi:BPMNLabel>
174           <dc:Bounds x="891" y="574" width="19" height="12" />
175         </bpmndi:BPMNLabel>
176       </bpmndi:BPMNEdge>
177       <bpmndi:BPMNEdge id="SequenceFlow_0omec46_di" bpmnElement="terminateProcessing_SequenceFlow">
178         <di:waypoint xsi:type="dc:Point" x="1084" y="595" />
179         <di:waypoint xsi:type="dc:Point" x="1212" y="595" />
180         <di:waypoint xsi:type="dc:Point" x="1212" y="486" />
181         <bpmndi:BPMNLabel>
182           <dc:Bounds x="1131" y="607" width="12" height="12" />
183         </bpmndi:BPMNLabel>
184       </bpmndi:BPMNEdge>
185       <bpmndi:BPMNEdge id="SequenceFlow_0cq2q6g_di" bpmnElement="SequenceFlow_0cq2q6g">
186         <di:waypoint xsi:type="dc:Point" x="321" y="595" />
187         <di:waypoint xsi:type="dc:Point" x="256" y="595" />
188         <bpmndi:BPMNLabel>
189           <dc:Bounds x="243.5" y="574" width="90" height="12" />
190         </bpmndi:BPMNLabel>
191       </bpmndi:BPMNEdge>
192       <bpmndi:BPMNShape id="EndEvent_1ido9wi_di" bpmnElement="deleteNSFailed_EndEvent">
193         <dc:Bounds x="524" y="410" width="36" height="36" />
194         <bpmndi:BPMNLabel>
195           <dc:Bounds x="460" y="450" width="75" height="12" />
196         </bpmndi:BPMNLabel>
197       </bpmndi:BPMNShape>
198       <bpmndi:BPMNShape id="EndEvent_0xgvlmx_di" bpmnElement="EndEvent_1gkvvpn">
199         <dc:Bounds x="1041" y="-3" width="36" height="36" />
200         <bpmndi:BPMNLabel>
201           <dc:Bounds x="1014" y="37" width="0" height="12" />
202         </bpmndi:BPMNLabel>
203       </bpmndi:BPMNShape>
204       <bpmndi:BPMNShape id="EndEvent_15pcuuc_di" bpmnElement="EndEvent_1x6k78c">
205         <dc:Bounds x="220" y="577" width="36" height="36" />
206         <bpmndi:BPMNLabel>
207           <dc:Bounds x="148" y="617" width="90" height="12" />
208         </bpmndi:BPMNLabel>
209       </bpmndi:BPMNShape>
210       <bpmndi:BPMNShape id="ScriptTask_0sxy5we_di" bpmnElement="queryJob_Task">
211         <dc:Bounds x="1009" y="271" width="100" height="80" />
212       </bpmndi:BPMNShape>
213       <bpmndi:BPMNShape id="ScriptTask_0xxyfku_di" bpmnElement="finishNSDelete_Task">
214         <dc:Bounds x="321" y="555" width="100" height="80" />
215       </bpmndi:BPMNShape>
216       <bpmndi:BPMNEdge id="SequenceFlow_0xqo13p_di" bpmnElement="SequenceFlow_0xqo13p">
217         <di:waypoint xsi:type="dc:Point" x="1059" y="351" />
218         <di:waypoint xsi:type="dc:Point" x="1059" y="570" />
219         <bpmndi:BPMNLabel>
220           <dc:Bounds x="1074" y="454.5" width="0" height="12" />
221         </bpmndi:BPMNLabel>
222       </bpmndi:BPMNEdge>
223       <bpmndi:BPMNShape id="ScriptTask_0rb5agx_di" bpmnElement="timeDelay_Task">
224         <dc:Bounds x="1162" y="406" width="100" height="80" />
225       </bpmndi:BPMNShape>
226       <bpmndi:BPMNEdge id="SequenceFlow_1gsbpxj_di" bpmnElement="SequenceFlow_1gsbpxj">
227         <di:waypoint xsi:type="dc:Point" x="1212" y="406" />
228         <di:waypoint xsi:type="dc:Point" x="1212" y="311" />
229         <di:waypoint xsi:type="dc:Point" x="1109" y="311" />
230         <bpmndi:BPMNLabel>
231           <dc:Bounds x="1227" y="352.5" width="0" height="12" />
232         </bpmndi:BPMNLabel>
233       </bpmndi:BPMNEdge>
234       <bpmndi:BPMNEdge id="SequenceFlow_150q0fo_di" bpmnElement="SequenceFlow_150q0fo">
235         <di:waypoint xsi:type="dc:Point" x="507" y="129" />
236         <di:waypoint xsi:type="dc:Point" x="694" y="129" />
237         <bpmndi:BPMNLabel>
238           <dc:Bounds x="600.5" y="108" width="0" height="12" />
239         </bpmndi:BPMNLabel>
240       </bpmndi:BPMNEdge>
241       <bpmndi:BPMNEdge id="SequenceFlow_1sjop71_di" bpmnElement="SequenceFlow_1sjop71">
242         <di:waypoint xsi:type="dc:Point" x="722" y="595" />
243         <di:waypoint xsi:type="dc:Point" x="567" y="595" />
244         <bpmndi:BPMNLabel>
245           <dc:Bounds x="644.5" y="574" width="0" height="12" />
246         </bpmndi:BPMNLabel>
247       </bpmndi:BPMNEdge>
248       <bpmndi:BPMNEdge id="SequenceFlow_18n2g9j_di" bpmnElement="deleteNSSuccess_SequenceFlow">
249         <di:waypoint xsi:type="dc:Point" x="517" y="595" />
250         <di:waypoint xsi:type="dc:Point" x="421" y="595" />
251         <bpmndi:BPMNLabel>
252           <dc:Bounds x="460" y="574" width="19" height="12" />
253         </bpmndi:BPMNLabel>
254       </bpmndi:BPMNEdge>
255     </bpmndi:BPMNPlane>
256   </bpmndi:BPMNDiagram>
257 </bpmn:definitions>