AT&T 1712 and 1802 release code
[so.git] / bpmn / MSOCommonBPMN / src / main / resources / subprocess / BuildingBlock / Homing.bpmn
1 <?xml version="1.0" encoding="UTF-8"?>\r
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.4.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">\r
3   <bpmn2:process id="Homing" name="Homing" isExecutable="true">\r
4     <bpmn2:startEvent id="StartEvent_1">\r
5       <bpmn2:outgoing>SequenceFlow_1x9usa6</bpmn2:outgoing>\r
6     </bpmn2:startEvent>\r
7     <bpmn2:scriptTask id="callSniro" name="Call Sniro" scriptFormat="groovy">\r
8       <bpmn2:incoming>SequenceFlow_1x9usa6</bpmn2:incoming>\r
9       <bpmn2:outgoing>SequenceFlow_10x3ocp</bpmn2:outgoing>\r
10       <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*\r
11 Homing sniro = new Homing()\r
12 sniro.callSniro(execution)]]></bpmn2:script>\r
13     </bpmn2:scriptTask>\r
14     <bpmn2:sequenceFlow id="SequenceFlow_1x9usa6" sourceRef="StartEvent_1" targetRef="callSniro" />\r
15     <bpmn2:subProcess id="bpmnErrorSubprocess" name="Error Handling Subprocess" triggeredByEvent="true">\r
16       <bpmn2:endEvent id="EndEvent_07tjq3v">\r
17         <bpmn2:incoming>SequenceFlow_1rf4vs8</bpmn2:incoming>\r
18         <bpmn2:terminateEventDefinition />\r
19       </bpmn2:endEvent>\r
20       <bpmn2:startEvent id="StartEvent_1qiitb2">\r
21         <bpmn2:outgoing>SequenceFlow_00nlh7l</bpmn2:outgoing>\r
22         <bpmn2:errorEventDefinition />\r
23       </bpmn2:startEvent>\r
24       <bpmn2:scriptTask id="processMsoWorkflowException" name="Process Error" scriptFormat="groovy">\r
25         <bpmn2:incoming>SequenceFlow_00nlh7l</bpmn2:incoming>\r
26         <bpmn2:outgoing>SequenceFlow_1rf4vs8</bpmn2:outgoing>\r
27         <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*\r
28 ExceptionUtil ex = new ExceptionUtil()\r
29 ex.processSubflowsBPMNException(execution)]]></bpmn2:script>\r
30       </bpmn2:scriptTask>\r
31       <bpmn2:sequenceFlow id="SequenceFlow_1rf4vs8" sourceRef="processMsoWorkflowException" targetRef="EndEvent_07tjq3v" />\r
32       <bpmn2:sequenceFlow id="SequenceFlow_00nlh7l" sourceRef="StartEvent_1qiitb2" targetRef="processMsoWorkflowException" />\r
33     </bpmn2:subProcess>\r
34     <bpmn2:subProcess id="javaExceptionSubProcess" name="Java Exception Sub Process" triggeredByEvent="true">\r
35       <bpmn2:scriptTask id="processJavaException" name="Process Error" scriptFormat="groovy">\r
36         <bpmn2:incoming>SequenceFlow_0kamg53</bpmn2:incoming>\r
37         <bpmn2:outgoing>SequenceFlow_1o7154s</bpmn2:outgoing>\r
38         <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*\r
39 ExceptionUtil ex = new ExceptionUtil()\r
40 ex.processJavaException(execution)]]></bpmn2:script>\r
41       </bpmn2:scriptTask>\r
42       <bpmn2:startEvent id="StartEvent_1fbpeuw">\r
43         <bpmn2:outgoing>SequenceFlow_0kamg53</bpmn2:outgoing>\r
44         <bpmn2:errorEventDefinition errorRef="Error_1lwpypa" />\r
45       </bpmn2:startEvent>\r
46       <bpmn2:endEvent id="EndEvent_0jbvnr0">\r
47         <bpmn2:incoming>SequenceFlow_1o7154s</bpmn2:incoming>\r
48         <bpmn2:terminateEventDefinition />\r
49       </bpmn2:endEvent>\r
50       <bpmn2:sequenceFlow id="SequenceFlow_0kamg53" name="" sourceRef="StartEvent_1fbpeuw" targetRef="processJavaException" />\r
51       <bpmn2:sequenceFlow id="SequenceFlow_1o7154s" name="" sourceRef="processJavaException" targetRef="EndEvent_0jbvnr0" />\r
52     </bpmn2:subProcess>\r
53     <bpmn2:scriptTask id="processHomingSolution" name="Process &#10;Solution&#10;" scriptFormat="groovy">\r
54       <bpmn2:incoming>SequenceFlow_043r3j8</bpmn2:incoming>\r
55       <bpmn2:outgoing>SequenceFlow_1h9opg9</bpmn2:outgoing>\r
56       <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*\r
57 Homing homing = new Homing()\r
58 homing.processHomingSolution(execution)]]></bpmn2:script>\r
59     </bpmn2:scriptTask>\r
60     <bpmn2:exclusiveGateway id="responseCheck" name="Response Ok?" default="badResponse">\r
61       <bpmn2:incoming>SequenceFlow_10x3ocp</bpmn2:incoming>\r
62       <bpmn2:outgoing>badResponse</bpmn2:outgoing>\r
63       <bpmn2:outgoing>goodResponse</bpmn2:outgoing>\r
64     </bpmn2:exclusiveGateway>\r
65     <bpmn2:sequenceFlow id="SequenceFlow_10x3ocp" sourceRef="callSniro" targetRef="responseCheck" />\r
66     <bpmn2:scriptTask id="assignError" name="Assign Error" scriptFormat="groovy">\r
67       <bpmn2:incoming>badResponse</bpmn2:incoming>\r
68       <bpmn2:outgoing>SequenceFlow_0clfkld</bpmn2:outgoing>\r
69       <bpmn2:script><![CDATA[int responseCode = execution.getVariable("syncResponseCode") \r
70 \r
71 import org.openecomp.mso.bpmn.common.scripts.*\r
72 ExceptionUtil ex = new ExceptionUtil()\r
73 ex.buildAndThrowWorkflowException(execution, responseCode, "Received a Bad Sync Response from Sniro.")]]></bpmn2:script>\r
74     </bpmn2:scriptTask>\r
75     <bpmn2:sequenceFlow id="badResponse" name="No" sourceRef="responseCheck" targetRef="assignError" />\r
76     <bpmn2:sequenceFlow id="SequenceFlow_0clfkld" sourceRef="assignError" targetRef="throwMSOWorkflowException" />\r
77     <bpmn2:endEvent id="throwMSOWorkflowException">\r
78       <bpmn2:incoming>SequenceFlow_0clfkld</bpmn2:incoming>\r
79       <bpmn2:errorEventDefinition errorRef="Error_10hit0u" />\r
80     </bpmn2:endEvent>\r
81     <bpmn2:sequenceFlow id="goodResponse" name="Yes" sourceRef="responseCheck" targetRef="receiveAsyncCallback">\r
82       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("syncResponseCode") == 202}]]></bpmn2:conditionExpression>\r
83     </bpmn2:sequenceFlow>\r
84     <bpmn2:sequenceFlow id="SequenceFlow_043r3j8" sourceRef="receiveAsyncCallback" targetRef="processHomingSolution" />\r
85     <bpmn2:callActivity id="receiveAsyncCallback" name="Receive Async Callback" calledElement="ReceiveWorkflowMessage" camunda:modelerTemplate="receiveWorkflowMessage">\r
86       <bpmn2:extensionElements>\r
87         <camunda:in source="true" target="isDebugLogEnabled" />\r
88         <camunda:out source="WorkflowException" target="WorkflowException" />\r
89         <camunda:in source="messageType" target="RCVWFMSG_messageType" />\r
90         <camunda:in source="correlator" target="RCVWFMSG_correlator" />\r
91         <camunda:in source="timeout" target="RCVWFMSG_timeout" />\r
92         <camunda:out source="WorkflowResponse" target="asyncCallbackResponse" />\r
93       </bpmn2:extensionElements>\r
94       <bpmn2:incoming>goodResponse</bpmn2:incoming>\r
95       <bpmn2:outgoing>SequenceFlow_043r3j8</bpmn2:outgoing>\r
96     </bpmn2:callActivity>\r
97     <bpmn2:sequenceFlow id="SequenceFlow_1h9opg9" sourceRef="processHomingSolution" targetRef="EndEvent_0n56tas" />\r
98     <bpmn2:endEvent id="EndEvent_0n56tas">\r
99       <bpmn2:incoming>SequenceFlow_1h9opg9</bpmn2:incoming>\r
100       <bpmn2:terminateEventDefinition />\r
101     </bpmn2:endEvent>\r
102   </bpmn2:process>\r
103   <bpmn2:error id="Error_10hit0u" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />\r
104   <bpmn2:error id="Error_1lwpypa" name="Java Lang Exception" errorCode="java.lang.Exception" />\r
105   <bpmndi:BPMNDiagram id="BPMNDiagram_1">\r
106     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Homing">\r
107       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">\r
108         <dc:Bounds x="147" y="275" width="36" height="36" />\r
109       </bpmndi:BPMNShape>\r
110       <bpmndi:BPMNShape id="ScriptTask_0qmfpdr_di" bpmnElement="callSniro">\r
111         <dc:Bounds x="286" y="253" width="100" height="80" />\r
112       </bpmndi:BPMNShape>\r
113       <bpmndi:BPMNEdge id="SequenceFlow_1x9usa6_di" bpmnElement="SequenceFlow_1x9usa6">\r
114         <di:waypoint xsi:type="dc:Point" x="183" y="293" />\r
115         <di:waypoint xsi:type="dc:Point" x="286" y="293" />\r
116         <bpmndi:BPMNLabel>\r
117           <dc:Bounds x="235" y="278" width="0" height="0" />\r
118         </bpmndi:BPMNLabel>\r
119       </bpmndi:BPMNEdge>\r
120       <bpmndi:BPMNShape id="SubProcess_16p12qo_di" bpmnElement="bpmnErrorSubprocess" isExpanded="true">\r
121         <dc:Bounds x="254" y="496" width="409" height="168" />\r
122       </bpmndi:BPMNShape>\r
123       <bpmndi:BPMNShape id="SubProcess_12gjiy8_di" bpmnElement="javaExceptionSubProcess" isExpanded="true">\r
124         <dc:Bounds x="284" y="679" width="350" height="159" />\r
125       </bpmndi:BPMNShape>\r
126       <bpmndi:BPMNShape id="EndEvent_07tjq3v_di" bpmnElement="EndEvent_07tjq3v">\r
127         <dc:Bounds x="579" y="570" width="36" height="36" />\r
128         <bpmndi:BPMNLabel>\r
129           <dc:Bounds x="597" y="611" width="0" height="0" />\r
130         </bpmndi:BPMNLabel>\r
131       </bpmndi:BPMNShape>\r
132       <bpmndi:BPMNShape id="StartEvent_1qiitb2_di" bpmnElement="StartEvent_1qiitb2">\r
133         <dc:Bounds x="299" y="570" width="36" height="36" />\r
134         <bpmndi:BPMNLabel>\r
135           <dc:Bounds x="317" y="611" width="0" height="0" />\r
136         </bpmndi:BPMNLabel>\r
137       </bpmndi:BPMNShape>\r
138       <bpmndi:BPMNShape id="ScriptTask_03hs6s9_di" bpmnElement="processMsoWorkflowException">\r
139         <dc:Bounds x="406" y="548" width="100" height="80" />\r
140       </bpmndi:BPMNShape>\r
141       <bpmndi:BPMNShape id="ScriptTask_19gqykh_di" bpmnElement="processJavaException">\r
142         <dc:Bounds x="410" y="727" width="100" height="80" />\r
143       </bpmndi:BPMNShape>\r
144       <bpmndi:BPMNShape id="StartEvent_1fbpeuw_di" bpmnElement="StartEvent_1fbpeuw">\r
145         <dc:Bounds x="318" y="749" width="36" height="36" />\r
146         <bpmndi:BPMNLabel>\r
147           <dc:Bounds x="336" y="790" width="0" height="0" />\r
148         </bpmndi:BPMNLabel>\r
149       </bpmndi:BPMNShape>\r
150       <bpmndi:BPMNShape id="EndEvent_0jbvnr0_di" bpmnElement="EndEvent_0jbvnr0">\r
151         <dc:Bounds x="567" y="749" width="36" height="36" />\r
152         <bpmndi:BPMNLabel>\r
153           <dc:Bounds x="585" y="790" width="0" height="0" />\r
154         </bpmndi:BPMNLabel>\r
155       </bpmndi:BPMNShape>\r
156       <bpmndi:BPMNEdge id="SequenceFlow_1rf4vs8_di" bpmnElement="SequenceFlow_1rf4vs8">\r
157         <di:waypoint xsi:type="dc:Point" x="506" y="588" />\r
158         <di:waypoint xsi:type="dc:Point" x="579" y="588" />\r
159         <bpmndi:BPMNLabel>\r
160           <dc:Bounds x="543" y="573" width="0" height="0" />\r
161         </bpmndi:BPMNLabel>\r
162       </bpmndi:BPMNEdge>\r
163       <bpmndi:BPMNEdge id="SequenceFlow_00nlh7l_di" bpmnElement="SequenceFlow_00nlh7l">\r
164         <di:waypoint xsi:type="dc:Point" x="335" y="588" />\r
165         <di:waypoint xsi:type="dc:Point" x="363" y="588" />\r
166         <di:waypoint xsi:type="dc:Point" x="363" y="588" />\r
167         <di:waypoint xsi:type="dc:Point" x="406" y="588" />\r
168         <bpmndi:BPMNLabel>\r
169           <dc:Bounds x="378" y="588" width="0" height="0" />\r
170         </bpmndi:BPMNLabel>\r
171       </bpmndi:BPMNEdge>\r
172       <bpmndi:BPMNEdge id="SequenceFlow_0kamg53_di" bpmnElement="SequenceFlow_0kamg53">\r
173         <di:waypoint xsi:type="dc:Point" x="354" y="767" />\r
174         <di:waypoint xsi:type="dc:Point" x="410" y="767" />\r
175         <bpmndi:BPMNLabel>\r
176           <dc:Bounds x="382" y="752" width="0" height="0" />\r
177         </bpmndi:BPMNLabel>\r
178       </bpmndi:BPMNEdge>\r
179       <bpmndi:BPMNEdge id="SequenceFlow_1o7154s_di" bpmnElement="SequenceFlow_1o7154s">\r
180         <di:waypoint xsi:type="dc:Point" x="510" y="767" />\r
181         <di:waypoint xsi:type="dc:Point" x="567" y="767" />\r
182         <bpmndi:BPMNLabel>\r
183           <dc:Bounds x="539" y="752" width="0" height="0" />\r
184         </bpmndi:BPMNLabel>\r
185       </bpmndi:BPMNEdge>\r
186       <bpmndi:BPMNShape id="ScriptTask_1aapkvq_di" bpmnElement="processHomingSolution">\r
187         <dc:Bounds x="630" y="325" width="100" height="80" />\r
188       </bpmndi:BPMNShape>\r
189       <bpmndi:BPMNShape id="ExclusiveGateway_03gt5b8_di" bpmnElement="responseCheck" isMarkerVisible="true">\r
190         <dc:Bounds x="419" y="268" width="50" height="50" />\r
191         <bpmndi:BPMNLabel>\r
192           <dc:Bounds x="474" y="287" width="74" height="12" />\r
193         </bpmndi:BPMNLabel>\r
194       </bpmndi:BPMNShape>\r
195       <bpmndi:BPMNEdge id="SequenceFlow_10x3ocp_di" bpmnElement="SequenceFlow_10x3ocp">\r
196         <di:waypoint xsi:type="dc:Point" x="386" y="293" />\r
197         <di:waypoint xsi:type="dc:Point" x="419" y="293" />\r
198         <bpmndi:BPMNLabel>\r
199           <dc:Bounds x="403" y="278" width="0" height="0" />\r
200         </bpmndi:BPMNLabel>\r
201       </bpmndi:BPMNEdge>\r
202       <bpmndi:BPMNShape id="ScriptTask_0ikcqeo_di" bpmnElement="assignError">\r
203         <dc:Bounds x="490" y="176" width="100" height="80" />\r
204       </bpmndi:BPMNShape>\r
205       <bpmndi:BPMNEdge id="SequenceFlow_1m1c9nu_di" bpmnElement="badResponse">\r
206         <di:waypoint xsi:type="dc:Point" x="444" y="268" />\r
207         <di:waypoint xsi:type="dc:Point" x="444" y="216" />\r
208         <di:waypoint xsi:type="dc:Point" x="490" y="216" />\r
209         <bpmndi:BPMNLabel>\r
210           <dc:Bounds x="451" y="226" width="14" height="12" />\r
211         </bpmndi:BPMNLabel>\r
212       </bpmndi:BPMNEdge>\r
213       <bpmndi:BPMNEdge id="SequenceFlow_0clfkld_di" bpmnElement="SequenceFlow_0clfkld">\r
214         <di:waypoint xsi:type="dc:Point" x="590" y="216" />\r
215         <di:waypoint xsi:type="dc:Point" x="662" y="216" />\r
216         <bpmndi:BPMNLabel>\r
217           <dc:Bounds x="626" y="201" width="0" height="0" />\r
218         </bpmndi:BPMNLabel>\r
219       </bpmndi:BPMNEdge>\r
220       <bpmndi:BPMNShape id="EndEvent_13ejfwp_di" bpmnElement="throwMSOWorkflowException">\r
221         <dc:Bounds x="662" y="198" width="36" height="36" />\r
222         <bpmndi:BPMNLabel>\r
223           <dc:Bounds x="680" y="234" width="0" height="0" />\r
224         </bpmndi:BPMNLabel>\r
225       </bpmndi:BPMNShape>\r
226       <bpmndi:BPMNEdge id="SequenceFlow_1o3br3u_di" bpmnElement="goodResponse">\r
227         <di:waypoint xsi:type="dc:Point" x="444" y="318" />\r
228         <di:waypoint xsi:type="dc:Point" x="444" y="365" />\r
229         <di:waypoint xsi:type="dc:Point" x="490" y="365" />\r
230         <bpmndi:BPMNLabel>\r
231           <dc:Bounds x="447" y="339.5" width="18" height="12" />\r
232         </bpmndi:BPMNLabel>\r
233       </bpmndi:BPMNEdge>\r
234       <bpmndi:BPMNEdge id="SequenceFlow_043r3j8_di" bpmnElement="SequenceFlow_043r3j8">\r
235         <di:waypoint xsi:type="dc:Point" x="590" y="365" />\r
236         <di:waypoint xsi:type="dc:Point" x="630" y="365" />\r
237         <bpmndi:BPMNLabel>\r
238           <dc:Bounds x="610" y="350" width="0" height="0" />\r
239         </bpmndi:BPMNLabel>\r
240       </bpmndi:BPMNEdge>\r
241       <bpmndi:BPMNShape id="CallActivity_031b5m3_di" bpmnElement="receiveAsyncCallback">\r
242         <dc:Bounds x="490" y="325" width="100" height="80" />\r
243       </bpmndi:BPMNShape>\r
244       <bpmndi:BPMNEdge id="SequenceFlow_1h9opg9_di" bpmnElement="SequenceFlow_1h9opg9">\r
245         <di:waypoint xsi:type="dc:Point" x="730" y="365" />\r
246         <di:waypoint xsi:type="dc:Point" x="825" y="365" />\r
247         <bpmndi:BPMNLabel>\r
248           <dc:Bounds x="778" y="350" width="0" height="0" />\r
249         </bpmndi:BPMNLabel>\r
250       </bpmndi:BPMNEdge>\r
251       <bpmndi:BPMNShape id="EndEvent_0ougemc_di" bpmnElement="EndEvent_0n56tas">\r
252         <dc:Bounds x="825" y="347" width="36" height="36" />\r
253         <bpmndi:BPMNLabel>\r
254           <dc:Bounds x="843" y="383" width="0" height="0" />\r
255         </bpmndi:BPMNLabel>\r
256       </bpmndi:BPMNShape>\r
257     </bpmndi:BPMNPlane>\r
258   </bpmndi:BPMNDiagram>\r
259 </bpmn2:definitions>\r