Merge "Reorder modifiers"
[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.11.3">
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_1h1c24p</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="deleteNSRelationship" />
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:sequenceFlow id="SequenceFlow_1h1c24p" sourceRef="deleteNSRelationship" targetRef="terminate_NSTask" />
100     <bpmn:scriptTask id="deleteNSRelationship" name="Delete NS Relationship " scriptFormat="groovy">
101       <bpmn:incoming>SequenceFlow_150q0fo</bpmn:incoming>
102       <bpmn:outgoing>SequenceFlow_1h1c24p</bpmn:outgoing>
103       <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
104 def dcsi = new DoDeleteVFCNetworkServiceInstance()
105 dcsi.deleteNSRelationship(execution)]]></bpmn:script>
106     </bpmn:scriptTask>
107   </bpmn:process>
108   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
109     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoDeleteVFCNetworkServiceInstance">
110       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="deleteNS_StartEvent">
111         <dc:Bounds x="175" y="111" width="36" height="36" />
112         <bpmndi:BPMNLabel>
113           <dc:Bounds x="151" y="147" width="86" height="24" />
114         </bpmndi:BPMNLabel>
115       </bpmndi:BPMNShape>
116       <bpmndi:BPMNEdge id="SequenceFlow_1qo2pln_di" bpmnElement="SequenceFlow_1qo2pln">
117         <di:waypoint xsi:type="dc:Point" x="211" y="129" />
118         <di:waypoint xsi:type="dc:Point" x="321" y="129" />
119         <bpmndi:BPMNLabel>
120           <dc:Bounds x="221" y="108" width="90" height="12" />
121         </bpmndi:BPMNLabel>
122       </bpmndi:BPMNEdge>
123       <bpmndi:BPMNShape id="ScriptTask_1dw39hg_di" bpmnElement="Task_09nzhwk">
124         <dc:Bounds x="722" y="555" width="100" height="80" />
125       </bpmndi:BPMNShape>
126       <bpmndi:BPMNShape id="ScriptTask_03j6ogo_di" bpmnElement="PreprocessIncomingRequest_task">
127         <dc:Bounds x="321" y="89" width="100" height="80" />
128       </bpmndi:BPMNShape>
129       <bpmndi:BPMNShape id="ScriptTask_1qmmew8_di" bpmnElement="terminate_NSTask">
130         <dc:Bounds x="744" y="89" width="100" height="80" />
131       </bpmndi:BPMNShape>
132       <bpmndi:BPMNShape id="ExclusiveGateway_0zfksms_di" bpmnElement="ExclusiveGateway_0zfksms" isMarkerVisible="true">
133         <dc:Bounds x="517" y="570" width="50" height="50" />
134         <bpmndi:BPMNLabel>
135           <dc:Bounds x="519" y="624" width="52" height="24" />
136         </bpmndi:BPMNLabel>
137       </bpmndi:BPMNShape>
138       <bpmndi:BPMNEdge id="SequenceFlow_0df541u_di" bpmnElement="deleteNSFailed_SequenceFlow">
139         <di:waypoint xsi:type="dc:Point" x="542" y="570" />
140         <di:waypoint xsi:type="dc:Point" x="542" y="446" />
141         <bpmndi:BPMNLabel>
142           <dc:Bounds x="551" y="474.11353711790395" width="12" height="12" />
143         </bpmndi:BPMNLabel>
144       </bpmndi:BPMNEdge>
145       <bpmndi:BPMNShape id="ExclusiveGateway_1is7zys_di" bpmnElement="ExclusiveGateway_1is7zys" isMarkerVisible="true">
146         <dc:Bounds x="1034" y="105" width="50" height="50" />
147         <bpmndi:BPMNLabel>
148           <dc:Bounds x="1032" y="159" width="65" height="24" />
149         </bpmndi:BPMNLabel>
150       </bpmndi:BPMNShape>
151       <bpmndi:BPMNEdge id="SequenceFlow_1ywe21t_di" bpmnElement="SequenceFlow_1ywe21t">
152         <di:waypoint xsi:type="dc:Point" x="844" y="129" />
153         <di:waypoint xsi:type="dc:Point" x="1034" y="130" />
154         <bpmndi:BPMNLabel>
155           <dc:Bounds x="894" y="108.5" width="90" height="12" />
156         </bpmndi:BPMNLabel>
157       </bpmndi:BPMNEdge>
158       <bpmndi:BPMNEdge id="SequenceFlow_0j7xo94_di" bpmnElement="terminateFailed_SequenceFlow">
159         <di:waypoint xsi:type="dc:Point" x="1059" y="105" />
160         <di:waypoint xsi:type="dc:Point" x="1059" y="33" />
161         <bpmndi:BPMNLabel>
162           <dc:Bounds x="1068" y="63" width="12" height="12" />
163         </bpmndi:BPMNLabel>
164       </bpmndi:BPMNEdge>
165       <bpmndi:BPMNEdge id="SequenceFlow_1ui2n9l_di" bpmnElement="terminateSuccess_SequenceFlow">
166         <di:waypoint xsi:type="dc:Point" x="1059" y="155" />
167         <di:waypoint xsi:type="dc:Point" x="1059" y="271" />
168         <bpmndi:BPMNLabel>
169           <dc:Bounds x="1066" y="207" width="19" height="12" />
170         </bpmndi:BPMNLabel>
171       </bpmndi:BPMNEdge>
172       <bpmndi:BPMNShape id="ExclusiveGateway_15492gl_di" bpmnElement="ExclusiveGateway_15492gl" isMarkerVisible="true">
173         <dc:Bounds x="1034" y="570" width="50" height="50" />
174         <bpmndi:BPMNLabel>
175           <dc:Bounds x="1040" y="624" width="47" height="24" />
176         </bpmndi:BPMNLabel>
177       </bpmndi:BPMNShape>
178       <bpmndi:BPMNEdge id="SequenceFlow_0hftgi6_di" bpmnElement="terminateFinished_SequenceFlow">
179         <di:waypoint xsi:type="dc:Point" x="1034" y="595" />
180         <di:waypoint xsi:type="dc:Point" x="822" y="595" />
181         <bpmndi:BPMNLabel>
182           <dc:Bounds x="891" y="574" width="19" height="12" />
183         </bpmndi:BPMNLabel>
184       </bpmndi:BPMNEdge>
185       <bpmndi:BPMNEdge id="SequenceFlow_0omec46_di" bpmnElement="terminateProcessing_SequenceFlow">
186         <di:waypoint xsi:type="dc:Point" x="1084" y="595" />
187         <di:waypoint xsi:type="dc:Point" x="1212" y="595" />
188         <di:waypoint xsi:type="dc:Point" x="1212" y="486" />
189         <bpmndi:BPMNLabel>
190           <dc:Bounds x="1131" y="607" width="12" height="12" />
191         </bpmndi:BPMNLabel>
192       </bpmndi:BPMNEdge>
193       <bpmndi:BPMNEdge id="SequenceFlow_0cq2q6g_di" bpmnElement="SequenceFlow_0cq2q6g">
194         <di:waypoint xsi:type="dc:Point" x="321" y="595" />
195         <di:waypoint xsi:type="dc:Point" x="256" y="595" />
196         <bpmndi:BPMNLabel>
197           <dc:Bounds x="243.5" y="574" width="90" height="12" />
198         </bpmndi:BPMNLabel>
199       </bpmndi:BPMNEdge>
200       <bpmndi:BPMNShape id="EndEvent_1ido9wi_di" bpmnElement="deleteNSFailed_EndEvent">
201         <dc:Bounds x="524" y="410" width="36" height="36" />
202         <bpmndi:BPMNLabel>
203           <dc:Bounds x="460" y="450" width="75" height="12" />
204         </bpmndi:BPMNLabel>
205       </bpmndi:BPMNShape>
206       <bpmndi:BPMNShape id="EndEvent_0xgvlmx_di" bpmnElement="EndEvent_1gkvvpn">
207         <dc:Bounds x="1041" y="-3" width="36" height="36" />
208         <bpmndi:BPMNLabel>
209           <dc:Bounds x="1014" y="37" width="0" height="12" />
210         </bpmndi:BPMNLabel>
211       </bpmndi:BPMNShape>
212       <bpmndi:BPMNShape id="EndEvent_15pcuuc_di" bpmnElement="EndEvent_1x6k78c">
213         <dc:Bounds x="220" y="577" width="36" height="36" />
214         <bpmndi:BPMNLabel>
215           <dc:Bounds x="148" y="617" width="90" height="12" />
216         </bpmndi:BPMNLabel>
217       </bpmndi:BPMNShape>
218       <bpmndi:BPMNShape id="ScriptTask_0sxy5we_di" bpmnElement="queryJob_Task">
219         <dc:Bounds x="1009" y="271" width="100" height="80" />
220       </bpmndi:BPMNShape>
221       <bpmndi:BPMNShape id="ScriptTask_0xxyfku_di" bpmnElement="finishNSDelete_Task">
222         <dc:Bounds x="321" y="555" width="100" height="80" />
223       </bpmndi:BPMNShape>
224       <bpmndi:BPMNEdge id="SequenceFlow_0xqo13p_di" bpmnElement="SequenceFlow_0xqo13p">
225         <di:waypoint xsi:type="dc:Point" x="1059" y="351" />
226         <di:waypoint xsi:type="dc:Point" x="1059" y="570" />
227         <bpmndi:BPMNLabel>
228           <dc:Bounds x="1074" y="454.5" width="0" height="12" />
229         </bpmndi:BPMNLabel>
230       </bpmndi:BPMNEdge>
231       <bpmndi:BPMNShape id="ScriptTask_0rb5agx_di" bpmnElement="timeDelay_Task">
232         <dc:Bounds x="1162" y="406" width="100" height="80" />
233       </bpmndi:BPMNShape>
234       <bpmndi:BPMNEdge id="SequenceFlow_1gsbpxj_di" bpmnElement="SequenceFlow_1gsbpxj">
235         <di:waypoint xsi:type="dc:Point" x="1212" y="406" />
236         <di:waypoint xsi:type="dc:Point" x="1212" y="311" />
237         <di:waypoint xsi:type="dc:Point" x="1109" y="311" />
238         <bpmndi:BPMNLabel>
239           <dc:Bounds x="1227" y="352.5" width="0" height="12" />
240         </bpmndi:BPMNLabel>
241       </bpmndi:BPMNEdge>
242       <bpmndi:BPMNEdge id="SequenceFlow_150q0fo_di" bpmnElement="SequenceFlow_150q0fo">
243         <di:waypoint xsi:type="dc:Point" x="421" y="129" />
244         <di:waypoint xsi:type="dc:Point" x="523" y="129" />
245         <bpmndi:BPMNLabel>
246           <dc:Bounds x="427" y="108" width="90" height="12" />
247         </bpmndi:BPMNLabel>
248       </bpmndi:BPMNEdge>
249       <bpmndi:BPMNEdge id="SequenceFlow_1sjop71_di" bpmnElement="SequenceFlow_1sjop71">
250         <di:waypoint xsi:type="dc:Point" x="722" y="595" />
251         <di:waypoint xsi:type="dc:Point" x="567" y="595" />
252         <bpmndi:BPMNLabel>
253           <dc:Bounds x="644.5" y="574" width="0" height="12" />
254         </bpmndi:BPMNLabel>
255       </bpmndi:BPMNEdge>
256       <bpmndi:BPMNEdge id="SequenceFlow_18n2g9j_di" bpmnElement="deleteNSSuccess_SequenceFlow">
257         <di:waypoint xsi:type="dc:Point" x="517" y="595" />
258         <di:waypoint xsi:type="dc:Point" x="421" y="595" />
259         <bpmndi:BPMNLabel>
260           <dc:Bounds x="460" y="574" width="19" height="12" />
261         </bpmndi:BPMNLabel>
262       </bpmndi:BPMNEdge>
263       <bpmndi:BPMNEdge id="SequenceFlow_1h1c24p_di" bpmnElement="SequenceFlow_1h1c24p">
264         <di:waypoint xsi:type="dc:Point" x="623" y="129" />
265         <di:waypoint xsi:type="dc:Point" x="744" y="129" />
266         <bpmndi:BPMNLabel>
267           <dc:Bounds x="683.5" y="108" width="0" height="12" />
268         </bpmndi:BPMNLabel>
269       </bpmndi:BPMNEdge>
270       <bpmndi:BPMNShape id="ScriptTask_11l4g48_di" bpmnElement="deleteNSRelationship">
271         <dc:Bounds x="523" y="89" width="100" height="80" />
272       </bpmndi:BPMNShape>
273     </bpmndi:BPMNPlane>
274   </bpmndi:BPMNDiagram>
275 </bpmn:definitions>