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:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="_vwRmIBsREeeIQtzUKIjH4g" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="Camunda Modeler" exporterVersion="1.10.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3 <bpmn2:process id="HomingBB" name="Homing" isExecutable="true">
4 <bpmn2:startEvent id="start">
5 <bpmn2:outgoing>SequenceFlow_1x9usa6</bpmn2:outgoing>
7 <bpmn2:sequenceFlow id="SequenceFlow_1x9usa6" sourceRef="start" targetRef="sniroOofCheck" />
8 <bpmn2:subProcess id="bpmnErrorSubprocess" name="Error Handling Subprocess" triggeredByEvent="true">
9 <bpmn2:endEvent id="endBpmnError">
10 <bpmn2:incoming>SequenceFlow_1rf4vs8</bpmn2:incoming>
11 <bpmn2:terminateEventDefinition />
13 <bpmn2:startEvent id="startBpmnError">
14 <bpmn2:outgoing>SequenceFlow_00nlh7l</bpmn2:outgoing>
15 <bpmn2:errorEventDefinition />
17 <bpmn2:scriptTask id="processMsoWorkflowException" name="Process Error" scriptFormat="groovy">
18 <bpmn2:incoming>SequenceFlow_00nlh7l</bpmn2:incoming>
19 <bpmn2:outgoing>SequenceFlow_1rf4vs8</bpmn2:outgoing>
20 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
21 ExceptionUtil ex = new ExceptionUtil()
22 ex.processSubflowsBPMNException(execution)]]></bpmn2:script>
24 <bpmn2:sequenceFlow id="SequenceFlow_1rf4vs8" sourceRef="processMsoWorkflowException" targetRef="endBpmnError" />
25 <bpmn2:sequenceFlow id="SequenceFlow_00nlh7l" sourceRef="startBpmnError" targetRef="processMsoWorkflowException" />
27 <bpmn2:subProcess id="javaExceptionSubProcess" name="Java Exception Sub Process" triggeredByEvent="true">
28 <bpmn2:scriptTask id="processJavaException" name="Process Error" scriptFormat="groovy">
29 <bpmn2:incoming>SequenceFlow_0kamg53</bpmn2:incoming>
30 <bpmn2:outgoing>SequenceFlow_1o7154s</bpmn2:outgoing>
31 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
32 ExceptionUtil ex = new ExceptionUtil()
33 ex.processJavaException(execution)]]></bpmn2:script>
35 <bpmn2:startEvent id="startJavaError">
36 <bpmn2:outgoing>SequenceFlow_0kamg53</bpmn2:outgoing>
37 <bpmn2:errorEventDefinition errorRef="Error_1lwpypa" />
39 <bpmn2:endEvent id="endJavaError">
40 <bpmn2:incoming>SequenceFlow_1o7154s</bpmn2:incoming>
41 <bpmn2:terminateEventDefinition />
43 <bpmn2:sequenceFlow id="SequenceFlow_0kamg53" name="" sourceRef="startJavaError" targetRef="processJavaException" />
44 <bpmn2:sequenceFlow id="SequenceFlow_1o7154s" name="" sourceRef="processJavaException" targetRef="endJavaError" />
46 <bpmn2:callActivity id="receiveAsyncCallback" name="Receive Async Callback" camunda:modelerTemplate="receiveWorkflowMessage" calledElement="ReceiveWorkflowMessage">
47 <bpmn2:extensionElements>
48 <camunda:in source="true" target="isDebugLogEnabled" />
49 <camunda:out source="WorkflowException" target="WorkflowException" />
50 <camunda:in source="asyncMessageType" target="RCVWFMSG_messageType" />
51 <camunda:in source="asyncCorrelator" target="RCVWFMSG_correlator" />
52 <camunda:in source="asyncTimeout" target="RCVWFMSG_timeout" />
53 <camunda:out source="WorkflowResponse" target="asyncResponse" />
54 </bpmn2:extensionElements>
55 <bpmn2:incoming>SequenceFlow_1qbnm82</bpmn2:incoming>
56 <bpmn2:outgoing>SequenceFlow_1fipbmk</bpmn2:outgoing>
58 <bpmn2:sequenceFlow id="SequenceFlow_1fipbmk" sourceRef="receiveAsyncCallback" targetRef="sniroOofCheck2" />
59 <bpmn2:sequenceFlow id="SequenceFlow_01apjvo" sourceRef="processSniroSolution" targetRef="ExclusiveGateway_1kvzxpb" />
60 <bpmn2:endEvent id="end">
61 <bpmn2:incoming>SequenceFlow_1urt5i6</bpmn2:incoming>
62 <bpmn2:terminateEventDefinition />
64 <bpmn2:sequenceFlow id="SequenceFlow_0lc15i7" sourceRef="callSniro" targetRef="ExclusiveGateway_1ckp059" />
65 <bpmn2:sequenceFlow id="SequenceFlow_1dtador" name="Sniro" sourceRef="sniroOofCheck" targetRef="callSniro" />
66 <bpmn2:sequenceFlow id="SequenceFlow_1qbnm82" sourceRef="ExclusiveGateway_1ckp059" targetRef="receiveAsyncCallback" />
67 <bpmn2:sequenceFlow id="SequenceFlow_08k112s" name="Sniro" sourceRef="sniroOofCheck2" targetRef="processSniroSolution" />
68 <bpmn2:sequenceFlow id="SequenceFlow_0m6nhqg" name="Oof" sourceRef="sniroOofCheck" targetRef="callOof">
69 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[${execution.getVariable("homingService") == "oof"}]]></bpmn2:conditionExpression>
71 <bpmn2:sequenceFlow id="SequenceFlow_0kvax6n" sourceRef="callOof" targetRef="ExclusiveGateway_1ckp059" />
72 <bpmn2:sequenceFlow id="SequenceFlow_0oixz4g" name="Oof" sourceRef="sniroOofCheck2" targetRef="processOofSolution">
73 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[${execution.getVariable("homingService") == "oof"}]]></bpmn2:conditionExpression>
75 <bpmn2:sequenceFlow id="SequenceFlow_0ph4paa" sourceRef="processOofSolution" targetRef="ExclusiveGateway_1kvzxpb" />
76 <bpmn2:sequenceFlow id="SequenceFlow_1urt5i6" sourceRef="ExclusiveGateway_1kvzxpb" targetRef="end" />
77 <bpmn2:serviceTask id="callSniro" name=" SNIRO Post (demands) " camunda:expression="${SniroHoming.callSniro(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
78 <bpmn2:incoming>SequenceFlow_1dtador</bpmn2:incoming>
79 <bpmn2:outgoing>SequenceFlow_0lc15i7</bpmn2:outgoing>
81 <bpmn2:serviceTask id="processSniroSolution" name=" Process Solution " camunda:expression="${SniroHoming.processSolution(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")), asyncResponse)}">
82 <bpmn2:incoming>SequenceFlow_08k112s</bpmn2:incoming>
83 <bpmn2:outgoing>SequenceFlow_01apjvo</bpmn2:outgoing>
85 <bpmn2:serviceTask id="callOof" name=" OOF Post (demands) " camunda:expression="${OofHoming.callSniro(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
86 <bpmn2:incoming>SequenceFlow_0m6nhqg</bpmn2:incoming>
87 <bpmn2:outgoing>SequenceFlow_0kvax6n</bpmn2:outgoing>
89 <bpmn2:serviceTask id="processOofSolution" name=" Process Solution " camunda:expression="${OofHoming.processSolution(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")), asyncResponse)}">
90 <bpmn2:incoming>SequenceFlow_0oixz4g</bpmn2:incoming>
91 <bpmn2:outgoing>SequenceFlow_0ph4paa</bpmn2:outgoing>
93 <bpmn2:inclusiveGateway id="sniroOofCheck" name="Homing Service? " default="SequenceFlow_1dtador">
94 <bpmn2:incoming>SequenceFlow_1x9usa6</bpmn2:incoming>
95 <bpmn2:outgoing>SequenceFlow_1dtador</bpmn2:outgoing>
96 <bpmn2:outgoing>SequenceFlow_0m6nhqg</bpmn2:outgoing>
97 </bpmn2:inclusiveGateway>
98 <bpmn2:inclusiveGateway id="ExclusiveGateway_1ckp059">
99 <bpmn2:incoming>SequenceFlow_0lc15i7</bpmn2:incoming>
100 <bpmn2:incoming>SequenceFlow_0kvax6n</bpmn2:incoming>
101 <bpmn2:outgoing>SequenceFlow_1qbnm82</bpmn2:outgoing>
102 </bpmn2:inclusiveGateway>
103 <bpmn2:inclusiveGateway id="sniroOofCheck2" name="Homing Service?" default="SequenceFlow_08k112s">
104 <bpmn2:incoming>SequenceFlow_1fipbmk</bpmn2:incoming>
105 <bpmn2:outgoing>SequenceFlow_08k112s</bpmn2:outgoing>
106 <bpmn2:outgoing>SequenceFlow_0oixz4g</bpmn2:outgoing>
107 </bpmn2:inclusiveGateway>
108 <bpmn2:inclusiveGateway id="ExclusiveGateway_1kvzxpb">
109 <bpmn2:incoming>SequenceFlow_01apjvo</bpmn2:incoming>
110 <bpmn2:incoming>SequenceFlow_0ph4paa</bpmn2:incoming>
111 <bpmn2:outgoing>SequenceFlow_1urt5i6</bpmn2:outgoing>
112 </bpmn2:inclusiveGateway>
114 <bpmn2:error id="Error_10hit0u" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
115 <bpmn2:error id="Error_1lwpypa" name="Java Lang Exception" errorCode="java.lang.Exception" />
116 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
117 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="HomingBB">
118 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="start">
119 <dc:Bounds x="135" y="275" width="36" height="36" />
121 <dc:Bounds x="108" y="311" width="90" height="20" />
124 <bpmndi:BPMNEdge id="SequenceFlow_1x9usa6_di" bpmnElement="SequenceFlow_1x9usa6">
125 <di:waypoint xsi:type="dc:Point" x="171" y="293" />
126 <di:waypoint xsi:type="dc:Point" x="291" y="293" />
128 <dc:Bounds x="186" y="278" width="90" height="0" />
131 <bpmndi:BPMNShape id="SubProcess_16p12qo_di" bpmnElement="bpmnErrorSubprocess" isExpanded="true">
132 <dc:Bounds x="254" y="496" width="409" height="168" />
134 <bpmndi:BPMNShape id="SubProcess_12gjiy8_di" bpmnElement="javaExceptionSubProcess" isExpanded="true">
135 <dc:Bounds x="284" y="679" width="350" height="159" />
137 <bpmndi:BPMNShape id="EndEvent_07tjq3v_di" bpmnElement="endBpmnError">
138 <dc:Bounds x="579" y="570" width="36" height="36" />
140 <dc:Bounds x="552" y="611" width="90" height="0" />
143 <bpmndi:BPMNShape id="StartEvent_1qiitb2_di" bpmnElement="startBpmnError">
144 <dc:Bounds x="299" y="570" width="36" height="36" />
146 <dc:Bounds x="272" y="611" width="90" height="0" />
149 <bpmndi:BPMNShape id="ScriptTask_03hs6s9_di" bpmnElement="processMsoWorkflowException">
150 <dc:Bounds x="406" y="548" width="100" height="80" />
152 <bpmndi:BPMNShape id="ScriptTask_19gqykh_di" bpmnElement="processJavaException">
153 <dc:Bounds x="410" y="727" width="100" height="80" />
155 <bpmndi:BPMNShape id="StartEvent_1fbpeuw_di" bpmnElement="startJavaError">
156 <dc:Bounds x="318" y="749" width="36" height="36" />
158 <dc:Bounds x="291" y="790" width="90" height="0" />
161 <bpmndi:BPMNShape id="EndEvent_0jbvnr0_di" bpmnElement="endJavaError">
162 <dc:Bounds x="567" y="749" width="36" height="36" />
164 <dc:Bounds x="540" y="790" width="90" height="0" />
167 <bpmndi:BPMNEdge id="SequenceFlow_1rf4vs8_di" bpmnElement="SequenceFlow_1rf4vs8">
168 <di:waypoint xsi:type="dc:Point" x="506" y="588" />
169 <di:waypoint xsi:type="dc:Point" x="579" y="588" />
171 <dc:Bounds x="498" y="573" width="90" height="0" />
174 <bpmndi:BPMNEdge id="SequenceFlow_00nlh7l_di" bpmnElement="SequenceFlow_00nlh7l">
175 <di:waypoint xsi:type="dc:Point" x="335" y="588" />
176 <di:waypoint xsi:type="dc:Point" x="363" y="588" />
177 <di:waypoint xsi:type="dc:Point" x="363" y="588" />
178 <di:waypoint xsi:type="dc:Point" x="406" y="588" />
180 <dc:Bounds x="333" y="588" width="90" height="0" />
183 <bpmndi:BPMNEdge id="SequenceFlow_0kamg53_di" bpmnElement="SequenceFlow_0kamg53">
184 <di:waypoint xsi:type="dc:Point" x="354" y="767" />
185 <di:waypoint xsi:type="dc:Point" x="410" y="767" />
187 <dc:Bounds x="337" y="752" width="90" height="0" />
190 <bpmndi:BPMNEdge id="SequenceFlow_1o7154s_di" bpmnElement="SequenceFlow_1o7154s">
191 <di:waypoint xsi:type="dc:Point" x="510" y="767" />
192 <di:waypoint xsi:type="dc:Point" x="567" y="767" />
194 <dc:Bounds x="494" y="752" width="90" height="0" />
197 <bpmndi:BPMNShape id="CallActivity_031b5m3_di" bpmnElement="receiveAsyncCallback">
198 <dc:Bounds x="547" y="253" width="100" height="80" />
200 <bpmndi:BPMNEdge id="SequenceFlow_1fipbmk_di" bpmnElement="SequenceFlow_1fipbmk">
201 <di:waypoint xsi:type="dc:Point" x="647" y="293" />
202 <di:waypoint xsi:type="dc:Point" x="677" y="293" />
204 <dc:Bounds x="617" y="272" width="90" height="12" />
207 <bpmndi:BPMNEdge id="SequenceFlow_01apjvo_di" bpmnElement="SequenceFlow_01apjvo">
208 <di:waypoint xsi:type="dc:Point" x="847" y="214" />
209 <di:waypoint xsi:type="dc:Point" x="885" y="214" />
210 <di:waypoint xsi:type="dc:Point" x="885" y="268" />
212 <dc:Bounds x="821" y="193" width="90" height="12" />
215 <bpmndi:BPMNShape id="EndEvent_07i1a5x_di" bpmnElement="end">
216 <dc:Bounds x="1034" y="275" width="36" height="36" />
218 <dc:Bounds x="1006" y="315" width="90" height="12" />
221 <bpmndi:BPMNEdge id="SequenceFlow_0lc15i7_di" bpmnElement="SequenceFlow_0lc15i7">
222 <di:waypoint xsi:type="dc:Point" x="462" y="214" />
223 <di:waypoint xsi:type="dc:Point" x="500" y="214" />
224 <di:waypoint xsi:type="dc:Point" x="500" y="267" />
226 <dc:Bounds x="436" y="193" width="90" height="12" />
229 <bpmndi:BPMNEdge id="SequenceFlow_1dtador_di" bpmnElement="SequenceFlow_1dtador">
230 <di:waypoint xsi:type="dc:Point" x="316" y="268" />
231 <di:waypoint xsi:type="dc:Point" x="316" y="214" />
232 <di:waypoint xsi:type="dc:Point" x="362" y="214" />
234 <dc:Bounds x="322.2567567567568" y="221" width="25" height="12" />
237 <bpmndi:BPMNEdge id="SequenceFlow_1qbnm82_di" bpmnElement="SequenceFlow_1qbnm82">
238 <di:waypoint xsi:type="dc:Point" x="525" y="292" />
239 <di:waypoint xsi:type="dc:Point" x="547" y="292" />
241 <dc:Bounds x="536" y="271" width="0" height="12" />
244 <bpmndi:BPMNEdge id="SequenceFlow_08k112s_di" bpmnElement="SequenceFlow_08k112s">
245 <di:waypoint xsi:type="dc:Point" x="702" y="268" />
246 <di:waypoint xsi:type="dc:Point" x="702" y="214" />
247 <di:waypoint xsi:type="dc:Point" x="747" y="214" />
249 <dc:Bounds x="707.7837837837837" y="221" width="25" height="12" />
252 <bpmndi:BPMNEdge id="SequenceFlow_0m6nhqg_di" bpmnElement="SequenceFlow_0m6nhqg">
253 <di:waypoint xsi:type="dc:Point" x="316" y="318" />
254 <di:waypoint xsi:type="dc:Point" x="316" y="368" />
255 <di:waypoint xsi:type="dc:Point" x="362" y="368" />
257 <dc:Bounds x="323" y="344" width="19" height="12" />
260 <bpmndi:BPMNEdge id="SequenceFlow_0kvax6n_di" bpmnElement="SequenceFlow_0kvax6n">
261 <di:waypoint xsi:type="dc:Point" x="462" y="368" />
262 <di:waypoint xsi:type="dc:Point" x="500" y="368" />
263 <di:waypoint xsi:type="dc:Point" x="500" y="317" />
265 <dc:Bounds x="481" y="347" width="0" height="12" />
268 <bpmndi:BPMNEdge id="SequenceFlow_0oixz4g_di" bpmnElement="SequenceFlow_0oixz4g">
269 <di:waypoint xsi:type="dc:Point" x="702" y="318" />
270 <di:waypoint xsi:type="dc:Point" x="702" y="368" />
271 <di:waypoint xsi:type="dc:Point" x="747" y="368" />
273 <dc:Bounds x="708.3513513513514" y="345" width="19" height="12" />
276 <bpmndi:BPMNEdge id="SequenceFlow_0ph4paa_di" bpmnElement="SequenceFlow_0ph4paa">
277 <di:waypoint xsi:type="dc:Point" x="847" y="368" />
278 <di:waypoint xsi:type="dc:Point" x="885" y="368" />
279 <di:waypoint xsi:type="dc:Point" x="885" y="318" />
281 <dc:Bounds x="866" y="347" width="0" height="12" />
284 <bpmndi:BPMNEdge id="SequenceFlow_1urt5i6_di" bpmnElement="SequenceFlow_1urt5i6">
285 <di:waypoint xsi:type="dc:Point" x="910" y="293" />
286 <di:waypoint xsi:type="dc:Point" x="1034" y="293" />
288 <dc:Bounds x="972" y="272" width="0" height="12" />
291 <bpmndi:BPMNShape id="ServiceTask_0388svf_di" bpmnElement="callSniro">
292 <dc:Bounds x="362" y="174" width="100" height="80" />
294 <bpmndi:BPMNShape id="ServiceTask_1o0vjzl_di" bpmnElement="processSniroSolution">
295 <dc:Bounds x="747" y="174" width="100" height="80" />
297 <bpmndi:BPMNShape id="ServiceTask_0rcv8sl_di" bpmnElement="callOof">
298 <dc:Bounds x="362" y="328" width="100" height="80" />
300 <bpmndi:BPMNShape id="ServiceTask_0fs2fyg_di" bpmnElement="processOofSolution">
301 <dc:Bounds x="747" y="328" width="100" height="80" />
303 <bpmndi:BPMNShape id="InclusiveGateway_0ssv6eg_di" bpmnElement="sniroOofCheck">
304 <dc:Bounds x="291" y="268" width="50" height="50" />
306 <dc:Bounds x="344" y="283" width="43" height="36" />
309 <bpmndi:BPMNShape id="InclusiveGateway_0pf91to_di" bpmnElement="ExclusiveGateway_1ckp059">
310 <dc:Bounds x="475" y="267" width="50" height="50" />
312 <dc:Bounds x="500" y="321" width="0" height="12" />
315 <bpmndi:BPMNShape id="InclusiveGateway_17vx4ua_di" bpmnElement="sniroOofCheck2">
316 <dc:Bounds x="677" y="268" width="50" height="50" />
318 <dc:Bounds x="730" y="281" width="43" height="24" />
321 <bpmndi:BPMNShape id="InclusiveGateway_1610p1j_di" bpmnElement="ExclusiveGateway_1kvzxpb">
322 <dc:Bounds x="860" y="268" width="50" height="50" />
324 <dc:Bounds x="885" y="322" width="0" height="12" />
328 </bpmndi:BPMNDiagram>