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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.11.3">
3 <bpmn:process id="CompareModelofE2EServiceInstance" name="CompareModelofE2EServiceInstance" isExecutable="true">
4 <bpmn:startEvent id="StartEvent_00qj6ro" name="Start Flow">
5 <bpmn:outgoing>SequenceFlow_0s2spoq</bpmn:outgoing>
7 <bpmn:subProcess id="SubProcess_0ka59nc" name="Sub-process for UnexpectedErrors" triggeredByEvent="true">
8 <bpmn:scriptTask id="ScriptTask_0u3lw39" name="Handle Unexpected Error" scriptFormat="groovy">
9 <bpmn:incoming>SequenceFlow_1dsbjjb</bpmn:incoming>
10 <bpmn:outgoing>SequenceFlow_1yay321</bpmn:outgoing>
11 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
12 ExceptionUtil ex = new ExceptionUtil()
13 ex.processJavaException(execution)]]></bpmn:script>
15 <bpmn:startEvent id="StartEvent_0v1ffn4">
16 <bpmn:outgoing>SequenceFlow_1dsbjjb</bpmn:outgoing>
17 <bpmn:errorEventDefinition />
19 <bpmn:endEvent id="EndEvent_0eznq6x">
20 <bpmn:incoming>SequenceFlow_1yay321</bpmn:incoming>
22 <bpmn:sequenceFlow id="SequenceFlow_1dsbjjb" name="" sourceRef="StartEvent_0v1ffn4" targetRef="ScriptTask_0u3lw39" />
23 <bpmn:sequenceFlow id="SequenceFlow_1yay321" name="" sourceRef="ScriptTask_0u3lw39" targetRef="EndEvent_0eznq6x" />
25 <bpmn:callActivity id="DoCompareModelofE2EServiceInstance" name="Call DoCompareModelofE2EServiceInstance " calledElement="DoCompareModelofE2EServiceInstance">
26 <bpmn:extensionElements>
27 <camunda:out source="WorkflowException" target="WorkflowException" />
28 <camunda:in source="msoRequestId" target="msoRequestId" />
29 <camunda:out source="rollbackData" target="rollbackData" />
30 <camunda:in source="serviceInstanceId" target="serviceInstanceId" />
31 <camunda:in source="serviceInstanceName" target="serviceInstanceName" />
32 <camunda:in source="productFamilyId" target="productFamilyId" />
33 <camunda:in source="disableRollback" target="disableRollback" />
34 <camunda:in source="uuiRequest" target="uuiRequest" />
35 <camunda:out source="rolledBack" target="rolledBack" />
36 <camunda:out source="serviceInstanceName" target="serviceInstanceName" />
37 <camunda:in source="failIfExists" target="failIfExists" />
38 <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
39 <camunda:in source="serviceType" target="serviceType" />
40 <camunda:in source="initialStatus" target="initialStatus" />
41 <camunda:in source="operationId" target="operationId" />
42 <camunda:in source="operationType" target="operationType" />
43 <camunda:in source="URN_mso_adapters_openecomp_db_endpoint" target="URN_mso_adapters_openecomp_db_endpoint" />
44 </bpmn:extensionElements>
45 <bpmn:incoming>SequenceFlow_0tm7z1o</bpmn:incoming>
46 <bpmn:outgoing>SequenceFlow_0klbpxx</bpmn:outgoing>
48 <bpmn:endEvent id="EndEvent_0bpd6c0" name="End">
49 <bpmn:incoming>SequenceFlow_0yayvrf</bpmn:incoming>
51 <bpmn:scriptTask id="ScriptTask_1s09c7d" name="Pre Process Incoming Request" scriptFormat="groovy">
52 <bpmn:incoming>SequenceFlow_0s2spoq</bpmn:incoming>
53 <bpmn:outgoing>SequenceFlow_0tm7z1o</bpmn:outgoing>
54 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
55 def csi= new CompareModelofE2EServiceInstance()
56 csi.preProcessRequest(execution)]]></bpmn:script>
58 <bpmn:subProcess id="SubProcess_0vaws86" name="Sub-process for FalloutHandler and Rollback" triggeredByEvent="true">
59 <bpmn:startEvent id="StartEvent_0dug28e">
60 <bpmn:outgoing>SequenceFlow_0e1r62n</bpmn:outgoing>
61 <bpmn:errorEventDefinition />
63 <bpmn:endEvent id="EndEvent_03wysuk">
64 <bpmn:incoming>SequenceFlow_1ysapam</bpmn:incoming>
66 <bpmn:scriptTask id="ScriptTask_0u8o9p2" name="Prepare Fallout Request" scriptFormat="groovy">
67 <bpmn:incoming>SequenceFlow_0n9pexp</bpmn:incoming>
68 <bpmn:outgoing>SequenceFlow_01umodj</bpmn:outgoing>
69 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
70 def csi = new CompareModelofE2EServiceInstance()
71 csi.prepareFalloutRequest(execution)]]></bpmn:script>
73 <bpmn:callActivity id="CallActivity_1ang7q8" name="Call FalloutHandler" calledElement="FalloutHandler">
74 <bpmn:extensionElements>
75 <camunda:in source="falloutRequest" target="FalloutHandlerRequest" />
76 <camunda:in source="mso-request-id" target="mso-request-id" />
77 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
78 <camunda:out source="FH_ResponseCode" target="FH_ResponseCode" />
79 <camunda:out source="FalloutHandlerResponse" target="FalloutHandlerResponse" />
80 <camunda:out source="FH_ErrorResponse" target="FH_ErrorResponse" />
81 </bpmn:extensionElements>
82 <bpmn:incoming>SequenceFlow_01umodj</bpmn:incoming>
83 <bpmn:outgoing>SequenceFlow_1ysapam</bpmn:outgoing>
85 <bpmn:scriptTask id="ScriptTask_1rn6nqi" name="Send Error Response">
86 <bpmn:incoming>SequenceFlow_0e1r62n</bpmn:incoming>
87 <bpmn:outgoing>SequenceFlow_0n9pexp</bpmn:outgoing>
88 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
89 def csi = new CompareModelofE2EServiceInstance()
90 csi.sendSyncError(execution)]]></bpmn:script>
92 <bpmn:sequenceFlow id="SequenceFlow_0e1r62n" sourceRef="StartEvent_0dug28e" targetRef="ScriptTask_1rn6nqi" />
93 <bpmn:sequenceFlow id="SequenceFlow_1ysapam" sourceRef="CallActivity_1ang7q8" targetRef="EndEvent_03wysuk" />
94 <bpmn:sequenceFlow id="SequenceFlow_0n9pexp" sourceRef="ScriptTask_1rn6nqi" targetRef="ScriptTask_0u8o9p2" />
95 <bpmn:sequenceFlow id="SequenceFlow_01umodj" sourceRef="ScriptTask_0u8o9p2" targetRef="CallActivity_1ang7q8" />
97 <bpmn:scriptTask id="ScriptTask_0xupxj9" name="Send Sync Ack Response" scriptFormat="groovy">
98 <bpmn:incoming>SequenceFlow_0klbpxx</bpmn:incoming>
99 <bpmn:outgoing>SequenceFlow_12jdmq5</bpmn:outgoing>
100 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
101 def csi = new CompareModelofE2EServiceInstance()
102 csi.sendSyncResponse(execution)]]></bpmn:script>
104 <bpmn:exclusiveGateway id="ExclusiveGateway_0aqn64l" name="Success?">
105 <bpmn:incoming>SequenceFlow_12jdmq5</bpmn:incoming>
106 <bpmn:outgoing>SequenceFlow_1fueo69</bpmn:outgoing>
107 <bpmn:outgoing>SequenceFlow_0y8s0kd</bpmn:outgoing>
108 </bpmn:exclusiveGateway>
109 <bpmn:endEvent id="EndEvent_07uk5iy">
110 <bpmn:incoming>SequenceFlow_1fueo69</bpmn:incoming>
111 <bpmn:errorEventDefinition errorRef="Error_0nbdy47" />
113 <bpmn:sequenceFlow id="SequenceFlow_0s2spoq" sourceRef="StartEvent_00qj6ro" targetRef="ScriptTask_1s09c7d" />
114 <bpmn:sequenceFlow id="SequenceFlow_0klbpxx" sourceRef="DoCompareModelofE2EServiceInstance" targetRef="ScriptTask_0xupxj9" />
115 <bpmn:sequenceFlow id="SequenceFlow_1fueo69" name="no" sourceRef="ExclusiveGateway_0aqn64l" targetRef="EndEvent_07uk5iy">
116 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{execution.getVariable("WorkflowException") != null}]]></bpmn:conditionExpression>
118 <bpmn:sequenceFlow id="SequenceFlow_0tm7z1o" sourceRef="ScriptTask_1s09c7d" targetRef="DoCompareModelofE2EServiceInstance" />
119 <bpmn:callActivity id="CallActivity_02fyxz0" name="Call CompleteMsoProcess" calledElement="CompleteMsoProcess">
120 <bpmn:extensionElements>
121 <camunda:in source="completionRequest" target="CompleteMsoProcessRequest" />
122 <camunda:in source="mso-request-id" target="mso-request-id" />
123 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
124 <camunda:out source="CMSO_ResponseCode" target="CMSO_ResponseCode" />
125 <camunda:out source="CompleteMsoProcessResponse" target="CompleteMsoProcessResponse" />
126 <camunda:out source="CMSO_ErrorResponse" target="CMSO_ErrorResponse" />
127 </bpmn:extensionElements>
128 <bpmn:incoming>SequenceFlow_0a01ez6</bpmn:incoming>
129 <bpmn:outgoing>SequenceFlow_0yayvrf</bpmn:outgoing>
131 <bpmn:sequenceFlow id="SequenceFlow_0yayvrf" sourceRef="CallActivity_02fyxz0" targetRef="EndEvent_0bpd6c0" />
132 <bpmn:sequenceFlow id="SequenceFlow_12jdmq5" sourceRef="ScriptTask_0xupxj9" targetRef="ExclusiveGateway_0aqn64l" />
133 <bpmn:scriptTask id="ScriptTask_0hkyfdj" name="Prepare Completion Request" scriptFormat="groovy">
134 <bpmn:incoming>SequenceFlow_0y8s0kd</bpmn:incoming>
135 <bpmn:outgoing>SequenceFlow_0a01ez6</bpmn:outgoing>
136 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
137 def csi = new CompareModelofE2EServiceInstance()
138 csi.prepareCompletionRequest(execution)]]></bpmn:script>
140 <bpmn:sequenceFlow id="SequenceFlow_0a01ez6" sourceRef="ScriptTask_0hkyfdj" targetRef="CallActivity_02fyxz0" />
141 <bpmn:sequenceFlow id="SequenceFlow_0y8s0kd" name="yes" sourceRef="ExclusiveGateway_0aqn64l" targetRef="ScriptTask_0hkyfdj">
142 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{execution.getVariable("WorkflowException") == null}]]></bpmn:conditionExpression>
145 <bpmn:error id="Error_0nbdy47" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
146 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
147 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CompareModelofE2EServiceInstance">
148 <bpmndi:BPMNShape id="StartEvent_00qj6ro_di" bpmnElement="StartEvent_00qj6ro">
149 <dc:Bounds x="-6" y="180" width="36" height="36" />
151 <dc:Bounds x="-12" y="221" width="50" height="12" />
154 <bpmndi:BPMNShape id="SubProcess_0ka59nc_di" bpmnElement="SubProcess_0ka59nc" isExpanded="true">
155 <dc:Bounds x="463" y="632" width="394" height="188" />
157 <bpmndi:BPMNShape id="CallActivity_0rhljy8_di" bpmnElement="DoCompareModelofE2EServiceInstance">
158 <dc:Bounds x="458" y="158" width="100" height="80" />
160 <bpmndi:BPMNShape id="EndEvent_0bpd6c0_di" bpmnElement="EndEvent_0bpd6c0">
161 <dc:Bounds x="1258" y="286" width="36" height="36" />
163 <dc:Bounds x="1268" y="322" width="22" height="12" />
166 <bpmndi:BPMNShape id="ScriptTask_1s09c7d_di" bpmnElement="ScriptTask_1s09c7d">
167 <dc:Bounds x="214" y="158" width="100" height="80" />
169 <bpmndi:BPMNShape id="SubProcess_0vaws86_di" bpmnElement="SubProcess_0vaws86" isExpanded="true">
170 <dc:Bounds x="348" y="370" width="679" height="194" />
172 <bpmndi:BPMNShape id="ScriptTask_0xupxj9_di" bpmnElement="ScriptTask_0xupxj9">
173 <dc:Bounds x="683" y="158" width="100" height="80" />
175 <bpmndi:BPMNShape id="ExclusiveGateway_0aqn64l_di" bpmnElement="ExclusiveGateway_0aqn64l" isMarkerVisible="true">
176 <dc:Bounds x="903" y="173" width="50" height="50" />
178 <dc:Bounds x="903" y="145" width="50" height="12" />
181 <bpmndi:BPMNShape id="EndEvent_07uk5iy_di" bpmnElement="EndEvent_07uk5iy">
182 <dc:Bounds x="910" y="286" width="36" height="36" />
184 <dc:Bounds x="883" y="322" width="0" height="12" />
187 <bpmndi:BPMNEdge id="SequenceFlow_0s2spoq_di" bpmnElement="SequenceFlow_0s2spoq">
188 <di:waypoint xsi:type="dc:Point" x="30" y="198" />
189 <di:waypoint xsi:type="dc:Point" x="214" y="198" />
191 <dc:Bounds x="77" y="177" width="90" height="12" />
194 <bpmndi:BPMNEdge id="SequenceFlow_0klbpxx_di" bpmnElement="SequenceFlow_0klbpxx">
195 <di:waypoint xsi:type="dc:Point" x="558" y="198" />
196 <di:waypoint xsi:type="dc:Point" x="683" y="198" />
198 <dc:Bounds x="575.5" y="177" width="90" height="12" />
201 <bpmndi:BPMNEdge id="SequenceFlow_1fueo69_di" bpmnElement="SequenceFlow_1fueo69">
202 <di:waypoint xsi:type="dc:Point" x="928" y="223" />
203 <di:waypoint xsi:type="dc:Point" x="928" y="250" />
204 <di:waypoint xsi:type="dc:Point" x="928" y="250" />
205 <di:waypoint xsi:type="dc:Point" x="928" y="286" />
207 <dc:Bounds x="901" y="228" width="15" height="12" />
210 <bpmndi:BPMNShape id="ScriptTask_0u3lw39_di" bpmnElement="ScriptTask_0u3lw39">
211 <dc:Bounds x="611" y="687" width="100" height="80" />
213 <bpmndi:BPMNShape id="StartEvent_0v1ffn4_di" bpmnElement="StartEvent_0v1ffn4">
214 <dc:Bounds x="496" y="709" width="36" height="36" />
216 <dc:Bounds x="469" y="750" width="0" height="12" />
219 <bpmndi:BPMNShape id="EndEvent_0eznq6x_di" bpmnElement="EndEvent_0eznq6x">
220 <dc:Bounds x="772" y="709" width="36" height="36" />
222 <dc:Bounds x="745" y="750" width="0" height="12" />
225 <bpmndi:BPMNShape id="StartEvent_0dug28e_di" bpmnElement="StartEvent_0dug28e">
226 <dc:Bounds x="363" y="456" width="36" height="36" />
228 <dc:Bounds x="336" y="497" width="0" height="12" />
231 <bpmndi:BPMNShape id="EndEvent_03wysuk_di" bpmnElement="EndEvent_03wysuk">
232 <dc:Bounds x="942" y="456" width="36" height="36" />
234 <dc:Bounds x="915" y="497" width="0" height="12" />
237 <bpmndi:BPMNShape id="ScriptTask_0u8o9p2_di" bpmnElement="ScriptTask_0u8o9p2">
238 <dc:Bounds x="621" y="434" width="100" height="80" />
240 <bpmndi:BPMNShape id="CallActivity_1ang7q8_di" bpmnElement="CallActivity_1ang7q8">
241 <dc:Bounds x="798" y="434" width="100" height="80" />
243 <bpmndi:BPMNShape id="ScriptTask_1rn6nqi_di" bpmnElement="ScriptTask_1rn6nqi">
244 <dc:Bounds x="443" y="434" width="100" height="80" />
246 <bpmndi:BPMNEdge id="SequenceFlow_1dsbjjb_di" bpmnElement="SequenceFlow_1dsbjjb">
247 <di:waypoint xsi:type="dc:Point" x="532" y="727" />
248 <di:waypoint xsi:type="dc:Point" x="611" y="727" />
250 <dc:Bounds x="529.5" y="727" width="0" height="12" />
253 <bpmndi:BPMNEdge id="SequenceFlow_1yay321_di" bpmnElement="SequenceFlow_1yay321">
254 <di:waypoint xsi:type="dc:Point" x="711" y="727" />
255 <di:waypoint xsi:type="dc:Point" x="772" y="727" />
257 <dc:Bounds x="701.5" y="727" width="0" height="12" />
260 <bpmndi:BPMNEdge id="SequenceFlow_0e1r62n_di" bpmnElement="SequenceFlow_0e1r62n">
261 <di:waypoint xsi:type="dc:Point" x="399" y="474" />
262 <di:waypoint xsi:type="dc:Point" x="421" y="474" />
263 <di:waypoint xsi:type="dc:Point" x="421" y="474" />
264 <di:waypoint xsi:type="dc:Point" x="442" y="474" />
266 <dc:Bounds x="391" y="474" width="0" height="12" />
269 <bpmndi:BPMNEdge id="SequenceFlow_1ysapam_di" bpmnElement="SequenceFlow_1ysapam">
270 <di:waypoint xsi:type="dc:Point" x="898" y="474" />
271 <di:waypoint xsi:type="dc:Point" x="942" y="474" />
273 <dc:Bounds x="875" y="459" width="0" height="12" />
276 <bpmndi:BPMNEdge id="SequenceFlow_0n9pexp_di" bpmnElement="SequenceFlow_0n9pexp">
277 <di:waypoint xsi:type="dc:Point" x="543" y="474" />
278 <di:waypoint xsi:type="dc:Point" x="570" y="474" />
279 <di:waypoint xsi:type="dc:Point" x="570" y="474" />
280 <di:waypoint xsi:type="dc:Point" x="621" y="474" />
282 <dc:Bounds x="540" y="474" width="0" height="12" />
285 <bpmndi:BPMNEdge id="SequenceFlow_01umodj_di" bpmnElement="SequenceFlow_01umodj">
286 <di:waypoint xsi:type="dc:Point" x="721" y="474" />
287 <di:waypoint xsi:type="dc:Point" x="798" y="474" />
289 <dc:Bounds x="715.5" y="459" width="0" height="12" />
292 <bpmndi:BPMNEdge id="SequenceFlow_0tm7z1o_di" bpmnElement="SequenceFlow_0tm7z1o">
293 <di:waypoint xsi:type="dc:Point" x="314" y="198" />
294 <di:waypoint xsi:type="dc:Point" x="458" y="198" />
296 <dc:Bounds x="386" y="177" width="0" height="12" />
299 <bpmndi:BPMNShape id="CallActivity_02fyxz0_di" bpmnElement="CallActivity_02fyxz0">
300 <dc:Bounds x="1226" y="158" width="100" height="80" />
302 <bpmndi:BPMNEdge id="SequenceFlow_0yayvrf_di" bpmnElement="SequenceFlow_0yayvrf">
303 <di:waypoint xsi:type="dc:Point" x="1276" y="238" />
304 <di:waypoint xsi:type="dc:Point" x="1276" y="286" />
306 <dc:Bounds x="1201" y="262" width="90" height="12" />
309 <bpmndi:BPMNEdge id="SequenceFlow_12jdmq5_di" bpmnElement="SequenceFlow_12jdmq5">
310 <di:waypoint xsi:type="dc:Point" x="783" y="198" />
311 <di:waypoint xsi:type="dc:Point" x="903" y="198" />
313 <dc:Bounds x="843" y="177" width="0" height="12" />
316 <bpmndi:BPMNShape id="ScriptTask_0hkyfdj_di" bpmnElement="ScriptTask_0hkyfdj">
317 <dc:Bounds x="1031" y="158" width="100" height="80" />
319 <bpmndi:BPMNEdge id="SequenceFlow_0a01ez6_di" bpmnElement="SequenceFlow_0a01ez6">
320 <di:waypoint xsi:type="dc:Point" x="1131" y="198" />
321 <di:waypoint xsi:type="dc:Point" x="1226" y="198" />
323 <dc:Bounds x="1178.5" y="177" width="0" height="12" />
326 <bpmndi:BPMNEdge id="SequenceFlow_0y8s0kd_di" bpmnElement="SequenceFlow_0y8s0kd">
327 <di:waypoint xsi:type="dc:Point" x="953" y="198" />
328 <di:waypoint xsi:type="dc:Point" x="1031" y="198" />
330 <dc:Bounds x="983" y="177" width="19" height="12" />
334 </bpmndi:BPMNDiagram>