Containerization feature of SO
[so.git] / bpmn / so-bpmn-infrastructure-flows / src / main / resources / subprocess / DoDeleteVfModuleVolumeV2.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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.4.0">
3   <bpmn:process id="DoDeleteVfModuleVolumeV2" name="DoDeleteVfModuleVolumeV2" isExecutable="true">
4     <bpmn:startEvent id="StartEvent_1" name="Start">
5       <bpmn:outgoing>SequenceFlow_1gvfdp4</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:scriptTask id="Task_06u1lr0" name="Call REST AAI Query Cloud Region" scriptFormat="groovy">
8       <bpmn:incoming>SequenceFlow_1vy2ojp</bpmn:incoming>
9       <bpmn:outgoing>SequenceFlow_1dlcqmc</bpmn:outgoing>
10       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
11 def delVfModuleVol = new DoDeleteVfModuleVolumeV2()
12 delVfModuleVol.executeMethod('callRESTQueryAAICloudRegion', execution, isDebugLogEnabled)]]></bpmn:script>
13     </bpmn:scriptTask>
14     <bpmn:scriptTask id="Task_1woqfjw" name="Call REST AAI Query for Volume Group" scriptFormat="groovy">
15       <bpmn:incoming>SequenceFlow_1dlcqmc</bpmn:incoming>
16       <bpmn:outgoing>SequenceFlow_1kjccf1</bpmn:outgoing>
17       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
18 def deleteVfMod = new DoDeleteVfModuleVolumeV2()
19 deleteVfMod.executeMethod('callRESTQueryAAIForVolumeGroup', execution, isDebugLogEnabled)]]></bpmn:script>
20     </bpmn:scriptTask>
21     <bpmn:scriptTask id="Task_0yjx0p2" name="Prepare VNF Adapter Delete" scriptFormat="groovy">
22       <bpmn:incoming>SequenceFlow_1kjccf1</bpmn:incoming>
23       <bpmn:outgoing>SequenceFlow_1tgngf7</bpmn:outgoing>
24       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
25 def deleteVfMod = new DoDeleteVfModuleVolumeV2()
26 deleteVfMod.executeMethod('prepareVnfAdapterDeleteRequest', execution, isDebugLogEnabled)]]></bpmn:script>
27     </bpmn:scriptTask>
28     <bpmn:callActivity id="Task_14fsstq" name="Call REST VNF Adapter Delete" calledElement="vnfAdapterRestV1">
29       <bpmn:extensionElements>
30         <camunda:in source="DDVMV_deleteVnfARequest" target="vnfAdapterRestV1Request" />
31         <camunda:in source="mso-request-id" target="mso-request-id" />
32         <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
33         <camunda:in variables="all" />
34         <camunda:out source="vnfAdapterRestV1Response" target="DDVMV_deleteVnfAResponse" />
35         <camunda:out source="WorkflowException" target="WorkflowException" />
36         <camunda:out source="VNFREST_SuccessIndicator" target="VNFREST_SuccessIndicator" />
37       </bpmn:extensionElements>
38       <bpmn:incoming>SequenceFlow_1tgngf7</bpmn:incoming>
39       <bpmn:outgoing>SequenceFlow_1x3luyj</bpmn:outgoing>
40     </bpmn:callActivity>
41     <bpmn:scriptTask id="Task_17q1roq" name="Call REST AAI Delete Volume Group" scriptFormat="groovy">
42       <bpmn:incoming>SequenceFlow_0cy0y9t</bpmn:incoming>
43       <bpmn:outgoing>SequenceFlow_13c3cv2</bpmn:outgoing>
44       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
45 def deleteVfMod = new DoDeleteVfModuleVolumeV2()
46 deleteVfMod.executeMethod('callRESTDeleteAAIVolumeGroup', execution, isDebugLogEnabled)]]></bpmn:script>
47     </bpmn:scriptTask>
48     <bpmn:endEvent id="EndEvent_0fw1gkf" name="Stop">
49       <bpmn:incoming>SequenceFlow_1sgtwr2</bpmn:incoming>
50     </bpmn:endEvent>
51     <bpmn:sequenceFlow id="SequenceFlow_1dlcqmc" sourceRef="Task_06u1lr0" targetRef="Task_1woqfjw" />
52     <bpmn:sequenceFlow id="SequenceFlow_1kjccf1" sourceRef="Task_1woqfjw" targetRef="Task_0yjx0p2" />
53     <bpmn:sequenceFlow id="SequenceFlow_1tgngf7" sourceRef="Task_0yjx0p2" targetRef="Task_14fsstq" />
54     <bpmn:scriptTask id="Task_1i432ud" name="Pre Process Request" scriptFormat="groovy">
55       <bpmn:incoming>SequenceFlow_1gvfdp4</bpmn:incoming>
56       <bpmn:outgoing>SequenceFlow_1vy2ojp</bpmn:outgoing>
57       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
58 def deleteVfMod = new DoDeleteVfModuleVolumeV2()
59 deleteVfMod.executeMethod('preProcessRequest', execution, isDebugLogEnabled)
60 ]]></bpmn:script>
61     </bpmn:scriptTask>
62     <bpmn:sequenceFlow id="SequenceFlow_1gvfdp4" sourceRef="StartEvent_1" targetRef="Task_1i432ud" />
63     <bpmn:sequenceFlow id="SequenceFlow_1vy2ojp" sourceRef="Task_1i432ud" targetRef="Task_06u1lr0" />
64     <bpmn:exclusiveGateway id="ExclusiveGateway_0o3lxtf" name="VNF Adapter REST call success?">
65       <bpmn:incoming>SequenceFlow_1x3luyj</bpmn:incoming>
66       <bpmn:outgoing>SequenceFlow_0cy0y9t</bpmn:outgoing>
67       <bpmn:outgoing>SequenceFlow_1rgd8dg</bpmn:outgoing>
68     </bpmn:exclusiveGateway>
69     <bpmn:sequenceFlow id="SequenceFlow_1x3luyj" sourceRef="Task_14fsstq" targetRef="ExclusiveGateway_0o3lxtf" />
70     <bpmn:sequenceFlow id="SequenceFlow_0cy0y9t" name="Yes" sourceRef="ExclusiveGateway_0o3lxtf" targetRef="Task_17q1roq">
71       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{VNFREST_SuccessIndicator == true}</bpmn:conditionExpression>
72     </bpmn:sequenceFlow>
73     <bpmn:endEvent id="EndEvent_00cohim" name="throw MSOException">
74       <bpmn:incoming>SequenceFlow_1rgd8dg</bpmn:incoming>
75       <bpmn:errorEventDefinition errorRef="Error_0fa7ks7" />
76     </bpmn:endEvent>
77     <bpmn:sequenceFlow id="SequenceFlow_1rgd8dg" sourceRef="ExclusiveGateway_0o3lxtf" targetRef="EndEvent_00cohim" />
78     <bpmn:scriptTask id="Task_018w43g" name="Post Process" scriptFormat="groovy">
79       <bpmn:incoming>SequenceFlow_13c3cv2</bpmn:incoming>
80       <bpmn:outgoing>SequenceFlow_1sgtwr2</bpmn:outgoing>
81       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
82 def deleteVfMod = new DoDeleteVfModuleVolumeV2()
83 deleteVfMod.executeMethod('postProcess', execution, isDebugLogEnabled)]]></bpmn:script>
84     </bpmn:scriptTask>
85     <bpmn:sequenceFlow id="SequenceFlow_13c3cv2" sourceRef="Task_17q1roq" targetRef="Task_018w43g" />
86     <bpmn:sequenceFlow id="SequenceFlow_1sgtwr2" sourceRef="Task_018w43g" targetRef="EndEvent_0fw1gkf" />
87   </bpmn:process>
88   <bpmn:error id="Error_0fa7ks7" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
89   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
90     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoDeleteVfModuleVolumeV2">
91       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
92         <dc:Bounds x="173" y="102" width="36" height="36" />
93         <bpmndi:BPMNLabel>
94           <dc:Bounds x="179" y="138" width="23" height="12" />
95         </bpmndi:BPMNLabel>
96       </bpmndi:BPMNShape>
97       <bpmndi:BPMNShape id="ScriptTask_1qojxu5_di" bpmnElement="Task_06u1lr0">
98         <dc:Bounds x="407" y="80" width="100" height="80" />
99       </bpmndi:BPMNShape>
100       <bpmndi:BPMNShape id="ScriptTask_1mht6f6_di" bpmnElement="Task_1woqfjw">
101         <dc:Bounds x="564" y="80" width="100" height="80" />
102       </bpmndi:BPMNShape>
103       <bpmndi:BPMNShape id="ScriptTask_02ujn8y_di" bpmnElement="Task_0yjx0p2">
104         <dc:Bounds x="713" y="80" width="100" height="80" />
105       </bpmndi:BPMNShape>
106       <bpmndi:BPMNShape id="CallActivity_0bf87en_di" bpmnElement="Task_14fsstq">
107         <dc:Bounds x="865" y="80" width="100" height="80" />
108       </bpmndi:BPMNShape>
109       <bpmndi:BPMNShape id="ScriptTask_07kmkio_di" bpmnElement="Task_17q1roq">
110         <dc:Bounds x="1151" y="80" width="100" height="80" />
111       </bpmndi:BPMNShape>
112       <bpmndi:BPMNShape id="EndEvent_0fw1gkf_di" bpmnElement="EndEvent_0fw1gkf">
113         <dc:Bounds x="1463" y="102" width="36" height="36" />
114         <bpmndi:BPMNLabel>
115           <dc:Bounds x="1470" y="138" width="22" height="12" />
116         </bpmndi:BPMNLabel>
117       </bpmndi:BPMNShape>
118       <bpmndi:BPMNEdge id="SequenceFlow_1dlcqmc_di" bpmnElement="SequenceFlow_1dlcqmc">
119         <di:waypoint xsi:type="dc:Point" x="507" y="120" />
120         <di:waypoint xsi:type="dc:Point" x="564" y="120" />
121         <bpmndi:BPMNLabel>
122           <dc:Bounds x="536" y="95" width="0" height="0" />
123         </bpmndi:BPMNLabel>
124       </bpmndi:BPMNEdge>
125       <bpmndi:BPMNEdge id="SequenceFlow_1kjccf1_di" bpmnElement="SequenceFlow_1kjccf1">
126         <di:waypoint xsi:type="dc:Point" x="664" y="120" />
127         <di:waypoint xsi:type="dc:Point" x="713" y="120" />
128         <bpmndi:BPMNLabel>
129           <dc:Bounds x="689" y="95" width="0" height="0" />
130         </bpmndi:BPMNLabel>
131       </bpmndi:BPMNEdge>
132       <bpmndi:BPMNEdge id="SequenceFlow_1tgngf7_di" bpmnElement="SequenceFlow_1tgngf7">
133         <di:waypoint xsi:type="dc:Point" x="813" y="120" />
134         <di:waypoint xsi:type="dc:Point" x="865" y="120" />
135         <bpmndi:BPMNLabel>
136           <dc:Bounds x="839" y="95" width="0" height="0" />
137         </bpmndi:BPMNLabel>
138       </bpmndi:BPMNEdge>
139       <bpmndi:BPMNShape id="ScriptTask_0wjwf8w_di" bpmnElement="Task_1i432ud">
140         <dc:Bounds x="247" y="80" width="100" height="80" />
141       </bpmndi:BPMNShape>
142       <bpmndi:BPMNEdge id="SequenceFlow_1gvfdp4_di" bpmnElement="SequenceFlow_1gvfdp4">
143         <di:waypoint xsi:type="dc:Point" x="209" y="120" />
144         <di:waypoint xsi:type="dc:Point" x="247" y="120" />
145         <bpmndi:BPMNLabel>
146           <dc:Bounds x="228" y="95" width="0" height="0" />
147         </bpmndi:BPMNLabel>
148       </bpmndi:BPMNEdge>
149       <bpmndi:BPMNEdge id="SequenceFlow_1vy2ojp_di" bpmnElement="SequenceFlow_1vy2ojp">
150         <di:waypoint xsi:type="dc:Point" x="347" y="120" />
151         <di:waypoint xsi:type="dc:Point" x="407" y="120" />
152         <bpmndi:BPMNLabel>
153           <dc:Bounds x="377" y="95" width="0" height="0" />
154         </bpmndi:BPMNLabel>
155       </bpmndi:BPMNEdge>
156       <bpmndi:BPMNShape id="ExclusiveGateway_0o3lxtf_di" bpmnElement="ExclusiveGateway_0o3lxtf" isMarkerVisible="true">
157         <dc:Bounds x="1028" y="95" width="50" height="50" />
158         <bpmndi:BPMNLabel>
159           <dc:Bounds x="1020" y="145" width="66" height="36" />
160         </bpmndi:BPMNLabel>
161       </bpmndi:BPMNShape>
162       <bpmndi:BPMNEdge id="SequenceFlow_1x3luyj_di" bpmnElement="SequenceFlow_1x3luyj">
163         <di:waypoint xsi:type="dc:Point" x="965" y="120" />
164         <di:waypoint xsi:type="dc:Point" x="1028" y="120" />
165         <bpmndi:BPMNLabel>
166           <dc:Bounds x="997" y="95" width="0" height="0" />
167         </bpmndi:BPMNLabel>
168       </bpmndi:BPMNEdge>
169       <bpmndi:BPMNEdge id="SequenceFlow_0cy0y9t_di" bpmnElement="SequenceFlow_0cy0y9t">
170         <di:waypoint xsi:type="dc:Point" x="1078" y="120" />
171         <di:waypoint xsi:type="dc:Point" x="1151" y="120" />
172         <bpmndi:BPMNLabel>
173           <dc:Bounds x="1106" y="95" width="18" height="12" />
174         </bpmndi:BPMNLabel>
175       </bpmndi:BPMNEdge>
176       <bpmndi:BPMNShape id="EndEvent_0zln0ww_di" bpmnElement="EndEvent_00cohim">
177         <dc:Bounds x="1035" y="274" width="36" height="36" />
178         <bpmndi:BPMNLabel>
179           <dc:Bounds x="1016" y="310" width="73" height="24" />
180         </bpmndi:BPMNLabel>
181       </bpmndi:BPMNShape>
182       <bpmndi:BPMNEdge id="SequenceFlow_1rgd8dg_di" bpmnElement="SequenceFlow_1rgd8dg">
183         <di:waypoint xsi:type="dc:Point" x="1053" y="145" />
184         <di:waypoint xsi:type="dc:Point" x="1053" y="274" />
185         <bpmndi:BPMNLabel>
186           <dc:Bounds x="1068" y="199.5" width="0" height="0" />
187         </bpmndi:BPMNLabel>
188       </bpmndi:BPMNEdge>
189       <bpmndi:BPMNShape id="ScriptTask_1ilduoy_di" bpmnElement="Task_018w43g">
190         <dc:Bounds x="1298" y="80" width="100" height="80" />
191       </bpmndi:BPMNShape>
192       <bpmndi:BPMNEdge id="SequenceFlow_13c3cv2_di" bpmnElement="SequenceFlow_13c3cv2">
193         <di:waypoint xsi:type="dc:Point" x="1251" y="120" />
194         <di:waypoint xsi:type="dc:Point" x="1298" y="120" />
195         <bpmndi:BPMNLabel>
196           <dc:Bounds x="1275" y="95" width="0" height="0" />
197         </bpmndi:BPMNLabel>
198       </bpmndi:BPMNEdge>
199       <bpmndi:BPMNEdge id="SequenceFlow_1sgtwr2_di" bpmnElement="SequenceFlow_1sgtwr2">
200         <di:waypoint xsi:type="dc:Point" x="1398" y="120" />
201         <di:waypoint xsi:type="dc:Point" x="1463" y="120" />
202         <bpmndi:BPMNLabel>
203           <dc:Bounds x="1431" y="95" width="0" height="0" />
204         </bpmndi:BPMNLabel>
205       </bpmndi:BPMNEdge>
206     </bpmndi:BPMNPlane>
207   </bpmndi:BPMNDiagram>
208 </bpmn:definitions>