Merge "Reorder modifiers"
[so.git] / bpmn / MSOCommonBPMN / src / main / resources / subprocess / GenericDeleteVnf.bpmn
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="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:di="http://www.omg.org/spec/DD/20100524/DI" id="_oBLSkHqWEea26OhQB97uCQ" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="Camunda Modeler" exporterVersion="1.4.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">\r
3   <bpmn2:process id="GenericDeleteVnf" name="GenericDeleteVnf" isExecutable="true">\r
4     <bpmn2:startEvent id="StartEvent_1">\r
5       <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>\r
6     </bpmn2:startEvent>\r
7     <bpmn2:scriptTask id="initialization" name="Initialization" scriptFormat="groovy">\r
8       <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>\r
9       <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>\r
10       <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*\r
11 GenericDeleteVnf deleteVnf= new GenericDeleteVnf()\r
12 deleteVnf.preProcessRequest(execution)]]></bpmn2:script>\r
13     </bpmn2:scriptTask>\r
14     <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="initialization" />\r
15     <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="initialization" targetRef="resourceVersionCheck" />\r
16     <bpmn2:exclusiveGateway id="resourceVersionCheck" name="Resource Version Provided?" default="resourceVersionProvided">\r
17       <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>\r
18       <bpmn2:outgoing>resourceVariableNotProvided</bpmn2:outgoing>\r
19       <bpmn2:outgoing>resourceVersionProvided</bpmn2:outgoing>\r
20     </bpmn2:exclusiveGateway>\r
21     <bpmn2:sequenceFlow id="resourceVariableNotProvided" name="No" sourceRef="resourceVersionCheck" targetRef="queryForResourceVersion">\r
22       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("GENDV_resourceVersionProvided") == false}]]></bpmn2:conditionExpression>\r
23     </bpmn2:sequenceFlow>\r
24     <bpmn2:sequenceFlow id="resourceVersionProvided" name="Yes" sourceRef="resourceVersionCheck" targetRef="ExclusiveGateway_2" />\r
25     <bpmn2:subProcess id="bpmnExceptionHandlingSubProcess" name="Error Handling Sub Process" triggeredByEvent="true">\r
26       <bpmn2:scriptTask id="processBPMNError" name="Process Error" scriptFormat="groovy">\r
27         <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>\r
28         <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>\r
29         <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*\r
30 \r
31 ExceptionUtil ex = new ExceptionUtil()\r
32 ex.processSubflowsBPMNException(execution)]]></bpmn2:script>\r
33       </bpmn2:scriptTask>\r
34       <bpmn2:sequenceFlow id="SequenceFlow_3" name="" sourceRef="processBPMNError" targetRef="EndEvent_2" />\r
35       <bpmn2:startEvent id="StartEvent_2">\r
36         <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>\r
37         <bpmn2:errorEventDefinition id="ErrorEventDefinition_1" />\r
38       </bpmn2:startEvent>\r
39       <bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="StartEvent_2" targetRef="processBPMNError" />\r
40       <bpmn2:endEvent id="EndEvent_2">\r
41         <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>\r
42         <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_40" />\r
43       </bpmn2:endEvent>\r
44     </bpmn2:subProcess>\r
45     <bpmn2:scriptTask id="queryForResourceVersion" name="Query SI Resource Version" scriptFormat="groovy">\r
46       <bpmn2:incoming>resourceVariableNotProvided</bpmn2:incoming>\r
47       <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>\r
48       <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*\r
49 GenericDeleteVnf deleteVnf= new GenericDeleteVnf()\r
50 deleteVnf.getVnfResourceVersion(execution)]]></bpmn2:script>\r
51     </bpmn2:scriptTask>\r
52     <bpmn2:sequenceFlow id="SequenceFlow_5" name="" sourceRef="queryForResourceVersion" targetRef="vnfFoundCheck" />\r
53     <bpmn2:scriptTask id="toggleSuccess" name="Toggle Success Indicator" scriptFormat="groovy">\r
54       <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>\r
55       <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>\r
56       <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*\r
57 GenericDeleteVnf deleteVnf= new GenericDeleteVnf()\r
58 deleteVnf.setSuccessIndicator(execution, true)\r
59 \r
60 execution.setVariable("WorkflowResponse", " ")  //for junits]]></bpmn2:script>\r
61     </bpmn2:scriptTask>\r
62     <bpmn2:sequenceFlow id="SequenceFlow_8" name="" sourceRef="toggleSuccess" targetRef="EndEvent_1" />\r
63     <bpmn2:scriptTask id="deleteVnf" name="DELETE\r
64 &#10;Vnf" scriptFormat="groovy">\r
65       <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>\r
66       <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>\r
67       <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*\r
68 GenericDeleteVnf deleteVnf= new GenericDeleteVnf()\r
69 deleteVnf.deleteVnf(execution)]]></bpmn2:script>\r
70     </bpmn2:scriptTask>\r
71     <bpmn2:sequenceFlow id="SequenceFlow_7" name="" sourceRef="deleteVnf" targetRef="toggleSuccess" />\r
72     <bpmn2:endEvent id="EndEvent_3">\r
73       <bpmn2:incoming>vnfFoundNo</bpmn2:incoming>\r
74       <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_41" />\r
75     </bpmn2:endEvent>\r
76     <bpmn2:exclusiveGateway id="vnfFoundCheck" name="Vnf Found?" default="vnfFoundNo">\r
77       <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>\r
78       <bpmn2:outgoing>vnfFoundYes</bpmn2:outgoing>\r
79       <bpmn2:outgoing>vnfFoundNo</bpmn2:outgoing>\r
80     </bpmn2:exclusiveGateway>\r
81     <bpmn2:sequenceFlow id="vnfFoundYes" name="Yes" sourceRef="vnfFoundCheck" targetRef="ExclusiveGateway_2">\r
82       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("GENDV_FoundIndicator") == true}]]></bpmn2:conditionExpression>\r
83     </bpmn2:sequenceFlow>\r
84     <bpmn2:sequenceFlow id="vnfFoundNo" name="No" sourceRef="vnfFoundCheck" targetRef="EndEvent_3" />\r
85     <bpmn2:exclusiveGateway id="ExclusiveGateway_2">\r
86       <bpmn2:incoming>resourceVersionProvided</bpmn2:incoming>\r
87       <bpmn2:incoming>vnfFoundYes</bpmn2:incoming>\r
88       <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>\r
89     </bpmn2:exclusiveGateway>\r
90     <bpmn2:sequenceFlow id="SequenceFlow_6" name="" sourceRef="ExclusiveGateway_2" targetRef="deleteVnf" />\r
91     <bpmn2:endEvent id="EndEvent_1">\r
92       <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>\r
93       <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_39" />\r
94     </bpmn2:endEvent>\r
95   </bpmn2:process>\r
96   <bpmndi:BPMNDiagram id="BPMNDiagram_1">\r
97     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="GenericDeleteVnf">\r
98       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_78" bpmnElement="StartEvent_1">\r
99         <dc:Bounds x="74" y="216" width="36" height="36" />\r
100         <bpmndi:BPMNLabel>\r
101           <dc:Bounds x="92" y="257" width="0" height="0" />\r
102         </bpmndi:BPMNLabel>\r
103       </bpmndi:BPMNShape>\r
104       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_310" bpmnElement="initialization">\r
105         <dc:Bounds x="192" y="194" width="100" height="80" />\r
106       </bpmndi:BPMNShape>\r
107       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_78" targetElement="_BPMNShape_ScriptTask_310">\r
108         <di:waypoint xsi:type="dc:Point" x="110" y="234" />\r
109         <di:waypoint xsi:type="dc:Point" x="192" y="234" />\r
110       </bpmndi:BPMNEdge>\r
111       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_239" bpmnElement="resourceVersionCheck" isMarkerVisible="true">\r
112         <dc:Bounds x="326" y="208" width="50" height="50" />\r
113         <bpmndi:BPMNLabel>\r
114           <dc:Bounds x="360" y="238" width="169" height="22" />\r
115         </bpmndi:BPMNLabel>\r
116       </bpmndi:BPMNShape>\r
117       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ScriptTask_310" targetElement="_BPMNShape_ExclusiveGateway_239">\r
118         <di:waypoint xsi:type="dc:Point" x="236" y="476" />\r
119         <di:waypoint xsi:type="dc:Point" x="288" y="476" />\r
120         <bpmndi:BPMNLabel>\r
121           <dc:Bounds x="262" y="476" width="0" height="0" />\r
122         </bpmndi:BPMNLabel>\r
123       </bpmndi:BPMNEdge>\r
124       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_320" bpmnElement="queryForResourceVersion">\r
125         <dc:Bounds x="408" y="96" width="100" height="80" />\r
126       </bpmndi:BPMNShape>\r
127       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_321" bpmnElement="deleteVnf">\r
128         <dc:Bounds x="658" y="194" width="100" height="80" />\r
129       </bpmndi:BPMNShape>\r
130       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_240" bpmnElement="ExclusiveGateway_2" isMarkerVisible="true">\r
131         <dc:Bounds x="562" y="208" width="50" height="50" />\r
132         <bpmndi:BPMNLabel>\r
133           <dc:Bounds x="587" y="263" width="0" height="0" />\r
134         </bpmndi:BPMNLabel>\r
135       </bpmndi:BPMNShape>\r
136       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_322" bpmnElement="toggleSuccess">\r
137         <dc:Bounds x="802" y="194" width="100" height="80" />\r
138       </bpmndi:BPMNShape>\r
139       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_240" bpmnElement="EndEvent_1">\r
140         <dc:Bounds x="1001" y="216" width="36" height="36" />\r
141         <bpmndi:BPMNLabel>\r
142           <dc:Bounds x="1019" y="257" width="0" height="0" />\r
143         </bpmndi:BPMNLabel>\r
144       </bpmndi:BPMNShape>\r
145       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="resourceVariableNotProvided" sourceElement="_BPMNShape_ExclusiveGateway_239" targetElement="_BPMNShape_ScriptTask_320">\r
146         <di:waypoint xsi:type="dc:Point" x="351" y="208" />\r
147         <di:waypoint xsi:type="dc:Point" x="351" y="136" />\r
148         <di:waypoint xsi:type="dc:Point" x="408" y="136" />\r
149         <bpmndi:BPMNLabel>\r
150           <dc:Bounds x="354" y="165" width="22" height="22" />\r
151         </bpmndi:BPMNLabel>\r
152       </bpmndi:BPMNEdge>\r
153       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="resourceVersionProvided" sourceElement="_BPMNShape_ExclusiveGateway_239" targetElement="_BPMNShape_ExclusiveGateway_240">\r
154         <di:waypoint xsi:type="dc:Point" x="351" y="258" />\r
155         <di:waypoint xsi:type="dc:Point" x="351" y="312" />\r
156         <di:waypoint xsi:type="dc:Point" x="459" y="312" />\r
157         <di:waypoint xsi:type="dc:Point" x="587" y="312" />\r
158         <di:waypoint xsi:type="dc:Point" x="587" y="258" />\r
159         <bpmndi:BPMNLabel>\r
160           <dc:Bounds x="351" y="276" width="29" height="22" />\r
161         </bpmndi:BPMNLabel>\r
162       </bpmndi:BPMNEdge>\r
163       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_ScriptTask_320" targetElement="_BPMNShape_ExclusiveGateway_242">\r
164         <di:waypoint xsi:type="dc:Point" x="508" y="136" />\r
165         <di:waypoint xsi:type="dc:Point" x="562" y="135" />\r
166         <bpmndi:BPMNLabel>\r
167           <dc:Bounds x="558" y="135" width="6" height="6" />\r
168         </bpmndi:BPMNLabel>\r
169       </bpmndi:BPMNEdge>\r
170       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_ExclusiveGateway_240" targetElement="_BPMNShape_ScriptTask_321">\r
171         <di:waypoint xsi:type="dc:Point" x="612" y="233" />\r
172         <di:waypoint xsi:type="dc:Point" x="658" y="234" />\r
173         <bpmndi:BPMNLabel>\r
174           <dc:Bounds x="633" y="234" width="6" height="6" />\r
175         </bpmndi:BPMNLabel>\r
176       </bpmndi:BPMNEdge>\r
177       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_ScriptTask_321" targetElement="_BPMNShape_ScriptTask_322">\r
178         <di:waypoint xsi:type="dc:Point" x="758" y="234" />\r
179         <di:waypoint xsi:type="dc:Point" x="802" y="234" />\r
180         <bpmndi:BPMNLabel>\r
181           <dc:Bounds x="777" y="234" width="6" height="6" />\r
182         </bpmndi:BPMNLabel>\r
183       </bpmndi:BPMNEdge>\r
184       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_ScriptTask_322" targetElement="_BPMNShape_EndEvent_240">\r
185         <di:waypoint xsi:type="dc:Point" x="902" y="234" />\r
186         <di:waypoint xsi:type="dc:Point" x="1001" y="234" />\r
187         <bpmndi:BPMNLabel>\r
188           <dc:Bounds x="949" y="234" width="6" height="6" />\r
189         </bpmndi:BPMNLabel>\r
190       </bpmndi:BPMNEdge>\r
191       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_ScriptTask_310" targetElement="_BPMNShape_ExclusiveGateway_239">\r
192         <di:waypoint xsi:type="dc:Point" x="292" y="234" />\r
193         <di:waypoint xsi:type="dc:Point" x="326" y="233" />\r
194         <bpmndi:BPMNLabel>\r
195           <dc:Bounds x="311" y="233" width="6" height="6" />\r
196         </bpmndi:BPMNLabel>\r
197       </bpmndi:BPMNEdge>\r
198       <bpmndi:BPMNShape id="_BPMNShape_SubProcess_36" bpmnElement="bpmnExceptionHandlingSubProcess" isExpanded="true">\r
199         <dc:Bounds x="185" y="397" width="304" height="157" />\r
200       </bpmndi:BPMNShape>\r
201       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_82" bpmnElement="StartEvent_2">\r
202         <dc:Bounds x="200" y="458" width="36" height="36" />\r
203         <bpmndi:BPMNLabel>\r
204           <dc:Bounds x="218" y="499" width="0" height="0" />\r
205         </bpmndi:BPMNLabel>\r
206       </bpmndi:BPMNShape>\r
207       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_242" bpmnElement="EndEvent_2">\r
208         <dc:Bounds x="440" y="458" width="36" height="36" />\r
209         <bpmndi:BPMNLabel>\r
210           <dc:Bounds x="458" y="499" width="0" height="0" />\r
211         </bpmndi:BPMNLabel>\r
212       </bpmndi:BPMNShape>\r
213       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_323" bpmnElement="processBPMNError">\r
214         <dc:Bounds x="288" y="436" width="100" height="80" />\r
215       </bpmndi:BPMNShape>\r
216       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ScriptTask_323" targetElement="_BPMNShape_EndEvent_242">\r
217         <di:waypoint xsi:type="dc:Point" x="388" y="476" />\r
218         <di:waypoint xsi:type="dc:Point" x="440" y="476" />\r
219         <bpmndi:BPMNLabel>\r
220           <dc:Bounds x="414" y="476" width="0" height="0" />\r
221         </bpmndi:BPMNLabel>\r
222       </bpmndi:BPMNEdge>\r
223       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_242" bpmnElement="vnfFoundCheck" isMarkerVisible="true">\r
224         <dc:Bounds x="562" y="110" width="50" height="50" />\r
225         <bpmndi:BPMNLabel>\r
226           <dc:Bounds x="552" y="90" width="72" height="22" />\r
227         </bpmndi:BPMNLabel>\r
228       </bpmndi:BPMNShape>\r
229       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_243" bpmnElement="EndEvent_3">\r
230         <dc:Bounds x="708" y="118" width="36" height="36" />\r
231         <bpmndi:BPMNLabel>\r
232           <dc:Bounds x="726" y="159" width="0" height="0" />\r
233         </bpmndi:BPMNLabel>\r
234       </bpmndi:BPMNShape>\r
235       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="vnfFoundYes" sourceElement="_BPMNShape_ExclusiveGateway_242" targetElement="_BPMNShape_ExclusiveGateway_240">\r
236         <di:waypoint xsi:type="dc:Point" x="587" y="160" />\r
237         <di:waypoint xsi:type="dc:Point" x="587" y="208" />\r
238         <bpmndi:BPMNLabel>\r
239           <dc:Bounds x="587" y="165" width="29" height="22" />\r
240         </bpmndi:BPMNLabel>\r
241       </bpmndi:BPMNEdge>\r
242       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_12" bpmnElement="vnfFoundNo" sourceElement="_BPMNShape_ExclusiveGateway_242" targetElement="_BPMNShape_EndEvent_243">\r
243         <di:waypoint xsi:type="dc:Point" x="612" y="135" />\r
244         <di:waypoint xsi:type="dc:Point" x="708" y="136" />\r
245         <bpmndi:BPMNLabel>\r
246           <dc:Bounds x="637" y="135" width="22" height="22" />\r
247         </bpmndi:BPMNLabel>\r
248       </bpmndi:BPMNEdge>\r
249     </bpmndi:BPMNPlane>\r
250   </bpmndi:BPMNDiagram>\r
251 </bpmn2:definitions>