Containerization feature of SO
[so.git] / bpmn / MSOCommonBPMN / src / main / resources / subprocess / BuildingBlock / HomingV2.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.10.0">
3   <bpmn:process id="HomingV2" name="HomingV2" isExecutable="true">
4     <bpmn:startEvent id="start">
5       <bpmn:outgoing>SequenceFlow_0gpuwes</bpmn:outgoing>
6     </bpmn:startEvent>
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 />
11       </bpmn:endEvent>
12       <bpmn:startEvent id="catchBpmnError">
13         <bpmn:outgoing>SequenceFlow_0g3mn4b</bpmn:outgoing>
14         <bpmn:errorEventDefinition />
15       </bpmn:startEvent>
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>
22       </bpmn:scriptTask>
23       <bpmn:sequenceFlow id="SequenceFlow_14dg22y" sourceRef="processBpmnError" targetRef="endBpmnError" />
24       <bpmn:sequenceFlow id="SequenceFlow_0g3mn4b" sourceRef="catchBpmnError" targetRef="processBpmnError" />
25     </bpmn:subProcess>
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>
33       </bpmn:scriptTask>
34       <bpmn:startEvent id="catchJavaException">
35         <bpmn:outgoing>seq</bpmn:outgoing>
36         <bpmn:errorEventDefinition errorRef="Error_0jmwlex" />
37       </bpmn:startEvent>
38       <bpmn:endEvent id="endJavaException">
39         <bpmn:incoming>SequenceFlow_1epbfhx</bpmn:incoming>
40         <bpmn:terminateEventDefinition />
41       </bpmn:endEvent>
42       <bpmn:sequenceFlow id="seq" name="" sourceRef="catchJavaException" targetRef="processJavaException" />
43       <bpmn:sequenceFlow id="SequenceFlow_1epbfhx" name="" sourceRef="processJavaException" targetRef="endJavaException" />
44     </bpmn:subProcess>
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>
56     </bpmn:callActivity>
57     <bpmn:endEvent id="end">
58       <bpmn:incoming>updateExecution</bpmn:incoming>
59       <bpmn:terminateEventDefinition />
60     </bpmn:endEvent>
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="&#10;Call&#10;Sniro&#10;" camunda:expression="${SniroHoming.callSniro(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
66       <bpmn:incoming>SequenceFlow_0gpuwes</bpmn:incoming>
67       <bpmn:outgoing>sequence_2</bpmn:outgoing>
68     </bpmn:serviceTask>
69     <bpmn:serviceTask id="processSolution" name="&#10;Process Solution&#10;" camunda:expression="${SniroHoming.processSolution(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)), asyncResponse)}">
70       <bpmn:incoming>SequenceFlow_0m9c6gt</bpmn:incoming>
71       <bpmn:outgoing>updateExecution</bpmn:outgoing>
72     </bpmn:serviceTask>
73   </bpmn:process>
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" />
79         <bpmndi:BPMNLabel>
80           <dc:Bounds x="108" y="261" width="90" height="20" />
81         </bpmndi:BPMNLabel>
82       </bpmndi:BPMNShape>
83       <bpmndi:BPMNShape id="SubProcess_1se9fyh_di" bpmnElement="subprocessBpmnError" isExpanded="true">
84         <dc:Bounds x="246" y="399" width="409" height="168" />
85       </bpmndi:BPMNShape>
86       <bpmndi:BPMNShape id="SubProcess_0rphl19_di" bpmnElement="subprocessJavaException" isExpanded="true">
87         <dc:Bounds x="276" y="582" width="350" height="159" />
88       </bpmndi:BPMNShape>
89       <bpmndi:BPMNShape id="CallActivity_1o5l6xd_di" bpmnElement="callReceiveAsync">
90         <dc:Bounds x="447" y="203" width="100" height="80" />
91       </bpmndi:BPMNShape>
92       <bpmndi:BPMNShape id="EndEvent_0jdabkl_di" bpmnElement="end">
93         <dc:Bounds x="852" y="225" width="36" height="36" />
94         <bpmndi:BPMNLabel>
95           <dc:Bounds x="824" y="265" width="0" height="12" />
96         </bpmndi:BPMNLabel>
97       </bpmndi:BPMNShape>
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" />
101         <bpmndi:BPMNLabel>
102           <dc:Bounds x="238" y="222" width="0" height="12" />
103         </bpmndi:BPMNLabel>
104       </bpmndi:BPMNEdge>
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" />
108         <bpmndi:BPMNLabel>
109           <dc:Bounds x="426" y="222" width="0" height="12" />
110         </bpmndi:BPMNLabel>
111       </bpmndi:BPMNEdge>
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" />
115         <bpmndi:BPMNLabel>
116           <dc:Bounds x="568" y="222" width="0" height="12" />
117         </bpmndi:BPMNLabel>
118       </bpmndi:BPMNEdge>
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" />
122         <bpmndi:BPMNLabel>
123           <dc:Bounds x="770.5" y="222" width="0" height="12" />
124         </bpmndi:BPMNLabel>
125       </bpmndi:BPMNEdge>
126       <bpmndi:BPMNShape id="EndEvent_0q9vsib_di" bpmnElement="endBpmnError">
127         <dc:Bounds x="571" y="473" width="36" height="36" />
128         <bpmndi:BPMNLabel>
129           <dc:Bounds x="544" y="514" width="0" height="12" />
130         </bpmndi:BPMNLabel>
131       </bpmndi:BPMNShape>
132       <bpmndi:BPMNShape id="StartEvent_1p10ecj_di" bpmnElement="catchBpmnError">
133         <dc:Bounds x="291" y="473" width="36" height="36" />
134         <bpmndi:BPMNLabel>
135           <dc:Bounds x="264" y="514" width="0" height="12" />
136         </bpmndi:BPMNLabel>
137       </bpmndi:BPMNShape>
138       <bpmndi:BPMNShape id="ScriptTask_112ioi2_di" bpmnElement="processBpmnError">
139         <dc:Bounds x="398" y="451" width="100" height="80" />
140       </bpmndi:BPMNShape>
141       <bpmndi:BPMNShape id="ScriptTask_0nil5vh_di" bpmnElement="processJavaException">
142         <dc:Bounds x="402" y="630" width="100" height="80" />
143       </bpmndi:BPMNShape>
144       <bpmndi:BPMNShape id="StartEvent_0ekzjqo_di" bpmnElement="catchJavaException">
145         <dc:Bounds x="310" y="652" width="36" height="36" />
146         <bpmndi:BPMNLabel>
147           <dc:Bounds x="283" y="693" width="0" height="12" />
148         </bpmndi:BPMNLabel>
149       </bpmndi:BPMNShape>
150       <bpmndi:BPMNShape id="EndEvent_0mrji6a_di" bpmnElement="endJavaException">
151         <dc:Bounds x="559" y="652" width="36" height="36" />
152         <bpmndi:BPMNLabel>
153           <dc:Bounds x="532" y="693" width="0" height="12" />
154         </bpmndi:BPMNLabel>
155       </bpmndi:BPMNShape>
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" />
159         <bpmndi:BPMNLabel>
160           <dc:Bounds x="490.5" y="476" width="0" height="12" />
161         </bpmndi:BPMNLabel>
162       </bpmndi:BPMNEdge>
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" />
168         <bpmndi:BPMNLabel>
169           <dc:Bounds x="325" y="491" width="0" height="12" />
170         </bpmndi:BPMNLabel>
171       </bpmndi:BPMNEdge>
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" />
175         <bpmndi:BPMNLabel>
176           <dc:Bounds x="329" y="655" width="0" height="12" />
177         </bpmndi:BPMNLabel>
178       </bpmndi:BPMNEdge>
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" />
182         <bpmndi:BPMNLabel>
183           <dc:Bounds x="486.5" y="655" width="0" height="12" />
184         </bpmndi:BPMNLabel>
185       </bpmndi:BPMNEdge>
186       <bpmndi:BPMNShape id="ServiceTask_1mclgnq_di" bpmnElement="callSniro">
187         <dc:Bounds x="305" y="203" width="100" height="80" />
188       </bpmndi:BPMNShape>
189       <bpmndi:BPMNShape id="ServiceTask_08lua6t_di" bpmnElement="processSolution">
190         <dc:Bounds x="589" y="203" width="100" height="80" />
191       </bpmndi:BPMNShape>
192     </bpmndi:BPMNPlane>
193   </bpmndi:BPMNDiagram>
194 </bpmn:definitions>