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" />
9 <bpmn2:endEvent id="EndEvent_1">
10 <bpmn2:incoming>SequenceFlow_22</bpmn2:incoming>
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>
21 <bpmn2:sequenceFlow id="SequenceFlow_22" name="" sourceRef="LogSaveWorkflowException" targetRef="EndEvent_1" />
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>
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>
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>
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>
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>
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=""true"" 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>
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>
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>
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>
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>
103 <bpmn2:sequenceFlow id="SequenceFlow_1srw52v" sourceRef="Task_0kf9oby" targetRef="ExclusiveGateway_12v8g91" />
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" />
112 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_59" bpmnElement="CatchExceptions">
113 <dc:Bounds x="36" y="1063" width="36" height="36" />
115 <dc:Bounds x="42" y="1108" width="85" height="12" />
118 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_281" bpmnElement="LogSaveWorkflowException">
119 <dc:Bounds x="174" y="1041" width="100" height="80" />
121 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_188" bpmnElement="EndEvent_1">
122 <dc:Bounds x="349" y="1062" width="36" height="36" />
124 <dc:Bounds x="367" y="1098" width="0" height="0" />
127 <bpmndi:BPMNShape id="_BPMNShape_BoundaryEvent_55" bpmnElement="BoundaryEvent_1">
128 <dc:Bounds x="469" y="1058" width="36" height="36" />
130 <dc:Bounds x="487" y="1094" width="0" height="0" />
133 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_189" bpmnElement="EndEvent_2">
134 <dc:Bounds x="593" y="1058" width="36" height="36" />
136 <dc:Bounds x="611" y="1099" width="0" height="0" />
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" />
143 <dc:Bounds x="120" y="1081" width="0" height="0" />
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" />
152 <dc:Bounds x="326" y="1071" width="0" height="0" />
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" />
159 <dc:Bounds x="550" y="1051" width="0" height="0" />
162 <bpmndi:BPMNShape id="StartEvent_1gai4qr_di" bpmnElement="StartEvent_1gai4qr">
163 <dc:Bounds x="7.752742616033771" y="654.7502109704641" width="36" height="36" />
165 <dc:Bounds x="26" y="690.7502109704641" width="0" height="0" />
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" />
171 <dc:Bounds x="273" y="698" width="73" height="36" />
174 <bpmndi:BPMNShape id="ExclusiveGateway_09ajxqr_di" bpmnElement="ExclusiveGateway_09ajxqr" isMarkerVisible="true">
175 <dc:Bounds x="833.4869198312236" y="648" width="50" height="50" />
177 <dc:Bounds x="828" y="698" width="62" height="12" />
180 <bpmndi:BPMNShape id="EndEvent_1seag7u_di" bpmnElement="EndEvent_1seag7u">
181 <dc:Bounds x="1101.651476793249" y="655" width="36" height="36" />
183 <dc:Bounds x="1120" y="691" width="0" height="0" />
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" />
190 <dc:Bounds x="88" y="658" width="0" height="0" />
193 <bpmndi:BPMNShape id="ScriptTask_0fckboe_di" bpmnElement="PreProcessRequest">
194 <dc:Bounds x="131" y="633" width="100" height="80" />
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" />
202 <dc:Bounds x="272" y="673" width="0" height="0" />
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" />
209 <dc:Bounds x="486" y="494.5" width="0" height="0" />
212 <bpmndi:BPMNShape id="ScriptTask_1sc2oye_di" bpmnElement="Task_1sbxjc8">
213 <dc:Bounds x="369" y="470" width="100" height="80" />
215 <bpmndi:BPMNShape id="CallActivity_1lj1iud_di" bpmnElement="Task_0ifyxgt">
216 <dc:Bounds x="502" y="470" width="100" height="80" />
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" />
225 <dc:Bounds x="533" y="740" width="12" height="12" />
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" />
233 <dc:Bounds x="315" y="579" width="18" height="12" />
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" />
241 <dc:Bounds x="864" y="619" width="18" height="12" />
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" />
249 <dc:Bounds x="1083" y="574" width="0" height="0" />
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" />
256 <dc:Bounds x="987" y="658" width="12" height="12" />
259 <bpmndi:BPMNShape id="CallActivity_01fs058_di" bpmnElement="Task_0p8fmrm">
260 <dc:Bounds x="945" y="549" width="100" height="80" />
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" />
266 <dc:Bounds x="622" y="495" width="0" height="0" />
269 <bpmndi:BPMNShape id="ScriptTask_196e1px_di" bpmnElement="Task_0kf9oby">
270 <dc:Bounds x="641" y="470" width="100" height="80" />
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" />
277 <dc:Bounds x="706" y="611.5" width="0" height="0" />
281 </bpmndi:BPMNDiagram>