Initial OpenECOMP MSO commit
[so.git] / bpmn / MSOGammaBPMN / 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" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="_oBLSkHqWEea26OhQB97uCQ" exporter="camunda modeler" exporterVersion="2.7.0" targetNamespace="http://activiti.org/bpmn">\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 com.att.bpm.scripts.*
11 GenericDeleteVnf deleteVnf= new GenericDeleteVnf()
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 com.att.bpm.scripts.*
30
31 ExceptionUtil ex = new ExceptionUtil()
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 com.att.bpm.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 com.att.bpm.scripts.*
57 GenericDeleteVnf deleteVnf= new GenericDeleteVnf()
58 deleteVnf.setSuccessIndicator(execution, true)
59
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&#xD;&#xA;Vnf" scriptFormat="groovy">\r
64       <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>\r
65       <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>\r
66       <bpmn2:script><![CDATA[import com.att.bpm.scripts.*
67 GenericDeleteVnf deleteVnf= new GenericDeleteVnf()
68 deleteVnf.deleteVnf(execution)]]></bpmn2:script>\r
69     </bpmn2:scriptTask>\r
70     <bpmn2:sequenceFlow id="SequenceFlow_7" name="" sourceRef="deleteVnf" targetRef="toggleSuccess"/>\r
71     <bpmn2:endEvent id="EndEvent_3">\r
72       <bpmn2:incoming>vnfFoundNo</bpmn2:incoming>\r
73       <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_41"/>\r
74     </bpmn2:endEvent>\r
75     <bpmn2:exclusiveGateway id="vnfFoundCheck" name="Vnf Found?" default="vnfFoundNo">\r
76       <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>\r
77       <bpmn2:outgoing>vnfFoundYes</bpmn2:outgoing>\r
78       <bpmn2:outgoing>vnfFoundNo</bpmn2:outgoing>\r
79     </bpmn2:exclusiveGateway>\r
80     <bpmn2:sequenceFlow id="vnfFoundYes" name="Yes" sourceRef="vnfFoundCheck" targetRef="ExclusiveGateway_2">\r
81       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("GENDV_FoundIndicator") == true}]]></bpmn2:conditionExpression>\r
82     </bpmn2:sequenceFlow>\r
83     <bpmn2:sequenceFlow id="vnfFoundNo" name="No" sourceRef="vnfFoundCheck" targetRef="EndEvent_3"/>\r
84     <bpmn2:exclusiveGateway id="ExclusiveGateway_2">\r
85       <bpmn2:incoming>resourceVersionProvided</bpmn2:incoming>\r
86       <bpmn2:incoming>vnfFoundYes</bpmn2:incoming>\r
87       <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>\r
88     </bpmn2:exclusiveGateway>\r
89     <bpmn2:sequenceFlow id="SequenceFlow_6" name="" sourceRef="ExclusiveGateway_2" targetRef="deleteVnf"/>\r
90     <bpmn2:endEvent id="EndEvent_1">\r
91       <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>\r
92       <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_39"/>\r
93     </bpmn2:endEvent>\r
94   </bpmn2:process>\r
95   <bpmndi:BPMNDiagram id="BPMNDiagram_1">\r
96     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="GenericDeleteVnf">\r
97       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_78" bpmnElement="StartEvent_1">\r
98         <dc:Bounds height="36.0" width="36.0" x="74.0" y="216.0"/>\r
99         <bpmndi:BPMNLabel>\r
100           <dc:Bounds height="0.0" width="0.0" x="92.0" y="257.0"/>\r
101         </bpmndi:BPMNLabel>\r
102       </bpmndi:BPMNShape>\r
103       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_310" bpmnElement="initialization">\r
104         <dc:Bounds height="80.0" width="100.0" x="192.0" y="194.0"/>\r
105       </bpmndi:BPMNShape>\r
106       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_78" targetElement="_BPMNShape_ScriptTask_310">\r
107         <di:waypoint xsi:type="dc:Point" x="110.0" y="234.0"/>\r
108         <di:waypoint xsi:type="dc:Point" x="192.0" y="234.0"/>\r
109       </bpmndi:BPMNEdge>\r
110       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_239" bpmnElement="resourceVersionCheck" isMarkerVisible="true">\r
111         <dc:Bounds height="50.0" width="50.0" x="326.0" y="208.0"/>\r
112         <bpmndi:BPMNLabel>\r
113           <dc:Bounds height="22.0" width="169.0" x="360.0" y="238.0"/>\r
114         </bpmndi:BPMNLabel>\r
115       </bpmndi:BPMNShape>\r
116       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ScriptTask_310" targetElement="_BPMNShape_ExclusiveGateway_239">\r
117         <di:waypoint xsi:type="dc:Point" x="168.0" y="466.0"/>\r
118         <di:waypoint xsi:type="dc:Point" x="220.0" y="466.0"/>\r
119         <bpmndi:BPMNLabel>\r
120           <dc:Bounds height="6.0" width="6.0" x="191.0" y="466.0"/>\r
121         </bpmndi:BPMNLabel>\r
122       </bpmndi:BPMNEdge>\r
123       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_320" bpmnElement="queryForResourceVersion">\r
124         <dc:Bounds height="80.0" width="100.0" x="408.0" y="96.0"/>\r
125       </bpmndi:BPMNShape>\r
126       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_321" bpmnElement="deleteVnf">\r
127         <dc:Bounds height="80.0" width="100.0" x="658.0" y="194.0"/>\r
128       </bpmndi:BPMNShape>\r
129       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_240" bpmnElement="ExclusiveGateway_2" isMarkerVisible="true">\r
130         <dc:Bounds height="50.0" width="50.0" x="562.0" y="208.0"/>\r
131         <bpmndi:BPMNLabel>\r
132           <dc:Bounds height="0.0" width="0.0" x="587.0" y="263.0"/>\r
133         </bpmndi:BPMNLabel>\r
134       </bpmndi:BPMNShape>\r
135       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_322" bpmnElement="toggleSuccess">\r
136         <dc:Bounds height="80.0" width="100.0" x="802.0" y="194.0"/>\r
137       </bpmndi:BPMNShape>\r
138       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_240" bpmnElement="EndEvent_1">\r
139         <dc:Bounds height="36.0" width="36.0" x="1001.0" y="216.0"/>\r
140         <bpmndi:BPMNLabel>\r
141           <dc:Bounds height="0.0" width="0.0" x="1019.0" y="257.0"/>\r
142         </bpmndi:BPMNLabel>\r
143       </bpmndi:BPMNShape>\r
144       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="resourceVariableNotProvided" sourceElement="_BPMNShape_ExclusiveGateway_239" targetElement="_BPMNShape_ScriptTask_320">\r
145         <di:waypoint xsi:type="dc:Point" x="351.0" y="208.0"/>\r
146         <di:waypoint xsi:type="dc:Point" x="351.0" y="136.0"/>\r
147         <di:waypoint xsi:type="dc:Point" x="408.0" y="136.0"/>\r
148         <bpmndi:BPMNLabel>\r
149           <dc:Bounds height="22.0" width="22.0" x="354.0" y="165.0"/>\r
150         </bpmndi:BPMNLabel>\r
151       </bpmndi:BPMNEdge>\r
152       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="resourceVersionProvided" sourceElement="_BPMNShape_ExclusiveGateway_239" targetElement="_BPMNShape_ExclusiveGateway_240">\r
153         <di:waypoint xsi:type="dc:Point" x="351.0" y="258.0"/>\r
154         <di:waypoint xsi:type="dc:Point" x="351.0" y="312.0"/>\r
155         <di:waypoint xsi:type="dc:Point" x="459.0" y="312.0"/>\r
156         <di:waypoint xsi:type="dc:Point" x="587.0" y="312.0"/>\r
157         <di:waypoint xsi:type="dc:Point" x="587.0" y="258.0"/>\r
158         <bpmndi:BPMNLabel>\r
159           <dc:Bounds height="22.0" width="29.0" x="351.0" y="276.0"/>\r
160         </bpmndi:BPMNLabel>\r
161       </bpmndi:BPMNEdge>\r
162       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_ScriptTask_320" targetElement="_BPMNShape_ExclusiveGateway_242">\r
163         <di:waypoint xsi:type="dc:Point" x="508.0" y="136.0"/>\r
164         <di:waypoint xsi:type="dc:Point" x="562.0" y="135.0"/>\r
165         <bpmndi:BPMNLabel>\r
166           <dc:Bounds height="6.0" width="6.0" x="558.0" y="135.0"/>\r
167         </bpmndi:BPMNLabel>\r
168       </bpmndi:BPMNEdge>\r
169       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_ExclusiveGateway_240" targetElement="_BPMNShape_ScriptTask_321">\r
170         <di:waypoint xsi:type="dc:Point" x="612.0" y="233.0"/>\r
171         <di:waypoint xsi:type="dc:Point" x="658.0" y="234.0"/>\r
172         <bpmndi:BPMNLabel>\r
173           <dc:Bounds height="6.0" width="6.0" x="633.0" y="234.0"/>\r
174         </bpmndi:BPMNLabel>\r
175       </bpmndi:BPMNEdge>\r
176       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_ScriptTask_321" targetElement="_BPMNShape_ScriptTask_322">\r
177         <di:waypoint xsi:type="dc:Point" x="758.0" y="234.0"/>\r
178         <di:waypoint xsi:type="dc:Point" x="802.0" y="234.0"/>\r
179         <bpmndi:BPMNLabel>\r
180           <dc:Bounds height="6.0" width="6.0" x="777.0" y="234.0"/>\r
181         </bpmndi:BPMNLabel>\r
182       </bpmndi:BPMNEdge>\r
183       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_ScriptTask_322" targetElement="_BPMNShape_EndEvent_240">\r
184         <di:waypoint xsi:type="dc:Point" x="902.0" y="234.0"/>\r
185         <di:waypoint xsi:type="dc:Point" x="1001.0" y="234.0"/>\r
186         <bpmndi:BPMNLabel>\r
187           <dc:Bounds height="6.0" width="6.0" x="949.0" y="234.0"/>\r
188         </bpmndi:BPMNLabel>\r
189       </bpmndi:BPMNEdge>\r
190       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_ScriptTask_310" targetElement="_BPMNShape_ExclusiveGateway_239">\r
191         <di:waypoint xsi:type="dc:Point" x="292.0" y="234.0"/>\r
192         <di:waypoint xsi:type="dc:Point" x="326.0" y="233.0"/>\r
193         <bpmndi:BPMNLabel>\r
194           <dc:Bounds height="6.0" width="6.0" x="311.0" y="233.0"/>\r
195         </bpmndi:BPMNLabel>\r
196       </bpmndi:BPMNEdge>\r
197       <bpmndi:BPMNShape id="_BPMNShape_SubProcess_36" bpmnElement="bpmnExceptionHandlingSubProcess" isExpanded="true">\r
198         <dc:Bounds height="157.0" width="304.0" x="117.0" y="387.0"/>\r
199       </bpmndi:BPMNShape>\r
200       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_82" bpmnElement="StartEvent_2">\r
201         <dc:Bounds height="36.0" width="36.0" x="132.0" y="448.0"/>\r
202         <bpmndi:BPMNLabel>\r
203           <dc:Bounds height="0.0" width="0.0" x="150.0" y="489.0"/>\r
204         </bpmndi:BPMNLabel>\r
205       </bpmndi:BPMNShape>\r
206       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_242" bpmnElement="EndEvent_2">\r
207         <dc:Bounds height="36.0" width="36.0" x="372.0" y="448.0"/>\r
208         <bpmndi:BPMNLabel>\r
209           <dc:Bounds height="0.0" width="0.0" x="390.0" y="489.0"/>\r
210         </bpmndi:BPMNLabel>\r
211       </bpmndi:BPMNShape>\r
212       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_323" bpmnElement="processBPMNError">\r
213         <dc:Bounds height="80.0" width="100.0" x="220.0" y="426.0"/>\r
214       </bpmndi:BPMNShape>\r
215       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ScriptTask_323" targetElement="_BPMNShape_EndEvent_242">\r
216         <di:waypoint xsi:type="dc:Point" x="320.0" y="466.0"/>\r
217         <di:waypoint xsi:type="dc:Point" x="372.0" y="466.0"/>\r
218         <bpmndi:BPMNLabel>\r
219           <dc:Bounds height="6.0" width="6.0" x="343.0" y="466.0"/>\r
220         </bpmndi:BPMNLabel>\r
221       </bpmndi:BPMNEdge>\r
222       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_242" bpmnElement="vnfFoundCheck" isMarkerVisible="true">\r
223         <dc:Bounds height="50.0" width="50.0" x="562.0" y="110.0"/>\r
224         <bpmndi:BPMNLabel>\r
225           <dc:Bounds height="22.0" width="72.0" x="552.0" y="90.0"/>\r
226         </bpmndi:BPMNLabel>\r
227       </bpmndi:BPMNShape>\r
228       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_243" bpmnElement="EndEvent_3">\r
229         <dc:Bounds height="36.0" width="36.0" x="708.0" y="118.0"/>\r
230         <bpmndi:BPMNLabel>\r
231           <dc:Bounds height="0.0" width="0.0" x="726.0" y="159.0"/>\r
232         </bpmndi:BPMNLabel>\r
233       </bpmndi:BPMNShape>\r
234       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="vnfFoundYes" sourceElement="_BPMNShape_ExclusiveGateway_242" targetElement="_BPMNShape_ExclusiveGateway_240">\r
235         <di:waypoint xsi:type="dc:Point" x="587.0" y="160.0"/>\r
236         <di:waypoint xsi:type="dc:Point" x="587.0" y="208.0"/>\r
237         <bpmndi:BPMNLabel>\r
238           <dc:Bounds height="22.0" width="29.0" x="587.0" y="165.0"/>\r
239         </bpmndi:BPMNLabel>\r
240       </bpmndi:BPMNEdge>\r
241       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_12" bpmnElement="vnfFoundNo" sourceElement="_BPMNShape_ExclusiveGateway_242" targetElement="_BPMNShape_EndEvent_243">\r
242         <di:waypoint xsi:type="dc:Point" x="612.0" y="135.0"/>\r
243         <di:waypoint xsi:type="dc:Point" x="708.0" y="136.0"/>\r
244         <bpmndi:BPMNLabel>\r
245           <dc:Bounds height="22.0" width="22.0" x="637.0" y="135.0"/>\r
246         </bpmndi:BPMNLabel>\r
247       </bpmndi:BPMNEdge>\r
248     </bpmndi:BPMNPlane>\r
249   </bpmndi:BPMNDiagram>\r
250 </bpmn2:definitions>