Merge "added fragment support to generated objects"
[so.git] / bpmn / so-bpmn-infrastructure-flows / src / main / resources / process / GenericPnfHealthCheck.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:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1yd8m0g" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.0.0">
3   <bpmn:process id="GenericPnfHealthCheck" name="GenericPnfHealthCheck" isExecutable="true">
4     <bpmn:startEvent id="pnfHealthCheck_startEvent" name="Start Flow">
5       <bpmn:outgoing>SequenceFlow_1ng4b6l</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:serviceTask id="ServiceTask_042uz7m" name="PNF Request Dispatcher" camunda:delegateExpression="${GenericPnfDispatcher}">
8       <bpmn:incoming>SequenceFlow_1ng4b6l</bpmn:incoming>
9       <bpmn:outgoing>SequenceFlow_12ejx4m</bpmn:outgoing>
10     </bpmn:serviceTask>
11     <bpmn:sequenceFlow id="SequenceFlow_12ejx4m" sourceRef="ServiceTask_042uz7m" targetRef="ScriptTask_10klpg9" />
12     <bpmn:endEvent id="pnfHealthCheck_endEvent" name="End">
13       <bpmn:incoming>SequenceFlow_0tle5zb</bpmn:incoming>
14       <bpmn:terminateEventDefinition />
15     </bpmn:endEvent>
16     <bpmn:sequenceFlow id="SequenceFlow_1ng4b6l" sourceRef="pnfHealthCheck_startEvent" targetRef="ServiceTask_042uz7m" />
17     <bpmn:exclusiveGateway id="ExclusiveGateway_0x6h0yi" default="SequenceFlow_0piri91">
18       <bpmn:incoming>SequenceFlow_0j26xlx</bpmn:incoming>
19       <bpmn:outgoing>SequenceFlow_0piri91</bpmn:outgoing>
20       <bpmn:outgoing>Flow_015z1h4</bpmn:outgoing>
21     </bpmn:exclusiveGateway>
22     <bpmn:endEvent id="EndEvent_180lm4y">
23       <bpmn:incoming>SequenceFlow_0piri91</bpmn:incoming>
24       <bpmn:errorEventDefinition id="ErrorEventDefinition_0fm5he7" errorRef="Error_12cpov5" />
25     </bpmn:endEvent>
26     <bpmn:sequenceFlow id="SequenceFlow_0piri91" name="Failure" sourceRef="ExclusiveGateway_0x6h0yi" targetRef="EndEvent_180lm4y" />
27     <bpmn:scriptTask id="ScriptTask_10klpg9" name="Send Response" scriptFormat="groovy">
28       <bpmn:incoming>SequenceFlow_12ejx4m</bpmn:incoming>
29       <bpmn:outgoing>Flow_12uv2m0</bpmn:outgoing>
30       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
31 def taskProcessor = new GenericPnfTaskProcessor()
32 taskProcessor.sendResponse(execution)</bpmn:script>
33     </bpmn:scriptTask>
34     <bpmn:scriptTask id="ScriptTask_1igtc83" name="Prepare Completion" scriptFormat="groovy">
35       <bpmn:incoming>Flow_015z1h4</bpmn:incoming>
36       <bpmn:outgoing>SequenceFlow_0ipc3nt</bpmn:outgoing>
37       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
38 def taskProcessor = new GenericPnfTaskProcessor()
39 taskProcessor.prepareCompletion(execution)</bpmn:script>
40     </bpmn:scriptTask>
41     <bpmn:sequenceFlow id="SequenceFlow_0ipc3nt" sourceRef="ScriptTask_1igtc83" targetRef="CallActivity_0o1mi8u" />
42     <bpmn:callActivity id="CallActivity_0o1mi8u" name="Complete Process" calledElement="CompleteMsoProcess">
43       <bpmn:extensionElements>
44         <camunda:in source="PnfSwUpgrade_CompleteMsoProcessRequest" target="CompleteMsoProcessRequest" />
45       </bpmn:extensionElements>
46       <bpmn:incoming>SequenceFlow_0ipc3nt</bpmn:incoming>
47       <bpmn:outgoing>SequenceFlow_0tle5zb</bpmn:outgoing>
48     </bpmn:callActivity>
49     <bpmn:sequenceFlow id="SequenceFlow_0tle5zb" sourceRef="CallActivity_0o1mi8u" targetRef="pnfHealthCheck_endEvent" />
50     <bpmn:subProcess id="SubProcess_02p6q4s" name="Subprocess for FalloutHandler" triggeredByEvent="true">
51       <bpmn:startEvent id="StartEvent_149ecdm" name="Catch All Errors">
52         <bpmn:outgoing>SequenceFlow_05haut5</bpmn:outgoing>
53         <bpmn:errorEventDefinition id="ErrorEventDefinition_1" />
54       </bpmn:startEvent>
55       <bpmn:scriptTask id="ScriptTask_0gov132" name="Prepare FalloutHandler" scriptFormat="groovy">
56         <bpmn:incoming>SequenceFlow_05haut5</bpmn:incoming>
57         <bpmn:outgoing>SequenceFlow_09y0mpc</bpmn:outgoing>
58         <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
59 def pnfSwUpgrade = new GenericPnfSoftwareUpgrade()
60 pnfSwUpgrade.prepareFalloutHandler(execution)</bpmn:script>
61       </bpmn:scriptTask>
62       <bpmn:callActivity id="CallActivity_00psvtk" name="Call FalloutHandler" calledElement="FalloutHandler">
63         <bpmn:extensionElements>
64           <camunda:in source="PnfSwUpgrade_FalloutHandlerRequest" target="FalloutHandlerRequest" />
65         </bpmn:extensionElements>
66         <bpmn:incoming>SequenceFlow_09y0mpc</bpmn:incoming>
67         <bpmn:outgoing>SequenceFlow_1tcjlty</bpmn:outgoing>
68       </bpmn:callActivity>
69       <bpmn:endEvent id="EndEvent_1vq2glg" name="End">
70         <bpmn:incoming>SequenceFlow_1tcjlty</bpmn:incoming>
71         <bpmn:terminateEventDefinition id="TerminateEventDefinition_0994ojb" />
72       </bpmn:endEvent>
73       <bpmn:sequenceFlow id="SequenceFlow_05haut5" sourceRef="StartEvent_149ecdm" targetRef="ScriptTask_0gov132" />
74       <bpmn:sequenceFlow id="SequenceFlow_09y0mpc" sourceRef="ScriptTask_0gov132" targetRef="CallActivity_00psvtk" />
75       <bpmn:sequenceFlow id="SequenceFlow_1tcjlty" sourceRef="CallActivity_00psvtk" targetRef="EndEvent_1vq2glg" />
76     </bpmn:subProcess>
77     <bpmn:serviceTask id="ServiceTask_0slpaht" name="HealthCheck" camunda:delegateExpression="${ControllerExecutionDE}">
78       <bpmn:extensionElements>
79         <camunda:inputOutput>
80           <camunda:inputParameter name="action">healthCheck</camunda:inputParameter>
81           <camunda:inputParameter name="scope">pnf</camunda:inputParameter>
82           <camunda:inputParameter name="mode">async</camunda:inputParameter>
83         </camunda:inputOutput>
84       </bpmn:extensionElements>
85       <bpmn:incoming>Flow_12uv2m0</bpmn:incoming>
86       <bpmn:outgoing>SequenceFlow_0j26xlx</bpmn:outgoing>
87     </bpmn:serviceTask>
88     <bpmn:sequenceFlow id="SequenceFlow_0j26xlx" sourceRef="ServiceTask_0slpaht" targetRef="ExclusiveGateway_0x6h0yi" />
89     <bpmn:sequenceFlow id="Flow_015z1h4" name="Success" sourceRef="ExclusiveGateway_0x6h0yi" targetRef="ScriptTask_1igtc83">
90       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("ControllerStatus").equals("Success")}</bpmn:conditionExpression>
91     </bpmn:sequenceFlow>
92     <bpmn:sequenceFlow id="Flow_12uv2m0" sourceRef="ScriptTask_10klpg9" targetRef="ServiceTask_0slpaht" />
93   </bpmn:process>
94   <bpmn:error id="Error_12cpov5" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
95   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
96     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="GenericPnfHealthCheck">
97       <bpmndi:BPMNEdge id="Flow_12uv2m0_di" bpmnElement="Flow_12uv2m0">
98         <di:waypoint x="530" y="120" />
99         <di:waypoint x="590" y="120" />
100       </bpmndi:BPMNEdge>
101       <bpmndi:BPMNEdge id="Flow_015z1h4_di" bpmnElement="Flow_015z1h4">
102         <di:waypoint x="825" y="120" />
103         <di:waypoint x="900" y="120" />
104         <bpmndi:BPMNLabel>
105           <dc:Bounds x="842" y="102" width="43" height="14" />
106         </bpmndi:BPMNLabel>
107       </bpmndi:BPMNEdge>
108       <bpmndi:BPMNEdge id="SequenceFlow_0j26xlx_di" bpmnElement="SequenceFlow_0j26xlx">
109         <di:waypoint x="690" y="120" />
110         <di:waypoint x="775" y="120" />
111       </bpmndi:BPMNEdge>
112       <bpmndi:BPMNEdge id="SequenceFlow_0tle5zb_di" bpmnElement="SequenceFlow_0tle5zb">
113         <di:waypoint x="1180" y="120" />
114         <di:waypoint x="1262" y="120" />
115       </bpmndi:BPMNEdge>
116       <bpmndi:BPMNEdge id="SequenceFlow_0ipc3nt_di" bpmnElement="SequenceFlow_0ipc3nt">
117         <di:waypoint x="1000" y="120" />
118         <di:waypoint x="1080" y="120" />
119       </bpmndi:BPMNEdge>
120       <bpmndi:BPMNEdge id="SequenceFlow_0piri91_di" bpmnElement="SequenceFlow_0piri91">
121         <di:waypoint x="800" y="145" />
122         <di:waypoint x="800" y="202" />
123         <bpmndi:BPMNLabel>
124           <dc:Bounds x="793" y="145" width="35" height="14" />
125         </bpmndi:BPMNLabel>
126       </bpmndi:BPMNEdge>
127       <bpmndi:BPMNEdge id="SequenceFlow_1ng4b6l_di" bpmnElement="SequenceFlow_1ng4b6l">
128         <di:waypoint x="178" y="120" />
129         <di:waypoint x="270" y="120" />
130       </bpmndi:BPMNEdge>
131       <bpmndi:BPMNEdge id="SequenceFlow_12ejx4m_di" bpmnElement="SequenceFlow_12ejx4m">
132         <di:waypoint x="370" y="120" />
133         <di:waypoint x="430" y="120" />
134       </bpmndi:BPMNEdge>
135       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="pnfHealthCheck_startEvent">
136         <dc:Bounds x="142" y="102" width="36" height="36" />
137         <bpmndi:BPMNLabel>
138           <dc:Bounds x="137" y="145" width="51" height="14" />
139         </bpmndi:BPMNLabel>
140       </bpmndi:BPMNShape>
141       <bpmndi:BPMNShape id="ServiceTask_042uz7n_di" bpmnElement="ServiceTask_042uz7m">
142         <dc:Bounds x="270" y="80" width="100" height="80" />
143       </bpmndi:BPMNShape>
144       <bpmndi:BPMNShape id="EndEvent_1w3jv30_di" bpmnElement="pnfHealthCheck_endEvent">
145         <dc:Bounds x="1262" y="102" width="36" height="36" />
146         <bpmndi:BPMNLabel>
147           <dc:Bounds x="1271" y="145" width="20" height="14" />
148         </bpmndi:BPMNLabel>
149       </bpmndi:BPMNShape>
150       <bpmndi:BPMNShape id="ExclusiveGateway_0x6h0ni_di" bpmnElement="ExclusiveGateway_0x6h0yi" isMarkerVisible="true">
151         <dc:Bounds x="775" y="95" width="50" height="50" />
152       </bpmndi:BPMNShape>
153       <bpmndi:BPMNShape id="EndEvent_180lm4y_di" bpmnElement="EndEvent_180lm4y">
154         <dc:Bounds x="782" y="202" width="36" height="36" />
155       </bpmndi:BPMNShape>
156       <bpmndi:BPMNShape id="ScriptTask_10klpg8_di" bpmnElement="ScriptTask_10klpg9">
157         <dc:Bounds x="430" y="80" width="100" height="80" />
158       </bpmndi:BPMNShape>
159       <bpmndi:BPMNShape id="ScriptTask_1igtc83_di" bpmnElement="ScriptTask_1igtc83">
160         <dc:Bounds x="900" y="80" width="100" height="80" />
161       </bpmndi:BPMNShape>
162       <bpmndi:BPMNShape id="CallActivity_0o1mi8u_di" bpmnElement="CallActivity_0o1mi8u">
163         <dc:Bounds x="1080" y="80" width="100" height="80" />
164       </bpmndi:BPMNShape>
165       <bpmndi:BPMNShape id="SubProcess_02p6q4s_di" bpmnElement="SubProcess_02p6q4s" isExpanded="true">
166         <dc:Bounds x="370" y="430" width="650" height="190" />
167       </bpmndi:BPMNShape>
168       <bpmndi:BPMNEdge id="SequenceFlow_1tcjlty_di" bpmnElement="SequenceFlow_1tcjlty">
169         <di:waypoint x="810" y="530" />
170         <di:waypoint x="882" y="530" />
171       </bpmndi:BPMNEdge>
172       <bpmndi:BPMNEdge id="SequenceFlow_09y0mpc_di" bpmnElement="SequenceFlow_09y0mpc">
173         <di:waypoint x="640" y="530" />
174         <di:waypoint x="710" y="530" />
175       </bpmndi:BPMNEdge>
176       <bpmndi:BPMNEdge id="SequenceFlow_05haut5_di" bpmnElement="SequenceFlow_05haut5">
177         <di:waypoint x="478" y="530" />
178         <di:waypoint x="540" y="530" />
179       </bpmndi:BPMNEdge>
180       <bpmndi:BPMNShape id="StartEvent_1r4h504_di" bpmnElement="StartEvent_149ecdm">
181         <dc:Bounds x="442" y="512" width="36" height="36" />
182         <bpmndi:BPMNLabel>
183           <dc:Bounds x="421" y="553" width="78" height="14" />
184         </bpmndi:BPMNLabel>
185       </bpmndi:BPMNShape>
186       <bpmndi:BPMNShape id="ScriptTask_0gov132_di" bpmnElement="ScriptTask_0gov132">
187         <dc:Bounds x="540" y="490" width="100" height="80" />
188       </bpmndi:BPMNShape>
189       <bpmndi:BPMNShape id="CallActivity_00psvtk_di" bpmnElement="CallActivity_00psvtk">
190         <dc:Bounds x="710" y="490" width="100" height="80" />
191       </bpmndi:BPMNShape>
192       <bpmndi:BPMNShape id="EndEvent_1vq2glg_di" bpmnElement="EndEvent_1vq2glg">
193         <dc:Bounds x="882" y="512" width="36" height="36" />
194         <bpmndi:BPMNLabel>
195           <dc:Bounds x="891" y="555" width="20" height="14" />
196         </bpmndi:BPMNLabel>
197       </bpmndi:BPMNShape>
198       <bpmndi:BPMNShape id="ServiceTask_0slpahe_di" bpmnElement="ServiceTask_0slpaht">
199         <dc:Bounds x="590" y="80" width="100" height="80" />
200       </bpmndi:BPMNShape>
201     </bpmndi:BPMNPlane>
202   </bpmndi:BPMNDiagram>
203 </bpmn:definitions>