[SO] Release so 1.13.0 image
[so.git] / bpmn / so-bpmn-building-blocks / src / main / resources / subprocess / BuildingBlock / HomingBB.bpmn
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.11.3" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3   <bpmn2:process id="HomingBB" name="HomingBB" isExecutable="true">
4     <bpmn2:startEvent id="start">
5       <bpmn2:outgoing>SequenceFlow_0jtjlbu</bpmn2:outgoing>
6     </bpmn2:startEvent>
7     <bpmn2:subProcess id="bpmnErrorSubprocess" name="Error Handling Subprocess" triggeredByEvent="true">
8       <bpmn2:endEvent id="endBpmnError">
9         <bpmn2:incoming>SequenceFlow_1rf4vs8</bpmn2:incoming>
10         <bpmn2:terminateEventDefinition />
11       </bpmn2:endEvent>
12       <bpmn2:startEvent id="startBpmnError">
13         <bpmn2:outgoing>SequenceFlow_00nlh7l</bpmn2:outgoing>
14         <bpmn2:errorEventDefinition />
15       </bpmn2:startEvent>
16       <bpmn2:scriptTask id="processMsoWorkflowException" name="Process Error" scriptFormat="groovy">
17         <bpmn2:incoming>SequenceFlow_00nlh7l</bpmn2:incoming>
18         <bpmn2:outgoing>SequenceFlow_1rf4vs8</bpmn2:outgoing>
19         <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
20 ExceptionUtil ex = new ExceptionUtil()
21 ex.processSubflowsBPMNException(execution)]]></bpmn2:script>
22       </bpmn2:scriptTask>
23       <bpmn2:sequenceFlow id="SequenceFlow_1rf4vs8" sourceRef="processMsoWorkflowException" targetRef="endBpmnError" />
24       <bpmn2:sequenceFlow id="SequenceFlow_00nlh7l" sourceRef="startBpmnError" targetRef="processMsoWorkflowException" />
25     </bpmn2:subProcess>
26     <bpmn2:subProcess id="javaExceptionSubProcess" name="Java Exception Sub Process" triggeredByEvent="true">
27       <bpmn2:scriptTask id="processJavaException" name="Process Error" scriptFormat="groovy">
28         <bpmn2:incoming>SequenceFlow_0kamg53</bpmn2:incoming>
29         <bpmn2:outgoing>SequenceFlow_1o7154s</bpmn2:outgoing>
30         <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
31 ExceptionUtil ex = new ExceptionUtil()
32 ex.processJavaException(execution)]]></bpmn2:script>
33       </bpmn2:scriptTask>
34       <bpmn2:startEvent id="startJavaError">
35         <bpmn2:outgoing>SequenceFlow_0kamg53</bpmn2:outgoing>
36         <bpmn2:errorEventDefinition errorRef="Error_1lwpypa" />
37       </bpmn2:startEvent>
38       <bpmn2:endEvent id="endJavaError">
39         <bpmn2:incoming>SequenceFlow_1o7154s</bpmn2:incoming>
40         <bpmn2:terminateEventDefinition />
41       </bpmn2:endEvent>
42       <bpmn2:sequenceFlow id="SequenceFlow_0kamg53" name="" sourceRef="startJavaError" targetRef="processJavaException" />
43       <bpmn2:sequenceFlow id="SequenceFlow_1o7154s" name="" sourceRef="processJavaException" targetRef="endJavaError" />
44     </bpmn2:subProcess>
45     <bpmn2:callActivity id="receiveAsyncCallback" name="Receive Async Callback" camunda:modelerTemplate="receiveWorkflowMessage" calledElement="ReceiveWorkflowMessage">
46       <bpmn2:extensionElements>
47         <camunda:in source="true" target="isDebugLogEnabled" />
48         <camunda:out source="WorkflowException" target="WorkflowException" />
49         <camunda:in source="asyncMessageType" target="RCVWFMSG_messageType" />
50         <camunda:in source="asyncCorrelator" target="RCVWFMSG_correlator" />
51         <camunda:in source="asyncTimeout" target="RCVWFMSG_timeout" />
52         <camunda:out source="WorkflowResponse" target="asyncResponse" />
53         <camunda:in source="mso-request-id" target="mso-request-id" />
54       </bpmn2:extensionElements>
55       <bpmn2:incoming>SequenceFlow_0qrwjzu</bpmn2:incoming>
56       <bpmn2:outgoing>SequenceFlow_03cy5y5</bpmn2:outgoing>
57     </bpmn2:callActivity>
58     <bpmn2:endEvent id="end">
59       <bpmn2:incoming>SequenceFlow_138xgla</bpmn2:incoming>
60       <bpmn2:terminateEventDefinition />
61     </bpmn2:endEvent>
62     <bpmn2:serviceTask id="callHoming" name="Homing&#10;Post&#10;(Send demand)&#10;" camunda:expression="${HomingV2.callHoming(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
63       <bpmn2:incoming>SequenceFlow_0jtjlbu</bpmn2:incoming>
64       <bpmn2:outgoing>SequenceFlow_0qrwjzu</bpmn2:outgoing>
65     </bpmn2:serviceTask>
66     <bpmn2:serviceTask id="processHomingSolution" name="Homing&#10;Process&#10;Solution&#10;" camunda:expression="${HomingV2.processSolution(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)), asyncResponse)}">
67       <bpmn2:incoming>SequenceFlow_03cy5y5</bpmn2:incoming>
68       <bpmn2:outgoing>SequenceFlow_138xgla</bpmn2:outgoing>
69     </bpmn2:serviceTask>
70     <bpmn2:sequenceFlow id="SequenceFlow_0jtjlbu" sourceRef="start" targetRef="callHoming" />
71     <bpmn2:sequenceFlow id="SequenceFlow_0qrwjzu" sourceRef="callHoming" targetRef="receiveAsyncCallback" />
72     <bpmn2:sequenceFlow id="SequenceFlow_03cy5y5" sourceRef="receiveAsyncCallback" targetRef="processHomingSolution" />
73     <bpmn2:sequenceFlow id="SequenceFlow_138xgla" sourceRef="processHomingSolution" targetRef="end" />
74   </bpmn2:process>
75   <bpmn2:error id="Error_10hit0u" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
76   <bpmn2:error id="Error_1lwpypa" name="Java Lang Exception" errorCode="java.lang.Exception" />
77   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
78     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="HomingBB">
79       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="start">
80         <dc:Bounds x="153" y="275" width="36" height="36" />
81         <bpmndi:BPMNLabel>
82           <dc:Bounds x="126" y="311" width="90" height="20" />
83         </bpmndi:BPMNLabel>
84       </bpmndi:BPMNShape>
85       <bpmndi:BPMNShape id="SubProcess_16p12qo_di" bpmnElement="bpmnErrorSubprocess" isExpanded="true">
86         <dc:Bounds x="312" y="405" width="409" height="168" />
87       </bpmndi:BPMNShape>
88       <bpmndi:BPMNShape id="SubProcess_12gjiy8_di" bpmnElement="javaExceptionSubProcess" isExpanded="true">
89         <dc:Bounds x="342" y="588" width="350" height="159" />
90       </bpmndi:BPMNShape>
91       <bpmndi:BPMNShape id="EndEvent_07tjq3v_di" bpmnElement="endBpmnError">
92         <dc:Bounds x="637" y="479" width="36" height="36" />
93         <bpmndi:BPMNLabel>
94           <dc:Bounds x="610" y="520" width="90" height="0" />
95         </bpmndi:BPMNLabel>
96       </bpmndi:BPMNShape>
97       <bpmndi:BPMNShape id="StartEvent_1qiitb2_di" bpmnElement="startBpmnError">
98         <dc:Bounds x="357" y="479" width="36" height="36" />
99         <bpmndi:BPMNLabel>
100           <dc:Bounds x="330" y="520" width="90" height="0" />
101         </bpmndi:BPMNLabel>
102       </bpmndi:BPMNShape>
103       <bpmndi:BPMNShape id="ScriptTask_03hs6s9_di" bpmnElement="processMsoWorkflowException">
104         <dc:Bounds x="464" y="457" width="100" height="80" />
105       </bpmndi:BPMNShape>
106       <bpmndi:BPMNShape id="ScriptTask_19gqykh_di" bpmnElement="processJavaException">
107         <dc:Bounds x="468" y="636" width="100" height="80" />
108       </bpmndi:BPMNShape>
109       <bpmndi:BPMNShape id="StartEvent_1fbpeuw_di" bpmnElement="startJavaError">
110         <dc:Bounds x="376" y="658" width="36" height="36" />
111         <bpmndi:BPMNLabel>
112           <dc:Bounds x="349" y="699" width="90" height="0" />
113         </bpmndi:BPMNLabel>
114       </bpmndi:BPMNShape>
115       <bpmndi:BPMNShape id="EndEvent_0jbvnr0_di" bpmnElement="endJavaError">
116         <dc:Bounds x="625" y="658" width="36" height="36" />
117         <bpmndi:BPMNLabel>
118           <dc:Bounds x="598" y="699" width="90" height="0" />
119         </bpmndi:BPMNLabel>
120       </bpmndi:BPMNShape>
121       <bpmndi:BPMNEdge id="SequenceFlow_1rf4vs8_di" bpmnElement="SequenceFlow_1rf4vs8">
122         <di:waypoint xsi:type="dc:Point" x="564" y="497" />
123         <di:waypoint xsi:type="dc:Point" x="637" y="497" />
124         <bpmndi:BPMNLabel>
125           <dc:Bounds x="556" y="482" width="90" height="0" />
126         </bpmndi:BPMNLabel>
127       </bpmndi:BPMNEdge>
128       <bpmndi:BPMNEdge id="SequenceFlow_00nlh7l_di" bpmnElement="SequenceFlow_00nlh7l">
129         <di:waypoint xsi:type="dc:Point" x="393" y="497" />
130         <di:waypoint xsi:type="dc:Point" x="421" y="497" />
131         <di:waypoint xsi:type="dc:Point" x="421" y="497" />
132         <di:waypoint xsi:type="dc:Point" x="464" y="497" />
133         <bpmndi:BPMNLabel>
134           <dc:Bounds x="391" y="497" width="90" height="0" />
135         </bpmndi:BPMNLabel>
136       </bpmndi:BPMNEdge>
137       <bpmndi:BPMNEdge id="SequenceFlow_0kamg53_di" bpmnElement="SequenceFlow_0kamg53">
138         <di:waypoint xsi:type="dc:Point" x="412" y="676" />
139         <di:waypoint xsi:type="dc:Point" x="468" y="676" />
140         <bpmndi:BPMNLabel>
141           <dc:Bounds x="395" y="661" width="90" height="0" />
142         </bpmndi:BPMNLabel>
143       </bpmndi:BPMNEdge>
144       <bpmndi:BPMNEdge id="SequenceFlow_1o7154s_di" bpmnElement="SequenceFlow_1o7154s">
145         <di:waypoint xsi:type="dc:Point" x="568" y="676" />
146         <di:waypoint xsi:type="dc:Point" x="625" y="676" />
147         <bpmndi:BPMNLabel>
148           <dc:Bounds x="552" y="661" width="90" height="0" />
149         </bpmndi:BPMNLabel>
150       </bpmndi:BPMNEdge>
151       <bpmndi:BPMNShape id="CallActivity_031b5m3_di" bpmnElement="receiveAsyncCallback">
152         <dc:Bounds x="464" y="253" width="100" height="80" />
153       </bpmndi:BPMNShape>
154       <bpmndi:BPMNShape id="EndEvent_07i1a5x_di" bpmnElement="end">
155         <dc:Bounds x="837" y="275" width="36" height="36" />
156         <bpmndi:BPMNLabel>
157           <dc:Bounds x="809" y="315" width="90" height="12" />
158         </bpmndi:BPMNLabel>
159       </bpmndi:BPMNShape>
160       <bpmndi:BPMNShape id="ServiceTask_0rcv8sl_di" bpmnElement="callHoming">
161         <dc:Bounds x="292" y="253" width="100" height="80" />
162       </bpmndi:BPMNShape>
163       <bpmndi:BPMNShape id="ServiceTask_0fs2fyg_di" bpmnElement="processHomingSolution">
164         <dc:Bounds x="649" y="253" width="100" height="80" />
165       </bpmndi:BPMNShape>
166       <bpmndi:BPMNEdge id="SequenceFlow_0jtjlbu_di" bpmnElement="SequenceFlow_0jtjlbu">
167         <di:waypoint xsi:type="dc:Point" x="189" y="293" />
168         <di:waypoint xsi:type="dc:Point" x="292" y="293" />
169         <bpmndi:BPMNLabel>
170           <dc:Bounds x="240.5" y="272" width="0" height="12" />
171         </bpmndi:BPMNLabel>
172       </bpmndi:BPMNEdge>
173       <bpmndi:BPMNEdge id="SequenceFlow_0qrwjzu_di" bpmnElement="SequenceFlow_0qrwjzu">
174         <di:waypoint xsi:type="dc:Point" x="392" y="293" />
175         <di:waypoint xsi:type="dc:Point" x="464" y="293" />
176         <bpmndi:BPMNLabel>
177           <dc:Bounds x="428" y="272" width="0" height="12" />
178         </bpmndi:BPMNLabel>
179       </bpmndi:BPMNEdge>
180       <bpmndi:BPMNEdge id="SequenceFlow_03cy5y5_di" bpmnElement="SequenceFlow_03cy5y5">
181         <di:waypoint xsi:type="dc:Point" x="564" y="293" />
182         <di:waypoint xsi:type="dc:Point" x="649" y="293" />
183         <bpmndi:BPMNLabel>
184           <dc:Bounds x="606.5" y="272" width="0" height="12" />
185         </bpmndi:BPMNLabel>
186       </bpmndi:BPMNEdge>
187       <bpmndi:BPMNEdge id="SequenceFlow_138xgla_di" bpmnElement="SequenceFlow_138xgla">
188         <di:waypoint xsi:type="dc:Point" x="749" y="293" />
189         <di:waypoint xsi:type="dc:Point" x="837" y="293" />
190         <bpmndi:BPMNLabel>
191           <dc:Bounds x="793" y="272" width="0" height="12" />
192         </bpmndi:BPMNLabel>
193       </bpmndi:BPMNEdge>
194     </bpmndi:BPMNPlane>
195   </bpmndi:BPMNDiagram>
196 </bpmn2:definitions>