2fba166dc4d181f05af131e7c3b837509266201d
[so.git] / bpmn / MSOInfrastructureBPMN / src / main / resources / subprocess / DoCreateVnfAndModulesRollback.bpmn
1 <?xml version="1.0" encoding="UTF-8"?>
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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="_Wblj8GyfEeWUWLTvug7ZOg" 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">
3   <bpmn2:process id="DoCreateVnfAndModulesRollback" name="DoCreateVnfAndModulesRollback" isExecutable="true">
4     <bpmn2:subProcess id="SubProcess_1" name="Rollback Error Handling" triggeredByEvent="true">
5       <bpmn2:startEvent id="CatchExceptions" name="Catch Exceptions">
6         <bpmn2:outgoing>SequenceFlow_12</bpmn2:outgoing>
7         <bpmn2:errorEventDefinition id="ErrorEventDefinition_1" />
8       </bpmn2:startEvent>
9       <bpmn2:endEvent id="EndEvent_1">
10         <bpmn2:incoming>SequenceFlow_22</bpmn2:incoming>
11       </bpmn2:endEvent>
12       <bpmn2:sequenceFlow id="SequenceFlow_12" name="" sourceRef="CatchExceptions" targetRef="LogSaveWorkflowException" />
13       <bpmn2:scriptTask id="LogSaveWorkflowException" name="Log and Save Workflow Exception" scriptFormat="groovy">
14         <bpmn2:incoming>SequenceFlow_12</bpmn2:incoming>
15         <bpmn2:outgoing>SequenceFlow_22</bpmn2:outgoing>
16         <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
17 def dcvfmr = new DoCreateVfModuleRollback()
18 dcvfmr.logWorkflowException(execution, 'DoCreateVfModuleRollback caught an event')
19 dcvfmr.saveWorkflowException(execution, 'DCVFMR_CaughtWorkflowException1')]]></bpmn2:script>
20       </bpmn2:scriptTask>
21       <bpmn2:sequenceFlow id="SequenceFlow_22" name="" sourceRef="LogSaveWorkflowException" targetRef="EndEvent_1" />
22     </bpmn2:subProcess>
23     <bpmn2:boundaryEvent id="BoundaryEvent_1" name="" attachedToRef="SubProcess_1">
24       <bpmn2:outgoing>SequenceFlow_23</bpmn2:outgoing>
25       <bpmn2:errorEventDefinition id="_ErrorEventDefinition_86" />
26     </bpmn2:boundaryEvent>
27     <bpmn2:endEvent id="EndEvent_2">
28       <bpmn2:incoming>SequenceFlow_23</bpmn2:incoming>
29     </bpmn2:endEvent>
30     <bpmn2:sequenceFlow id="SequenceFlow_23" name="" sourceRef="BoundaryEvent_1" targetRef="EndEvent_2" />
31     <bpmn2:startEvent id="StartEvent_1gai4qr">
32       <bpmn2:outgoing>SequenceFlow_1537b7m</bpmn2:outgoing>
33     </bpmn2:startEvent>
34     <bpmn2:exclusiveGateway id="ExclusiveGateway_12v8g91" name="Are there VF Modules to roll back?" default="SequenceFlow_1r6wyy6">
35       <bpmn2:incoming>SequenceFlow_0bmsi5h</bpmn2:incoming>
36       <bpmn2:incoming>SequenceFlow_1srw52v</bpmn2:incoming>
37       <bpmn2:outgoing>SequenceFlow_1r6wyy6</bpmn2:outgoing>
38       <bpmn2:outgoing>SequenceFlow_0v85t87</bpmn2:outgoing>
39     </bpmn2:exclusiveGateway>
40     <bpmn2:exclusiveGateway id="ExclusiveGateway_09ajxqr" name="Delete VNF?" default="SequenceFlow_1yas9ol">
41       <bpmn2:incoming>SequenceFlow_1r6wyy6</bpmn2:incoming>
42       <bpmn2:outgoing>SequenceFlow_1kr0r4a</bpmn2:outgoing>
43       <bpmn2:outgoing>SequenceFlow_1yas9ol</bpmn2:outgoing>
44     </bpmn2:exclusiveGateway>
45     <bpmn2:endEvent id="EndEvent_1seag7u">
46       <bpmn2:incoming>SequenceFlow_04yd2yr</bpmn2:incoming>
47       <bpmn2:incoming>SequenceFlow_1yas9ol</bpmn2:incoming>
48     </bpmn2:endEvent>
49     <bpmn2:sequenceFlow id="SequenceFlow_1537b7m" sourceRef="StartEvent_1gai4qr" targetRef="PreProcessRequest" />
50     <bpmn2:scriptTask id="PreProcessRequest" name="PreProcess Request" scriptFormat="groovy">
51       <bpmn2:incoming>SequenceFlow_1537b7m</bpmn2:incoming>
52       <bpmn2:outgoing>SequenceFlow_0bmsi5h</bpmn2:outgoing>
53       <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
54 def dcvamr = new DoCreateVnfAndModulesRollback()
55 dcvamr.preProcessRequest(execution)]]></bpmn2:script>
56     </bpmn2:scriptTask>
57     <bpmn2:sequenceFlow id="SequenceFlow_0bmsi5h" sourceRef="PreProcessRequest" targetRef="ExclusiveGateway_12v8g91" />
58     <bpmn2:sequenceFlow id="SequenceFlow_1ycq005" sourceRef="Task_1sbxjc8" targetRef="Task_0ifyxgt" />
59     <bpmn2:scriptTask id="Task_1sbxjc8" name="Prepare Rollback Create VF Module Request" scriptFormat="groovy">
60       <bpmn2:incoming>SequenceFlow_0v85t87</bpmn2:incoming>
61       <bpmn2:outgoing>SequenceFlow_1ycq005</bpmn2:outgoing>
62       <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
63 def dcvamr = new DoCreateVnfAndModulesRollback()
64 dcvamr.preProcessCreateVfModuleRollback(execution)]]></bpmn2:script>
65     </bpmn2:scriptTask>
66     <bpmn2:callActivity id="Task_0ifyxgt" name="Rollback Create VF ModuleĀ " calledElement="DoCreateVfModuleRollback">
67       <bpmn2:extensionElements>
68         <camunda:in source="DCVAMR_RollbackData" target="RollbackData" />
69         <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
70         <camunda:out source="WorkflowException" target="WorkflowException" />
71         <camunda:in source="&#34;true&#34;" target="isVidRequest" />
72         <camunda:in source="mso-request-id" target="mso-request-id" />
73       </bpmn2:extensionElements>
74       <bpmn2:incoming>SequenceFlow_1ycq005</bpmn2:incoming>
75       <bpmn2:outgoing>SequenceFlow_181hb2a</bpmn2:outgoing>
76     </bpmn2:callActivity>
77     <bpmn2:sequenceFlow id="SequenceFlow_1r6wyy6" name="no" sourceRef="ExclusiveGateway_12v8g91" targetRef="ExclusiveGateway_09ajxqr" />
78     <bpmn2:sequenceFlow id="SequenceFlow_0v85t87" name="yes" sourceRef="ExclusiveGateway_12v8g91" targetRef="Task_1sbxjc8">
79       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("DCVAMR_numOfModulesToDelete") > 0}]]></bpmn2:conditionExpression>
80     </bpmn2:sequenceFlow>
81     <bpmn2:sequenceFlow id="SequenceFlow_1kr0r4a" name="yes" sourceRef="ExclusiveGateway_09ajxqr" targetRef="Task_0p8fmrm">
82       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("DCVAMR_vnfId") != null}]]></bpmn2:conditionExpression>
83     </bpmn2:sequenceFlow>
84     <bpmn2:sequenceFlow id="SequenceFlow_04yd2yr" sourceRef="Task_0p8fmrm" targetRef="EndEvent_1seag7u" />
85     <bpmn2:sequenceFlow id="SequenceFlow_1yas9ol" name="no" sourceRef="ExclusiveGateway_09ajxqr" targetRef="EndEvent_1seag7u" />
86     <bpmn2:callActivity id="Task_0p8fmrm" name="Delete VNF" calledElement="DoDeleteVnf">
87       <bpmn2:extensionElements>
88         <camunda:in source="DCVAMR_vnfId" target="vnfId" />
89         <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
90         <camunda:out source="WorkflowException" target="WorkflowException" />
91       </bpmn2:extensionElements>
92       <bpmn2:incoming>SequenceFlow_1kr0r4a</bpmn2:incoming>
93       <bpmn2:outgoing>SequenceFlow_04yd2yr</bpmn2:outgoing>
94     </bpmn2:callActivity>
95     <bpmn2:sequenceFlow id="SequenceFlow_181hb2a" sourceRef="Task_0ifyxgt" targetRef="Task_0kf9oby" />
96     <bpmn2:scriptTask id="Task_0kf9oby" name="PostProcess Rollback Create VF Module" scriptFormat="groovy">
97       <bpmn2:incoming>SequenceFlow_181hb2a</bpmn2:incoming>
98       <bpmn2:outgoing>SequenceFlow_1srw52v</bpmn2:outgoing>
99       <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
100 def dcvamr = new DoCreateVnfAndModulesRollback()
101 dcvamr.postProcessCreateVfModuleRollback(execution)]]></bpmn2:script>
102     </bpmn2:scriptTask>
103     <bpmn2:sequenceFlow id="SequenceFlow_1srw52v" sourceRef="Task_0kf9oby" targetRef="ExclusiveGateway_12v8g91" />
104   </bpmn2:process>
105   <bpmn2:error id="Error_1" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
106   <bpmn2:message id="Message_1" name="DoCreateVfModuleRollbackRequest" />
107   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
108     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoCreateVnfAndModulesRollback">
109       <bpmndi:BPMNShape id="_BPMNShape_SubProcess_22" bpmnElement="SubProcess_1" isExpanded="true">
110         <dc:Bounds x="18" y="1012" width="469" height="150" />
111       </bpmndi:BPMNShape>
112       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_59" bpmnElement="CatchExceptions">
113         <dc:Bounds x="36" y="1063" width="36" height="36" />
114         <bpmndi:BPMNLabel>
115           <dc:Bounds x="42" y="1108" width="85" height="12" />
116         </bpmndi:BPMNLabel>
117       </bpmndi:BPMNShape>
118       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_281" bpmnElement="LogSaveWorkflowException">
119         <dc:Bounds x="174" y="1041" width="100" height="80" />
120       </bpmndi:BPMNShape>
121       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_188" bpmnElement="EndEvent_1">
122         <dc:Bounds x="349" y="1062" width="36" height="36" />
123         <bpmndi:BPMNLabel>
124           <dc:Bounds x="367" y="1098" width="0" height="0" />
125         </bpmndi:BPMNLabel>
126       </bpmndi:BPMNShape>
127       <bpmndi:BPMNShape id="_BPMNShape_BoundaryEvent_55" bpmnElement="BoundaryEvent_1">
128         <dc:Bounds x="469" y="1058" width="36" height="36" />
129         <bpmndi:BPMNLabel>
130           <dc:Bounds x="487" y="1094" width="0" height="0" />
131         </bpmndi:BPMNLabel>
132       </bpmndi:BPMNShape>
133       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_189" bpmnElement="EndEvent_2">
134         <dc:Bounds x="593" y="1058" width="36" height="36" />
135         <bpmndi:BPMNLabel>
136           <dc:Bounds x="611" y="1099" width="0" height="0" />
137         </bpmndi:BPMNLabel>
138       </bpmndi:BPMNShape>
139       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_12" bpmnElement="SequenceFlow_12" sourceElement="_BPMNShape_StartEvent_59" targetElement="_BPMNShape_ScriptTask_281">
140         <di:waypoint xsi:type="dc:Point" x="72" y="1081" />
141         <di:waypoint xsi:type="dc:Point" x="174" y="1081" />
142         <bpmndi:BPMNLabel>
143           <dc:Bounds x="120" y="1081" width="0" height="0" />
144         </bpmndi:BPMNLabel>
145       </bpmndi:BPMNEdge>
146       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_22" bpmnElement="SequenceFlow_22" sourceElement="_BPMNShape_ScriptTask_281" targetElement="_BPMNShape_EndEvent_188">
147         <di:waypoint xsi:type="dc:Point" x="274" y="1081" />
148         <di:waypoint xsi:type="dc:Point" x="311" y="1081" />
149         <di:waypoint xsi:type="dc:Point" x="311" y="1080" />
150         <di:waypoint xsi:type="dc:Point" x="349" y="1080" />
151         <bpmndi:BPMNLabel>
152           <dc:Bounds x="326" y="1071" width="0" height="0" />
153         </bpmndi:BPMNLabel>
154       </bpmndi:BPMNEdge>
155       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_23" bpmnElement="SequenceFlow_23" sourceElement="_BPMNShape_BoundaryEvent_55" targetElement="_BPMNShape_EndEvent_189">
156         <di:waypoint xsi:type="dc:Point" x="505" y="1076" />
157         <di:waypoint xsi:type="dc:Point" x="593" y="1076" />
158         <bpmndi:BPMNLabel>
159           <dc:Bounds x="550" y="1051" width="0" height="0" />
160         </bpmndi:BPMNLabel>
161       </bpmndi:BPMNEdge>
162       <bpmndi:BPMNShape id="StartEvent_1gai4qr_di" bpmnElement="StartEvent_1gai4qr">
163         <dc:Bounds x="7.752742616033771" y="654.7502109704641" width="36" height="36" />
164         <bpmndi:BPMNLabel>
165           <dc:Bounds x="26" y="690.7502109704641" width="0" height="0" />
166         </bpmndi:BPMNLabel>
167       </bpmndi:BPMNShape>
168       <bpmndi:BPMNShape id="ExclusiveGateway_12v8g91_di" bpmnElement="ExclusiveGateway_12v8g91" isMarkerVisible="true">
169         <dc:Bounds x="284.2253164556962" y="648.1721518987342" width="50" height="50" />
170         <bpmndi:BPMNLabel>
171           <dc:Bounds x="273" y="698" width="73" height="36" />
172         </bpmndi:BPMNLabel>
173       </bpmndi:BPMNShape>
174       <bpmndi:BPMNShape id="ExclusiveGateway_09ajxqr_di" bpmnElement="ExclusiveGateway_09ajxqr" isMarkerVisible="true">
175         <dc:Bounds x="833.4869198312236" y="648" width="50" height="50" />
176         <bpmndi:BPMNLabel>
177           <dc:Bounds x="828" y="698" width="62" height="12" />
178         </bpmndi:BPMNLabel>
179       </bpmndi:BPMNShape>
180       <bpmndi:BPMNShape id="EndEvent_1seag7u_di" bpmnElement="EndEvent_1seag7u">
181         <dc:Bounds x="1101.651476793249" y="655" width="36" height="36" />
182         <bpmndi:BPMNLabel>
183           <dc:Bounds x="1120" y="691" width="0" height="0" />
184         </bpmndi:BPMNLabel>
185       </bpmndi:BPMNShape>
186       <bpmndi:BPMNEdge id="SequenceFlow_1537b7m_di" bpmnElement="SequenceFlow_1537b7m">
187         <di:waypoint xsi:type="dc:Point" x="44" y="673" />
188         <di:waypoint xsi:type="dc:Point" x="131" y="673" />
189         <bpmndi:BPMNLabel>
190           <dc:Bounds x="88" y="658" width="0" height="0" />
191         </bpmndi:BPMNLabel>
192       </bpmndi:BPMNEdge>
193       <bpmndi:BPMNShape id="ScriptTask_0fckboe_di" bpmnElement="PreProcessRequest">
194         <dc:Bounds x="131" y="633" width="100" height="80" />
195       </bpmndi:BPMNShape>
196       <bpmndi:BPMNEdge id="SequenceFlow_0bmsi5h_di" bpmnElement="SequenceFlow_0bmsi5h">
197         <di:waypoint xsi:type="dc:Point" x="231" y="673" />
198         <di:waypoint xsi:type="dc:Point" x="257" y="673" />
199         <di:waypoint xsi:type="dc:Point" x="257" y="673" />
200         <di:waypoint xsi:type="dc:Point" x="284" y="673" />
201         <bpmndi:BPMNLabel>
202           <dc:Bounds x="272" y="673" width="0" height="0" />
203         </bpmndi:BPMNLabel>
204       </bpmndi:BPMNEdge>
205       <bpmndi:BPMNEdge id="SequenceFlow_1ycq005_di" bpmnElement="SequenceFlow_1ycq005">
206         <di:waypoint xsi:type="dc:Point" x="469" y="509" />
207         <di:waypoint xsi:type="dc:Point" x="502" y="510" />
208         <bpmndi:BPMNLabel>
209           <dc:Bounds x="486" y="494.5" width="0" height="0" />
210         </bpmndi:BPMNLabel>
211       </bpmndi:BPMNEdge>
212       <bpmndi:BPMNShape id="ScriptTask_1sc2oye_di" bpmnElement="Task_1sbxjc8">
213         <dc:Bounds x="369" y="470" width="100" height="80" />
214       </bpmndi:BPMNShape>
215       <bpmndi:BPMNShape id="CallActivity_1lj1iud_di" bpmnElement="Task_0ifyxgt">
216         <dc:Bounds x="502" y="470" width="100" height="80" />
217       </bpmndi:BPMNShape>
218       <bpmndi:BPMNEdge id="SequenceFlow_1r6wyy6_di" bpmnElement="SequenceFlow_1r6wyy6">
219         <di:waypoint xsi:type="dc:Point" x="309" y="698" />
220         <di:waypoint xsi:type="dc:Point" x="309" y="755" />
221         <di:waypoint xsi:type="dc:Point" x="769" y="755" />
222         <di:waypoint xsi:type="dc:Point" x="769" y="673" />
223         <di:waypoint xsi:type="dc:Point" x="833" y="673" />
224         <bpmndi:BPMNLabel>
225           <dc:Bounds x="533" y="740" width="12" height="12" />
226         </bpmndi:BPMNLabel>
227       </bpmndi:BPMNEdge>
228       <bpmndi:BPMNEdge id="SequenceFlow_0v85t87_di" bpmnElement="SequenceFlow_0v85t87">
229         <di:waypoint xsi:type="dc:Point" x="309" y="648" />
230         <di:waypoint xsi:type="dc:Point" x="309" y="510" />
231         <di:waypoint xsi:type="dc:Point" x="369" y="510" />
232         <bpmndi:BPMNLabel>
233           <dc:Bounds x="315" y="579" width="18" height="12" />
234         </bpmndi:BPMNLabel>
235       </bpmndi:BPMNEdge>
236       <bpmndi:BPMNEdge id="SequenceFlow_1kr0r4a_di" bpmnElement="SequenceFlow_1kr0r4a">
237         <di:waypoint xsi:type="dc:Point" x="858" y="648" />
238         <di:waypoint xsi:type="dc:Point" x="858" y="589" />
239         <di:waypoint xsi:type="dc:Point" x="945" y="589" />
240         <bpmndi:BPMNLabel>
241           <dc:Bounds x="864" y="619" width="18" height="12" />
242         </bpmndi:BPMNLabel>
243       </bpmndi:BPMNEdge>
244       <bpmndi:BPMNEdge id="SequenceFlow_04yd2yr_di" bpmnElement="SequenceFlow_04yd2yr">
245         <di:waypoint xsi:type="dc:Point" x="1045" y="589" />
246         <di:waypoint xsi:type="dc:Point" x="1120" y="589" />
247         <di:waypoint xsi:type="dc:Point" x="1120" y="655" />
248         <bpmndi:BPMNLabel>
249           <dc:Bounds x="1083" y="574" width="0" height="0" />
250         </bpmndi:BPMNLabel>
251       </bpmndi:BPMNEdge>
252       <bpmndi:BPMNEdge id="SequenceFlow_1yas9ol_di" bpmnElement="SequenceFlow_1yas9ol">
253         <di:waypoint xsi:type="dc:Point" x="883" y="673" />
254         <di:waypoint xsi:type="dc:Point" x="1102" y="673" />
255         <bpmndi:BPMNLabel>
256           <dc:Bounds x="987" y="658" width="12" height="12" />
257         </bpmndi:BPMNLabel>
258       </bpmndi:BPMNEdge>
259       <bpmndi:BPMNShape id="CallActivity_01fs058_di" bpmnElement="Task_0p8fmrm">
260         <dc:Bounds x="945" y="549" width="100" height="80" />
261       </bpmndi:BPMNShape>
262       <bpmndi:BPMNEdge id="SequenceFlow_181hb2a_di" bpmnElement="SequenceFlow_181hb2a">
263         <di:waypoint xsi:type="dc:Point" x="602" y="510" />
264         <di:waypoint xsi:type="dc:Point" x="641" y="510" />
265         <bpmndi:BPMNLabel>
266           <dc:Bounds x="622" y="495" width="0" height="0" />
267         </bpmndi:BPMNLabel>
268       </bpmndi:BPMNEdge>
269       <bpmndi:BPMNShape id="ScriptTask_196e1px_di" bpmnElement="Task_0kf9oby">
270         <dc:Bounds x="641" y="470" width="100" height="80" />
271       </bpmndi:BPMNShape>
272       <bpmndi:BPMNEdge id="SequenceFlow_1srw52v_di" bpmnElement="SequenceFlow_1srw52v">
273         <di:waypoint xsi:type="dc:Point" x="691" y="550" />
274         <di:waypoint xsi:type="dc:Point" x="691" y="673" />
275         <di:waypoint xsi:type="dc:Point" x="334" y="673" />
276         <bpmndi:BPMNLabel>
277           <dc:Bounds x="706" y="611.5" width="0" height="0" />
278         </bpmndi:BPMNLabel>
279       </bpmndi:BPMNEdge>
280     </bpmndi:BPMNPlane>
281   </bpmndi:BPMNDiagram>
282 </bpmn2:definitions>