Containerization feature of SO
[so.git] / bpmn / MSOCommonBPMN / src / main / resources / subprocess / BuildingBlock / Homing.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.10.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3   <bpmn2:process id="Homing" name="Homing" isExecutable="true">
4     <bpmn2:startEvent id="StartEvent_1">
5       <bpmn2:outgoing>SequenceFlow_1x9usa6</bpmn2:outgoing>
6     </bpmn2:startEvent>
7     <bpmn2:scriptTask id="callSniro" name="&#10;Call&#10;Sniro/Oof&#10;" scriptFormat="groovy">
8       <bpmn2:incoming>SequenceFlow_1x9usa6</bpmn2:incoming>
9       <bpmn2:outgoing>SequenceFlow_0lc15i7</bpmn2:outgoing>
10       <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
11 if(execution.getVariable("homingService") == "oof"){
12   OofHoming oofHoming = new OofHoming()
13   oofHoming.callOof(execution)
14 }else{
15   SniroHomingV1 sniroHoming = new SniroHomingV1()
16   sniroHoming.callSniro(execution)
17 }]]></bpmn2:script>
18     </bpmn2:scriptTask>
19     <bpmn2:sequenceFlow id="SequenceFlow_1x9usa6" sourceRef="StartEvent_1" targetRef="callSniro" />
20     <bpmn2:subProcess id="bpmnErrorSubprocess" name="Error Handling Subprocess" triggeredByEvent="true">
21       <bpmn2:endEvent id="EndEvent_07tjq3v">
22         <bpmn2:incoming>SequenceFlow_1rf4vs8</bpmn2:incoming>
23         <bpmn2:terminateEventDefinition />
24       </bpmn2:endEvent>
25       <bpmn2:startEvent id="StartEvent_1qiitb2">
26         <bpmn2:outgoing>SequenceFlow_00nlh7l</bpmn2:outgoing>
27         <bpmn2:errorEventDefinition />
28       </bpmn2:startEvent>
29       <bpmn2:scriptTask id="processMsoWorkflowException" name="Process Error" scriptFormat="groovy">
30         <bpmn2:incoming>SequenceFlow_00nlh7l</bpmn2:incoming>
31         <bpmn2:outgoing>SequenceFlow_1rf4vs8</bpmn2:outgoing>
32         <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
33 ExceptionUtil ex = new ExceptionUtil()
34 ex.processSubflowsBPMNException(execution)]]></bpmn2:script>
35       </bpmn2:scriptTask>
36       <bpmn2:sequenceFlow id="SequenceFlow_1rf4vs8" sourceRef="processMsoWorkflowException" targetRef="EndEvent_07tjq3v" />
37       <bpmn2:sequenceFlow id="SequenceFlow_00nlh7l" sourceRef="StartEvent_1qiitb2" targetRef="processMsoWorkflowException" />
38     </bpmn2:subProcess>
39     <bpmn2:subProcess id="javaExceptionSubProcess" name="Java Exception Sub Process" triggeredByEvent="true">
40       <bpmn2:scriptTask id="processJavaException" name="Process Error" scriptFormat="groovy">
41         <bpmn2:incoming>SequenceFlow_0kamg53</bpmn2:incoming>
42         <bpmn2:outgoing>SequenceFlow_1o7154s</bpmn2:outgoing>
43         <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
44 ExceptionUtil ex = new ExceptionUtil()
45 ex.processJavaException(execution)]]></bpmn2:script>
46       </bpmn2:scriptTask>
47       <bpmn2:startEvent id="StartEvent_1fbpeuw">
48         <bpmn2:outgoing>SequenceFlow_0kamg53</bpmn2:outgoing>
49         <bpmn2:errorEventDefinition errorRef="Error_1lwpypa" />
50       </bpmn2:startEvent>
51       <bpmn2:endEvent id="EndEvent_0jbvnr0">
52         <bpmn2:incoming>SequenceFlow_1o7154s</bpmn2:incoming>
53         <bpmn2:terminateEventDefinition />
54       </bpmn2:endEvent>
55       <bpmn2:sequenceFlow id="SequenceFlow_0kamg53" name="" sourceRef="StartEvent_1fbpeuw" targetRef="processJavaException" />
56       <bpmn2:sequenceFlow id="SequenceFlow_1o7154s" name="" sourceRef="processJavaException" targetRef="EndEvent_0jbvnr0" />
57     </bpmn2:subProcess>
58     <bpmn2:scriptTask id="processSniroHomingSolution" name="&#10;Process Solution&#10;" scriptFormat="groovy">
59       <bpmn2:incoming>SequenceFlow_1fipbmk</bpmn2:incoming>
60       <bpmn2:outgoing>SequenceFlow_01apjvo</bpmn2:outgoing>
61       <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
62 if(execution.getVariable("homingService") == "oof"){
63   OofHoming oofHoming = new OofHoming()
64   oofHoming.processHomingSolution(execution)
65 }else{
66   SniroHomingV1  sniroHoming = new SniroHomingV1 ()
67   sniroHoming.processHomingSolution(execution)
68 }]]></bpmn2:script>
69     </bpmn2:scriptTask>
70     <bpmn2:callActivity id="receiveAsyncCallback" name="Receive Async Callback" camunda:modelerTemplate="receiveWorkflowMessage" calledElement="ReceiveWorkflowMessage">
71       <bpmn2:extensionElements>
72         <camunda:in source="true" target="isDebugLogEnabled" />
73         <camunda:out source="WorkflowException" target="WorkflowException" />
74         <camunda:in source="messageType" target="RCVWFMSG_messageType" />
75         <camunda:in source="correlator" target="RCVWFMSG_correlator" />
76         <camunda:in source="timeout" target="RCVWFMSG_timeout" />
77         <camunda:out source="WorkflowResponse" target="asyncCallbackResponse" />
78       </bpmn2:extensionElements>
79       <bpmn2:incoming>SequenceFlow_0lc15i7</bpmn2:incoming>
80       <bpmn2:outgoing>SequenceFlow_1fipbmk</bpmn2:outgoing>
81     </bpmn2:callActivity>
82     <bpmn2:sequenceFlow id="SequenceFlow_1fipbmk" sourceRef="receiveAsyncCallback" targetRef="processSniroHomingSolution" />
83     <bpmn2:sequenceFlow id="SequenceFlow_01apjvo" sourceRef="processSniroHomingSolution" targetRef="EndEvent_0rrbz2a" />
84     <bpmn2:endEvent id="EndEvent_0rrbz2a">
85       <bpmn2:incoming>SequenceFlow_01apjvo</bpmn2:incoming>
86       <bpmn2:terminateEventDefinition />
87     </bpmn2:endEvent>
88     <bpmn2:sequenceFlow id="SequenceFlow_0lc15i7" sourceRef="callSniro" targetRef="receiveAsyncCallback" />
89   </bpmn2:process>
90   <bpmn2:error id="Error_10hit0u" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
91   <bpmn2:error id="Error_1lwpypa" name="Java Lang Exception" errorCode="java.lang.Exception" />
92   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
93     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Homing">
94       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
95         <dc:Bounds x="147" y="275" width="36" height="36" />
96       </bpmndi:BPMNShape>
97       <bpmndi:BPMNShape id="ScriptTask_0qmfpdr_di" bpmnElement="callSniro">
98         <dc:Bounds x="313" y="253" width="100" height="80" />
99       </bpmndi:BPMNShape>
100       <bpmndi:BPMNEdge id="SequenceFlow_1x9usa6_di" bpmnElement="SequenceFlow_1x9usa6">
101         <di:waypoint xsi:type="dc:Point" x="183" y="293" />
102         <di:waypoint xsi:type="dc:Point" x="313" y="293" />
103         <bpmndi:BPMNLabel>
104           <dc:Bounds x="203" y="278" width="90" height="0" />
105         </bpmndi:BPMNLabel>
106       </bpmndi:BPMNEdge>
107       <bpmndi:BPMNShape id="SubProcess_16p12qo_di" bpmnElement="bpmnErrorSubprocess" isExpanded="true">
108         <dc:Bounds x="254" y="449" width="409" height="168" />
109       </bpmndi:BPMNShape>
110       <bpmndi:BPMNShape id="SubProcess_12gjiy8_di" bpmnElement="javaExceptionSubProcess" isExpanded="true">
111         <dc:Bounds x="284" y="632" width="350" height="159" />
112       </bpmndi:BPMNShape>
113       <bpmndi:BPMNShape id="EndEvent_07tjq3v_di" bpmnElement="EndEvent_07tjq3v">
114         <dc:Bounds x="579" y="523" width="36" height="36" />
115         <bpmndi:BPMNLabel>
116           <dc:Bounds x="552" y="564" width="90" height="0" />
117         </bpmndi:BPMNLabel>
118       </bpmndi:BPMNShape>
119       <bpmndi:BPMNShape id="StartEvent_1qiitb2_di" bpmnElement="StartEvent_1qiitb2">
120         <dc:Bounds x="299" y="523" width="36" height="36" />
121         <bpmndi:BPMNLabel>
122           <dc:Bounds x="272" y="564" width="90" height="0" />
123         </bpmndi:BPMNLabel>
124       </bpmndi:BPMNShape>
125       <bpmndi:BPMNShape id="ScriptTask_03hs6s9_di" bpmnElement="processMsoWorkflowException">
126         <dc:Bounds x="406" y="501" width="100" height="80" />
127       </bpmndi:BPMNShape>
128       <bpmndi:BPMNShape id="ScriptTask_19gqykh_di" bpmnElement="processJavaException">
129         <dc:Bounds x="410" y="680" width="100" height="80" />
130       </bpmndi:BPMNShape>
131       <bpmndi:BPMNShape id="StartEvent_1fbpeuw_di" bpmnElement="StartEvent_1fbpeuw">
132         <dc:Bounds x="318" y="702" width="36" height="36" />
133         <bpmndi:BPMNLabel>
134           <dc:Bounds x="291" y="743" width="90" height="0" />
135         </bpmndi:BPMNLabel>
136       </bpmndi:BPMNShape>
137       <bpmndi:BPMNShape id="EndEvent_0jbvnr0_di" bpmnElement="EndEvent_0jbvnr0">
138         <dc:Bounds x="567" y="702" width="36" height="36" />
139         <bpmndi:BPMNLabel>
140           <dc:Bounds x="540" y="743" width="90" height="0" />
141         </bpmndi:BPMNLabel>
142       </bpmndi:BPMNShape>
143       <bpmndi:BPMNEdge id="SequenceFlow_1rf4vs8_di" bpmnElement="SequenceFlow_1rf4vs8">
144         <di:waypoint xsi:type="dc:Point" x="506" y="541" />
145         <di:waypoint xsi:type="dc:Point" x="579" y="541" />
146         <bpmndi:BPMNLabel>
147           <dc:Bounds x="498" y="526" width="90" height="0" />
148         </bpmndi:BPMNLabel>
149       </bpmndi:BPMNEdge>
150       <bpmndi:BPMNEdge id="SequenceFlow_00nlh7l_di" bpmnElement="SequenceFlow_00nlh7l">
151         <di:waypoint xsi:type="dc:Point" x="335" y="541" />
152         <di:waypoint xsi:type="dc:Point" x="363" y="541" />
153         <di:waypoint xsi:type="dc:Point" x="363" y="541" />
154         <di:waypoint xsi:type="dc:Point" x="406" y="541" />
155         <bpmndi:BPMNLabel>
156           <dc:Bounds x="333" y="541" width="90" height="0" />
157         </bpmndi:BPMNLabel>
158       </bpmndi:BPMNEdge>
159       <bpmndi:BPMNEdge id="SequenceFlow_0kamg53_di" bpmnElement="SequenceFlow_0kamg53">
160         <di:waypoint xsi:type="dc:Point" x="354" y="720" />
161         <di:waypoint xsi:type="dc:Point" x="410" y="720" />
162         <bpmndi:BPMNLabel>
163           <dc:Bounds x="337" y="705" width="90" height="0" />
164         </bpmndi:BPMNLabel>
165       </bpmndi:BPMNEdge>
166       <bpmndi:BPMNEdge id="SequenceFlow_1o7154s_di" bpmnElement="SequenceFlow_1o7154s">
167         <di:waypoint xsi:type="dc:Point" x="510" y="720" />
168         <di:waypoint xsi:type="dc:Point" x="567" y="720" />
169         <bpmndi:BPMNLabel>
170           <dc:Bounds x="494" y="705" width="90" height="0" />
171         </bpmndi:BPMNLabel>
172       </bpmndi:BPMNEdge>
173       <bpmndi:BPMNShape id="ScriptTask_1aapkvq_di" bpmnElement="processSniroHomingSolution">
174         <dc:Bounds x="597" y="253" width="100" height="80" />
175       </bpmndi:BPMNShape>
176       <bpmndi:BPMNShape id="CallActivity_031b5m3_di" bpmnElement="receiveAsyncCallback">
177         <dc:Bounds x="455" y="253" width="100" height="80" />
178       </bpmndi:BPMNShape>
179       <bpmndi:BPMNEdge id="SequenceFlow_1fipbmk_di" bpmnElement="SequenceFlow_1fipbmk">
180         <di:waypoint xsi:type="dc:Point" x="555" y="293" />
181         <di:waypoint xsi:type="dc:Point" x="597" y="293" />
182         <bpmndi:BPMNLabel>
183           <dc:Bounds x="531" y="272" width="90" height="12" />
184         </bpmndi:BPMNLabel>
185       </bpmndi:BPMNEdge>
186       <bpmndi:BPMNEdge id="SequenceFlow_01apjvo_di" bpmnElement="SequenceFlow_01apjvo">
187         <di:waypoint xsi:type="dc:Point" x="697" y="293" />
188         <di:waypoint xsi:type="dc:Point" x="860" y="293" />
189         <bpmndi:BPMNLabel>
190           <dc:Bounds x="778.5" y="272" width="0" height="12" />
191         </bpmndi:BPMNLabel>
192       </bpmndi:BPMNEdge>
193       <bpmndi:BPMNShape id="EndEvent_07i1a5x_di" bpmnElement="EndEvent_0rrbz2a">
194         <dc:Bounds x="860" y="275" width="36" height="36" />
195         <bpmndi:BPMNLabel>
196           <dc:Bounds x="877.17" y="315" width="0" height="12" />
197         </bpmndi:BPMNLabel>
198       </bpmndi:BPMNShape>
199       <bpmndi:BPMNEdge id="SequenceFlow_0lc15i7_di" bpmnElement="SequenceFlow_0lc15i7">
200         <di:waypoint xsi:type="dc:Point" x="413" y="293" />
201         <di:waypoint xsi:type="dc:Point" x="455" y="293" />
202         <bpmndi:BPMNLabel>
203           <dc:Bounds x="434" y="272" width="0" height="12" />
204         </bpmndi:BPMNLabel>
205       </bpmndi:BPMNEdge>
206     </bpmndi:BPMNPlane>
207   </bpmndi:BPMNDiagram>
208 </bpmn2:definitions>