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="_MagIIMOUEeW8asg-vCEgWQ" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="Camunda Modeler" exporterVersion="1.7.1" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3 <bpmn2:process id="DeleteGenericALaCarteServiceInstance" name="DeleteGenericALaCarteServiceInstance" isExecutable="true">
4 <bpmn2:startEvent id="deleteSI_startEvent" name="Delete SI Start Flow">
5 <bpmn2:outgoing>SequenceFlow_0lp2z7l</bpmn2:outgoing>
7 <bpmn2:subProcess id="unexpectedErrors_SubProcess" name="Sub-process for UnexpectedErrors" triggeredByEvent="true">
8 <bpmn2:scriptTask id="ScriptTask_1" name="Handle Unexpected Error" scriptFormat="groovy">
9 <bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>
10 <bpmn2:outgoing>SequenceFlow_14</bpmn2:outgoing>
11 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
12 ExceptionUtil ex = new ExceptionUtil()
13 ex.processJavaException(execution)]]></bpmn2:script>
15 <bpmn2:sequenceFlow id="SequenceFlow_14" name="" sourceRef="ScriptTask_1" targetRef="EndEvent_1" />
16 <bpmn2:startEvent id="StartEvent_1">
17 <bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing>
18 <bpmn2:errorEventDefinition id="ErrorEventDefinition_2" errorRef="Error_1" />
20 <bpmn2:sequenceFlow id="SequenceFlow_10" name="" sourceRef="StartEvent_1" targetRef="ScriptTask_1" />
21 <bpmn2:endEvent id="EndEvent_1">
22 <bpmn2:incoming>SequenceFlow_14</bpmn2:incoming>
25 <bpmn2:callActivity id="doDeleteServiceInstance_CallActivity" name="Call DoDeleteServiceInstance " calledElement="DoDeleteServiceInstance">
26 <bpmn2:extensionElements>
27 <camunda:out source="WorkflowException" target="WorkflowException" />
28 <camunda:in source="msoRequestId" target="msoRequestId" />
29 <camunda:in source="serviceInstanceId" target="serviceInstanceId" />
30 <camunda:in source="serviceInstanceName" target="serviceInstanceName" />
31 <camunda:in source="serviceModelInfo" target="serviceModelInfo" />
32 <camunda:in source="productFamilyId" target="productFamilyId" />
33 <camunda:in source="disableRollback" target="disableRollback" />
34 <camunda:in source="serviceInputParams" target="serviceInputParams" />
35 <camunda:in source="failIfExists" target="failIfExists" />
36 <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
37 <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
38 <camunda:in sourceExpression="1610" target="sdncVersion" />
39 <camunda:in source="msoRequestId" target="mso-request-id" />
40 </bpmn2:extensionElements>
41 <bpmn2:incoming>SequenceFlow_0eto8sn</bpmn2:incoming>
42 <bpmn2:outgoing>SequenceFlow_1lj31zp</bpmn2:outgoing>
44 <bpmn2:endEvent id="EndEvent_0o440av" name="End">
45 <bpmn2:incoming>SequenceFlow_095crcd</bpmn2:incoming>
47 <bpmn2:sequenceFlow id="SequenceFlow_1lj31zp" sourceRef="doDeleteServiceInstance_CallActivity" targetRef="ExclusiveGateway_0isueuw" />
48 <bpmn2:scriptTask id="ScriptTask_0pvcr6j" name="Pre Process Incoming Request" scriptFormat="groovy">
49 <bpmn2:incoming>SequenceFlow_0lp2z7l</bpmn2:incoming>
50 <bpmn2:outgoing>SequenceFlow_0ktadna</bpmn2:outgoing>
51 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
52 def csi= new DeleteGenericALaCarteServiceInstance()
53 csi.preProcessRequest(execution)]]></bpmn2:script>
55 <bpmn2:sequenceFlow id="SequenceFlow_0lp2z7l" sourceRef="deleteSI_startEvent" targetRef="ScriptTask_0pvcr6j" />
56 <bpmn2:scriptTask id="ScriptTask_0cihgpv" name="Prepare Completion Request" scriptFormat="groovy">
57 <bpmn2:incoming>SequenceFlow_1qjygj5</bpmn2:incoming>
58 <bpmn2:outgoing>SequenceFlow_0xxvjxq</bpmn2:outgoing>
59 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
60 def csi = new DeleteGenericALaCarteServiceInstance()
61 csi.prepareCompletionRequest(execution)]]></bpmn2:script>
63 <bpmn2:callActivity id="CallActivity_0sevgre" name="Call CompleteMsoProcess" calledElement="CompleteMsoProcess">
64 <bpmn2:extensionElements>
65 <camunda:in source="completionRequest" target="CompleteMsoProcessRequest" />
66 <camunda:in source="mso-request-id" target="mso-request-id" />
67 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
68 <camunda:out source="CMSO_ResponseCode" target="CMSO_ResponseCode" />
69 <camunda:out source="CompleteMsoProcessResponse" target="CompleteMsoProcessResponse" />
70 <camunda:out source="CMSO_ErrorResponse" target="CMSO_ErrorResponse" />
71 </bpmn2:extensionElements>
72 <bpmn2:incoming>SequenceFlow_0xxvjxq</bpmn2:incoming>
73 <bpmn2:outgoing>SequenceFlow_095crcd</bpmn2:outgoing>
75 <bpmn2:sequenceFlow id="SequenceFlow_0xxvjxq" sourceRef="ScriptTask_0cihgpv" targetRef="CallActivity_0sevgre" />
76 <bpmn2:subProcess id="SubProcess_1k2112i" name="Sub-process for FalloutHandler " triggeredByEvent="true">
77 <bpmn2:startEvent id="StartEvent_110xxgx">
78 <bpmn2:outgoing>SequenceFlow_0n4umjf</bpmn2:outgoing>
79 <bpmn2:errorEventDefinition />
81 <bpmn2:endEvent id="EndEvent_1rqikib">
82 <bpmn2:incoming>SequenceFlow_1ghqolv</bpmn2:incoming>
84 <bpmn2:scriptTask id="ScriptTask_1hql91g" name="Prepare Fallout Request" scriptFormat="groovy">
85 <bpmn2:incoming>SequenceFlow_14eadeb</bpmn2:incoming>
86 <bpmn2:outgoing>SequenceFlow_1reso2f</bpmn2:outgoing>
87 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
88 def csi = new DeleteGenericALaCarteServiceInstance()
89 csi.prepareFalloutRequest(execution)]]></bpmn2:script>
91 <bpmn2:callActivity id="CallActivity_1ksm1dz" name="Call FalloutHandler" calledElement="FalloutHandler">
92 <bpmn2:extensionElements>
93 <camunda:in source="falloutRequest" target="FalloutHandlerRequest" />
94 <camunda:in source="mso-request-id" target="mso-request-id" />
95 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
96 <camunda:out source="FH_ResponseCode" target="FH_ResponseCode" />
97 <camunda:out source="FalloutHandlerResponse" target="FalloutHandlerResponse" />
98 <camunda:out source="FH_ErrorResponse" target="FH_ErrorResponse" />
99 </bpmn2:extensionElements>
100 <bpmn2:incoming>SequenceFlow_1reso2f</bpmn2:incoming>
101 <bpmn2:outgoing>SequenceFlow_1ghqolv</bpmn2:outgoing>
102 </bpmn2:callActivity>
103 <bpmn2:sequenceFlow id="SequenceFlow_1reso2f" sourceRef="ScriptTask_1hql91g" targetRef="CallActivity_1ksm1dz" />
104 <bpmn2:sequenceFlow id="SequenceFlow_1ghqolv" sourceRef="CallActivity_1ksm1dz" targetRef="EndEvent_1rqikib" />
105 <bpmn2:sequenceFlow id="SequenceFlow_0n4umjf" sourceRef="StartEvent_110xxgx" targetRef="ScriptTask_0o4smqp" />
106 <bpmn2:scriptTask id="ScriptTask_0o4smqp" name="Send Error Response">
107 <bpmn2:incoming>SequenceFlow_0n4umjf</bpmn2:incoming>
108 <bpmn2:outgoing>SequenceFlow_14eadeb</bpmn2:outgoing>
109 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
110 def csi = new DeleteGenericALaCarteServiceInstance()
111 csi.sendSyncError(execution)]]></bpmn2:script>
113 <bpmn2:sequenceFlow id="SequenceFlow_14eadeb" sourceRef="ScriptTask_0o4smqp" targetRef="ScriptTask_1hql91g" />
115 <bpmn2:sequenceFlow id="SequenceFlow_095crcd" sourceRef="CallActivity_0sevgre" targetRef="EndEvent_0o440av" />
116 <bpmn2:sequenceFlow id="SequenceFlow_0eto8sn" sourceRef="Task_1nko5zz" targetRef="doDeleteServiceInstance_CallActivity" />
117 <bpmn2:scriptTask id="Task_1nko5zz" name="Send Sync Ack Response" scriptFormat="groovy">
118 <bpmn2:incoming>SequenceFlow_0ktadna</bpmn2:incoming>
119 <bpmn2:outgoing>SequenceFlow_0eto8sn</bpmn2:outgoing>
120 <bpmn2:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
121 def csi = new DeleteGenericALaCarteServiceInstance()
122 csi.sendSyncResponse(execution)]]></bpmn2:script>
124 <bpmn2:sequenceFlow id="SequenceFlow_0ktadna" sourceRef="ScriptTask_0pvcr6j" targetRef="Task_1nko5zz" />
125 <bpmn2:exclusiveGateway id="ExclusiveGateway_0isueuw" name="Success?" default="SequenceFlow_0hgiouk">
126 <bpmn2:incoming>SequenceFlow_1lj31zp</bpmn2:incoming>
127 <bpmn2:outgoing>SequenceFlow_1qjygj5</bpmn2:outgoing>
128 <bpmn2:outgoing>SequenceFlow_0hgiouk</bpmn2:outgoing>
129 </bpmn2:exclusiveGateway>
130 <bpmn2:sequenceFlow id="SequenceFlow_1qjygj5" name="yes" sourceRef="ExclusiveGateway_0isueuw" targetRef="ScriptTask_0cihgpv">
131 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("WorkflowException") == null}]]></bpmn2:conditionExpression>
132 </bpmn2:sequenceFlow>
133 <bpmn2:endEvent id="EndEvent_0yhby6h">
134 <bpmn2:incoming>SequenceFlow_0hgiouk</bpmn2:incoming>
135 <bpmn2:errorEventDefinition errorRef="Error_2" />
137 <bpmn2:sequenceFlow id="SequenceFlow_0hgiouk" name="no" sourceRef="ExclusiveGateway_0isueuw" targetRef="EndEvent_0yhby6h" />
139 <bpmn2:error id="Error_2" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
140 <bpmn2:error id="Error_1" name="java.lang.Exception" errorCode="java.lang.Exception" />
141 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
142 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DeleteGenericALaCarteServiceInstance">
143 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_47" bpmnElement="deleteSI_startEvent">
144 <dc:Bounds x="117" y="79" width="36" height="36" />
146 <dc:Bounds x="98" y="120" width="73" height="24" />
149 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_28" bpmnElement="unexpectedErrors_SubProcess" isExpanded="true">
150 <dc:Bounds x="410" y="607" width="394" height="188" />
152 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_71" bpmnElement="StartEvent_1">
153 <dc:Bounds x="443" y="684" width="36" height="36" />
155 <dc:Bounds x="461" y="725" width="0" height="0" />
158 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_270" bpmnElement="ScriptTask_1">
159 <dc:Bounds x="558" y="662" width="100" height="80" />
161 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_220" bpmnElement="EndEvent_1">
162 <dc:Bounds x="719" y="684" width="36" height="36" />
164 <dc:Bounds x="737" y="725" width="0" height="0" />
167 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_10" sourceElement="_BPMNShape_StartEvent_71" targetElement="_BPMNShape_ScriptTask_270">
168 <di:waypoint xsi:type="dc:Point" x="479" y="702" />
169 <di:waypoint xsi:type="dc:Point" x="558" y="702" />
171 <dc:Bounds x="521" y="702" width="0" height="0" />
174 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="SequenceFlow_14" sourceElement="_BPMNShape_ScriptTask_270" targetElement="_BPMNShape_EndEvent_220">
175 <di:waypoint xsi:type="dc:Point" x="658" y="702" />
176 <di:waypoint xsi:type="dc:Point" x="719" y="702" />
178 <dc:Bounds x="693" y="702" width="0" height="0" />
181 <bpmndi:BPMNShape id="_BPMNShape_CallActivity_72" bpmnElement="doDeleteServiceInstance_CallActivity">
182 <dc:Bounds x="700" y="57" width="100" height="80" />
184 <bpmndi:BPMNShape id="EndEvent_0o440av_di" bpmnElement="EndEvent_0o440av">
185 <dc:Bounds x="1276" y="174" width="36" height="36" />
187 <dc:Bounds x="1287" y="210" width="19" height="12" />
190 <bpmndi:BPMNEdge id="SequenceFlow_1lj31zp_di" bpmnElement="SequenceFlow_1lj31zp">
191 <di:waypoint xsi:type="dc:Point" x="800" y="97" />
192 <di:waypoint xsi:type="dc:Point" x="897" y="97" />
194 <dc:Bounds x="849" y="82" width="0" height="0" />
197 <bpmndi:BPMNShape id="ScriptTask_0pvcr6j_di" bpmnElement="ScriptTask_0pvcr6j">
198 <dc:Bounds x="281" y="57" width="100" height="80" />
200 <bpmndi:BPMNEdge id="SequenceFlow_0lp2z7l_di" bpmnElement="SequenceFlow_0lp2z7l">
201 <di:waypoint xsi:type="dc:Point" x="153" y="97" />
202 <di:waypoint xsi:type="dc:Point" x="281" y="97" />
204 <dc:Bounds x="217" y="82" width="0" height="0" />
207 <bpmndi:BPMNShape id="ScriptTask_0cihgpv_di" bpmnElement="ScriptTask_0cihgpv">
208 <dc:Bounds x="1083" y="57" width="100" height="80" />
210 <bpmndi:BPMNShape id="CallActivity_0sevgre_di" bpmnElement="CallActivity_0sevgre">
211 <dc:Bounds x="1244" y="57" width="100" height="80" />
213 <bpmndi:BPMNEdge id="SequenceFlow_0xxvjxq_di" bpmnElement="SequenceFlow_0xxvjxq">
214 <di:waypoint xsi:type="dc:Point" x="1183" y="97" />
215 <di:waypoint xsi:type="dc:Point" x="1244" y="97" />
217 <dc:Bounds x="1214" y="82" width="0" height="0" />
220 <bpmndi:BPMNShape id="ScriptTask_1hql91g_di" bpmnElement="ScriptTask_1hql91g">
221 <dc:Bounds x="585" y="385" width="100" height="80" />
223 <bpmndi:BPMNShape id="CallActivity_1ksm1dz_di" bpmnElement="CallActivity_1ksm1dz">
224 <dc:Bounds x="762" y="385" width="100" height="80" />
226 <bpmndi:BPMNShape id="SubProcess_1k2112i_di" bpmnElement="SubProcess_1k2112i" isExpanded="true">
227 <dc:Bounds x="312" y="321" width="679" height="194" />
229 <bpmndi:BPMNShape id="StartEvent_110xxgx_di" bpmnElement="StartEvent_110xxgx">
230 <dc:Bounds x="327" y="407" width="36" height="36" />
232 <dc:Bounds x="345" y="448" width="0" height="0" />
235 <bpmndi:BPMNShape id="EndEvent_1rqikib_di" bpmnElement="EndEvent_1rqikib">
236 <dc:Bounds x="906" y="407" width="36" height="36" />
238 <dc:Bounds x="924" y="448" width="0" height="0" />
241 <bpmndi:BPMNEdge id="SequenceFlow_1reso2f_di" bpmnElement="SequenceFlow_1reso2f">
242 <di:waypoint xsi:type="dc:Point" x="685" y="425" />
243 <di:waypoint xsi:type="dc:Point" x="762" y="425" />
245 <dc:Bounds x="724" y="410" width="0" height="0" />
248 <bpmndi:BPMNEdge id="SequenceFlow_1ghqolv_di" bpmnElement="SequenceFlow_1ghqolv">
249 <di:waypoint xsi:type="dc:Point" x="862" y="425" />
250 <di:waypoint xsi:type="dc:Point" x="906" y="425" />
252 <dc:Bounds x="884" y="410" width="0" height="0" />
255 <bpmndi:BPMNEdge id="SequenceFlow_095crcd_di" bpmnElement="SequenceFlow_095crcd">
256 <di:waypoint xsi:type="dc:Point" x="1294" y="137" />
257 <di:waypoint xsi:type="dc:Point" x="1294" y="174" />
259 <dc:Bounds x="1309" y="155.5" width="0" height="0" />
262 <bpmndi:BPMNEdge id="SequenceFlow_0n4umjf_di" bpmnElement="SequenceFlow_0n4umjf">
263 <di:waypoint xsi:type="dc:Point" x="363" y="425" />
264 <di:waypoint xsi:type="dc:Point" x="385" y="425" />
265 <di:waypoint xsi:type="dc:Point" x="385" y="425" />
266 <di:waypoint xsi:type="dc:Point" x="406" y="425" />
268 <dc:Bounds x="400" y="425" width="0" height="0" />
271 <bpmndi:BPMNEdge id="SequenceFlow_0eto8sn_di" bpmnElement="SequenceFlow_0eto8sn">
272 <di:waypoint xsi:type="dc:Point" x="599" y="97" />
273 <di:waypoint xsi:type="dc:Point" x="652" y="97" />
274 <di:waypoint xsi:type="dc:Point" x="652" y="97" />
275 <di:waypoint xsi:type="dc:Point" x="700" y="97" />
277 <dc:Bounds x="667" y="97" width="0" height="0" />
280 <bpmndi:BPMNShape id="ScriptTask_1rb2dsd_di" bpmnElement="Task_1nko5zz">
281 <dc:Bounds x="499" y="57" width="100" height="80" />
283 <bpmndi:BPMNEdge id="SequenceFlow_0ktadna_di" bpmnElement="SequenceFlow_0ktadna">
284 <di:waypoint xsi:type="dc:Point" x="381" y="97" />
285 <di:waypoint xsi:type="dc:Point" x="499" y="97" />
287 <dc:Bounds x="440" y="82" width="0" height="0" />
290 <bpmndi:BPMNShape id="ScriptTask_0o4smqp_di" bpmnElement="ScriptTask_0o4smqp">
291 <dc:Bounds x="407" y="385" width="100" height="80" />
293 <bpmndi:BPMNEdge id="SequenceFlow_14eadeb_di" bpmnElement="SequenceFlow_14eadeb">
294 <di:waypoint xsi:type="dc:Point" x="507" y="425" />
295 <di:waypoint xsi:type="dc:Point" x="534" y="425" />
296 <di:waypoint xsi:type="dc:Point" x="534" y="425" />
297 <di:waypoint xsi:type="dc:Point" x="585" y="425" />
299 <dc:Bounds x="549" y="425" width="0" height="0" />
302 <bpmndi:BPMNShape id="ExclusiveGateway_0isueuw_di" bpmnElement="ExclusiveGateway_0isueuw" isMarkerVisible="true">
303 <dc:Bounds x="897" y="72" width="50" height="50" />
305 <dc:Bounds x="897" y="44" width="49" height="12" />
308 <bpmndi:BPMNEdge id="SequenceFlow_1qjygj5_di" bpmnElement="SequenceFlow_1qjygj5">
309 <di:waypoint xsi:type="dc:Point" x="947" y="97" />
310 <di:waypoint xsi:type="dc:Point" x="1083" y="97" />
312 <dc:Bounds x="955" y="73" width="18" height="14" />
315 <bpmndi:BPMNShape id="EndEvent_0yhby6h_di" bpmnElement="EndEvent_0yhby6h">
316 <dc:Bounds x="904" y="174" width="36" height="36" />
318 <dc:Bounds x="922" y="210" width="0" height="0" />
321 <bpmndi:BPMNEdge id="SequenceFlow_0hgiouk_di" bpmnElement="SequenceFlow_0hgiouk">
322 <di:waypoint xsi:type="dc:Point" x="922" y="122" />
323 <di:waypoint xsi:type="dc:Point" x="922" y="147" />
324 <di:waypoint xsi:type="dc:Point" x="922" y="147" />
325 <di:waypoint xsi:type="dc:Point" x="922" y="174" />
327 <dc:Bounds x="931" y="147" width="12" height="12" />
331 </bpmndi:BPMNDiagram>