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.10.0">
3 <bpmn:process id="HomingV2" name="HomingV2" isExecutable="true">
4 <bpmn:startEvent id="start">
5 <bpmn:outgoing>SequenceFlow_0gpuwes</bpmn:outgoing>
7 <bpmn:subProcess id="subprocessBpmnError" name="Error Handling Subprocess" triggeredByEvent="true">
8 <bpmn:endEvent id="endBpmnError">
9 <bpmn:incoming>SequenceFlow_14dg22y</bpmn:incoming>
10 <bpmn:terminateEventDefinition />
12 <bpmn:startEvent id="catchBpmnError">
13 <bpmn:outgoing>SequenceFlow_0g3mn4b</bpmn:outgoing>
14 <bpmn:errorEventDefinition />
16 <bpmn:scriptTask id="processBpmnError" name="Process Error" scriptFormat="groovy">
17 <bpmn:incoming>SequenceFlow_0g3mn4b</bpmn:incoming>
18 <bpmn:outgoing>SequenceFlow_14dg22y</bpmn:outgoing>
19 <bpmn:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
20 ExceptionUtil ex = new ExceptionUtil()
21 ex.processSubflowsBPMNException(execution)]]></bpmn:script>
23 <bpmn:sequenceFlow id="SequenceFlow_14dg22y" sourceRef="processBpmnError" targetRef="endBpmnError" />
24 <bpmn:sequenceFlow id="SequenceFlow_0g3mn4b" sourceRef="catchBpmnError" targetRef="processBpmnError" />
26 <bpmn:subProcess id="subprocessJavaException" triggeredByEvent="true">
27 <bpmn:scriptTask id="processJavaException" name="Process Error" scriptFormat="groovy">
28 <bpmn:incoming>seq</bpmn:incoming>
29 <bpmn:outgoing>SequenceFlow_1epbfhx</bpmn:outgoing>
30 <bpmn:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
31 ExceptionUtil ex = new ExceptionUtil()
32 ex.processJavaException(execution)]]></bpmn:script>
34 <bpmn:startEvent id="catchJavaException">
35 <bpmn:outgoing>seq</bpmn:outgoing>
36 <bpmn:errorEventDefinition errorRef="Error_0jmwlex" />
38 <bpmn:endEvent id="endJavaException">
39 <bpmn:incoming>SequenceFlow_1epbfhx</bpmn:incoming>
40 <bpmn:terminateEventDefinition />
42 <bpmn:sequenceFlow id="seq" name="" sourceRef="catchJavaException" targetRef="processJavaException" />
43 <bpmn:sequenceFlow id="SequenceFlow_1epbfhx" name="" sourceRef="processJavaException" targetRef="endJavaException" />
45 <bpmn:callActivity id="callReceiveAsync" name="Receive Async Callback" camunda:modelerTemplate="receiveWorkflowMessage" calledElement="ReceiveWorkflowMessage">
46 <bpmn:extensionElements>
47 <camunda:in source="true" target="isDebugLogEnabled" />
48 <camunda:out source="WorkflowException" target="WorkflowException" />
49 <camunda:out source="WorkflowResponse" target="asyncResponse" />
50 <camunda:in source="asyncCorrelator" target="RCVWFMSG_correlator" />
51 <camunda:in source="asyncMessageType" target="RCVWFMSG_messageType" />
52 <camunda:in source="asyncTimeout" target="RCVWFMSG_timeout" />
53 </bpmn:extensionElements>
54 <bpmn:incoming>sequence_2</bpmn:incoming>
55 <bpmn:outgoing>SequenceFlow_0m9c6gt</bpmn:outgoing>
57 <bpmn:endEvent id="end">
58 <bpmn:incoming>updateExecution</bpmn:incoming>
59 <bpmn:terminateEventDefinition />
61 <bpmn:sequenceFlow id="SequenceFlow_0gpuwes" sourceRef="start" targetRef="callSniro" />
62 <bpmn:sequenceFlow id="sequence_2" sourceRef="callSniro" targetRef="callReceiveAsync" />
63 <bpmn:sequenceFlow id="SequenceFlow_0m9c6gt" sourceRef="callReceiveAsync" targetRef="processSolution" />
64 <bpmn:sequenceFlow id="updateExecution" sourceRef="processSolution" targetRef="end" />
65 <bpmn:serviceTask id="callSniro" name=" Call Sniro " camunda:expression="${SniroHoming.callSniro(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
66 <bpmn:incoming>SequenceFlow_0gpuwes</bpmn:incoming>
67 <bpmn:outgoing>sequence_2</bpmn:outgoing>
69 <bpmn:serviceTask id="processSolution" name=" Process Solution " camunda:expression="${SniroHoming.processSolution(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")), asyncResponse)}">
70 <bpmn:incoming>SequenceFlow_0m9c6gt</bpmn:incoming>
71 <bpmn:outgoing>updateExecution</bpmn:outgoing>
74 <bpmn:error id="Error_0jmwlex" name="Java Exception" errorCode="java.lang.Exception" />
75 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
76 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="HomingV2">
77 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="start">
78 <dc:Bounds x="135" y="225" width="36" height="36" />
80 <dc:Bounds x="108" y="261" width="90" height="20" />
83 <bpmndi:BPMNShape id="SubProcess_1se9fyh_di" bpmnElement="subprocessBpmnError" isExpanded="true">
84 <dc:Bounds x="246" y="399" width="409" height="168" />
86 <bpmndi:BPMNShape id="SubProcess_0rphl19_di" bpmnElement="subprocessJavaException" isExpanded="true">
87 <dc:Bounds x="276" y="582" width="350" height="159" />
89 <bpmndi:BPMNShape id="CallActivity_1o5l6xd_di" bpmnElement="callReceiveAsync">
90 <dc:Bounds x="447" y="203" width="100" height="80" />
92 <bpmndi:BPMNShape id="EndEvent_0jdabkl_di" bpmnElement="end">
93 <dc:Bounds x="852" y="225" width="36" height="36" />
95 <dc:Bounds x="824" y="265" width="0" height="12" />
98 <bpmndi:BPMNEdge id="SequenceFlow_0gpuwes_di" bpmnElement="SequenceFlow_0gpuwes">
99 <di:waypoint xsi:type="dc:Point" x="171" y="243" />
100 <di:waypoint xsi:type="dc:Point" x="305" y="243" />
102 <dc:Bounds x="238" y="222" width="0" height="12" />
105 <bpmndi:BPMNEdge id="SequenceFlow_1ohpzke_di" bpmnElement="sequence_2">
106 <di:waypoint xsi:type="dc:Point" x="405" y="243" />
107 <di:waypoint xsi:type="dc:Point" x="447" y="243" />
109 <dc:Bounds x="426" y="222" width="0" height="12" />
112 <bpmndi:BPMNEdge id="SequenceFlow_0m9c6gt_di" bpmnElement="SequenceFlow_0m9c6gt">
113 <di:waypoint xsi:type="dc:Point" x="547" y="243" />
114 <di:waypoint xsi:type="dc:Point" x="589" y="243" />
116 <dc:Bounds x="568" y="222" width="0" height="12" />
119 <bpmndi:BPMNEdge id="SequenceFlow_0f9pput_di" bpmnElement="updateExecution">
120 <di:waypoint xsi:type="dc:Point" x="689" y="243" />
121 <di:waypoint xsi:type="dc:Point" x="852" y="243" />
123 <dc:Bounds x="770.5" y="222" width="0" height="12" />
126 <bpmndi:BPMNShape id="EndEvent_0q9vsib_di" bpmnElement="endBpmnError">
127 <dc:Bounds x="571" y="473" width="36" height="36" />
129 <dc:Bounds x="544" y="514" width="0" height="12" />
132 <bpmndi:BPMNShape id="StartEvent_1p10ecj_di" bpmnElement="catchBpmnError">
133 <dc:Bounds x="291" y="473" width="36" height="36" />
135 <dc:Bounds x="264" y="514" width="0" height="12" />
138 <bpmndi:BPMNShape id="ScriptTask_112ioi2_di" bpmnElement="processBpmnError">
139 <dc:Bounds x="398" y="451" width="100" height="80" />
141 <bpmndi:BPMNShape id="ScriptTask_0nil5vh_di" bpmnElement="processJavaException">
142 <dc:Bounds x="402" y="630" width="100" height="80" />
144 <bpmndi:BPMNShape id="StartEvent_0ekzjqo_di" bpmnElement="catchJavaException">
145 <dc:Bounds x="310" y="652" width="36" height="36" />
147 <dc:Bounds x="283" y="693" width="0" height="12" />
150 <bpmndi:BPMNShape id="EndEvent_0mrji6a_di" bpmnElement="endJavaException">
151 <dc:Bounds x="559" y="652" width="36" height="36" />
153 <dc:Bounds x="532" y="693" width="0" height="12" />
156 <bpmndi:BPMNEdge id="SequenceFlow_14dg22y_di" bpmnElement="SequenceFlow_14dg22y">
157 <di:waypoint xsi:type="dc:Point" x="498" y="491" />
158 <di:waypoint xsi:type="dc:Point" x="571" y="491" />
160 <dc:Bounds x="490.5" y="476" width="0" height="12" />
163 <bpmndi:BPMNEdge id="SequenceFlow_0g3mn4b_di" bpmnElement="SequenceFlow_0g3mn4b">
164 <di:waypoint xsi:type="dc:Point" x="327" y="491" />
165 <di:waypoint xsi:type="dc:Point" x="355" y="491" />
166 <di:waypoint xsi:type="dc:Point" x="355" y="491" />
167 <di:waypoint xsi:type="dc:Point" x="398" y="491" />
169 <dc:Bounds x="325" y="491" width="0" height="12" />
172 <bpmndi:BPMNEdge id="SequenceFlow_1bsc30u_di" bpmnElement="seq">
173 <di:waypoint xsi:type="dc:Point" x="346" y="670" />
174 <di:waypoint xsi:type="dc:Point" x="402" y="670" />
176 <dc:Bounds x="329" y="655" width="0" height="12" />
179 <bpmndi:BPMNEdge id="SequenceFlow_1epbfhx_di" bpmnElement="SequenceFlow_1epbfhx">
180 <di:waypoint xsi:type="dc:Point" x="502" y="670" />
181 <di:waypoint xsi:type="dc:Point" x="559" y="670" />
183 <dc:Bounds x="486.5" y="655" width="0" height="12" />
186 <bpmndi:BPMNShape id="ServiceTask_1mclgnq_di" bpmnElement="callSniro">
187 <dc:Bounds x="305" y="203" width="100" height="80" />
189 <bpmndi:BPMNShape id="ServiceTask_08lua6t_di" bpmnElement="processSolution">
190 <dc:Bounds x="589" y="203" width="100" height="80" />
193 </bpmndi:BPMNDiagram>