[SO] Release so 1.13.0 image
[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.4.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         <camunda:in source="requestId" target="CMSO_request_id" />
46       </bpmn:extensionElements>
47       <bpmn:incoming>SequenceFlow_0ipc3nt</bpmn:incoming>
48       <bpmn:outgoing>SequenceFlow_0tle5zb</bpmn:outgoing>
49     </bpmn:callActivity>
50     <bpmn:sequenceFlow id="SequenceFlow_0tle5zb" sourceRef="CallActivity_0o1mi8u" targetRef="pnfHealthCheck_endEvent" />
51     <bpmn:subProcess id="SubProcess_02p6q4s" name="Subprocess for FalloutHandler" triggeredByEvent="true">
52       <bpmn:startEvent id="StartEvent_149ecdm" name="Catch All Errors">
53         <bpmn:outgoing>SequenceFlow_05haut5</bpmn:outgoing>
54         <bpmn:errorEventDefinition id="ErrorEventDefinition_1" />
55       </bpmn:startEvent>
56       <bpmn:scriptTask id="ScriptTask_0gov132" name="Prepare FalloutHandler" scriptFormat="groovy">
57         <bpmn:incoming>SequenceFlow_05haut5</bpmn:incoming>
58         <bpmn:outgoing>SequenceFlow_09y0mpc</bpmn:outgoing>
59         <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
60 def pnfSwUpgrade = new GenericPnfSoftwareUpgrade()
61 pnfSwUpgrade.prepareFalloutHandler(execution)</bpmn:script>
62       </bpmn:scriptTask>
63       <bpmn:callActivity id="CallActivity_00psvtk" name="Call FalloutHandler" calledElement="FalloutHandler">
64         <bpmn:extensionElements>
65           <camunda:in source="PnfSwUpgrade_FalloutHandlerRequest" target="FalloutHandlerRequest" />
66         </bpmn:extensionElements>
67         <bpmn:incoming>SequenceFlow_09y0mpc</bpmn:incoming>
68         <bpmn:outgoing>SequenceFlow_1tcjlty</bpmn:outgoing>
69       </bpmn:callActivity>
70       <bpmn:endEvent id="EndEvent_1vq2glg" name="End">
71         <bpmn:incoming>SequenceFlow_1tcjlty</bpmn:incoming>
72         <bpmn:terminateEventDefinition id="TerminateEventDefinition_0994ojb" />
73       </bpmn:endEvent>
74       <bpmn:sequenceFlow id="SequenceFlow_05haut5" sourceRef="StartEvent_149ecdm" targetRef="ScriptTask_0gov132" />
75       <bpmn:sequenceFlow id="SequenceFlow_09y0mpc" sourceRef="ScriptTask_0gov132" targetRef="CallActivity_00psvtk" />
76       <bpmn:sequenceFlow id="SequenceFlow_1tcjlty" sourceRef="CallActivity_00psvtk" targetRef="EndEvent_1vq2glg" />
77     </bpmn:subProcess>
78     <bpmn:serviceTask id="ServiceTask_0slpaht" name="HealthCheck" camunda:delegateExpression="${ControllerExecutionDE}">
79       <bpmn:extensionElements>
80         <camunda:inputOutput>
81           <camunda:inputParameter name="action">healthCheck</camunda:inputParameter>
82           <camunda:inputParameter name="scope">pnf</camunda:inputParameter>
83           <camunda:inputParameter name="mode">async</camunda:inputParameter>
84         </camunda:inputOutput>
85       </bpmn:extensionElements>
86       <bpmn:incoming>Flow_12uv2m0</bpmn:incoming>
87       <bpmn:outgoing>SequenceFlow_0j26xlx</bpmn:outgoing>
88     </bpmn:serviceTask>
89     <bpmn:sequenceFlow id="SequenceFlow_0j26xlx" sourceRef="ServiceTask_0slpaht" targetRef="ExclusiveGateway_0x6h0yi" />
90     <bpmn:sequenceFlow id="Flow_015z1h4" name="Success" sourceRef="ExclusiveGateway_0x6h0yi" targetRef="ScriptTask_1igtc83">
91       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("ControllerStatus").equals("Success")}</bpmn:conditionExpression>
92     </bpmn:sequenceFlow>
93     <bpmn:sequenceFlow id="Flow_12uv2m0" sourceRef="ScriptTask_10klpg9" targetRef="ServiceTask_0slpaht" />
94   </bpmn:process>
95   <bpmn:error id="Error_12cpov5" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
96   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
97     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="GenericPnfHealthCheck">
98       <bpmndi:BPMNEdge id="Flow_12uv2m0_di" bpmnElement="Flow_12uv2m0">
99         <di:waypoint x="530" y="120" />
100         <di:waypoint x="590" y="120" />
101       </bpmndi:BPMNEdge>
102       <bpmndi:BPMNEdge id="Flow_015z1h4_di" bpmnElement="Flow_015z1h4">
103         <di:waypoint x="825" y="120" />
104         <di:waypoint x="900" y="120" />
105         <bpmndi:BPMNLabel>
106           <dc:Bounds x="842" y="102" width="43" height="14" />
107         </bpmndi:BPMNLabel>
108       </bpmndi:BPMNEdge>
109       <bpmndi:BPMNEdge id="SequenceFlow_0j26xlx_di" bpmnElement="SequenceFlow_0j26xlx">
110         <di:waypoint x="690" y="120" />
111         <di:waypoint x="775" y="120" />
112       </bpmndi:BPMNEdge>
113       <bpmndi:BPMNEdge id="SequenceFlow_0tle5zb_di" bpmnElement="SequenceFlow_0tle5zb">
114         <di:waypoint x="1180" y="120" />
115         <di:waypoint x="1262" y="120" />
116       </bpmndi:BPMNEdge>
117       <bpmndi:BPMNEdge id="SequenceFlow_0ipc3nt_di" bpmnElement="SequenceFlow_0ipc3nt">
118         <di:waypoint x="1000" y="120" />
119         <di:waypoint x="1080" y="120" />
120       </bpmndi:BPMNEdge>
121       <bpmndi:BPMNEdge id="SequenceFlow_0piri91_di" bpmnElement="SequenceFlow_0piri91">
122         <di:waypoint x="800" y="145" />
123         <di:waypoint x="800" y="202" />
124         <bpmndi:BPMNLabel>
125           <dc:Bounds x="793" y="145" width="35" height="14" />
126         </bpmndi:BPMNLabel>
127       </bpmndi:BPMNEdge>
128       <bpmndi:BPMNEdge id="SequenceFlow_1ng4b6l_di" bpmnElement="SequenceFlow_1ng4b6l">
129         <di:waypoint x="178" y="120" />
130         <di:waypoint x="270" y="120" />
131       </bpmndi:BPMNEdge>
132       <bpmndi:BPMNEdge id="SequenceFlow_12ejx4m_di" bpmnElement="SequenceFlow_12ejx4m">
133         <di:waypoint x="370" y="120" />
134         <di:waypoint x="430" y="120" />
135       </bpmndi:BPMNEdge>
136       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="pnfHealthCheck_startEvent">
137         <dc:Bounds x="142" y="102" width="36" height="36" />
138         <bpmndi:BPMNLabel>
139           <dc:Bounds x="137" y="145" width="51" height="14" />
140         </bpmndi:BPMNLabel>
141       </bpmndi:BPMNShape>
142       <bpmndi:BPMNShape id="ServiceTask_042uz7n_di" bpmnElement="ServiceTask_042uz7m">
143         <dc:Bounds x="270" y="80" width="100" height="80" />
144       </bpmndi:BPMNShape>
145       <bpmndi:BPMNShape id="EndEvent_1w3jv30_di" bpmnElement="pnfHealthCheck_endEvent">
146         <dc:Bounds x="1262" y="102" width="36" height="36" />
147         <bpmndi:BPMNLabel>
148           <dc:Bounds x="1271" y="145" width="20" height="14" />
149         </bpmndi:BPMNLabel>
150       </bpmndi:BPMNShape>
151       <bpmndi:BPMNShape id="ExclusiveGateway_0x6h0ni_di" bpmnElement="ExclusiveGateway_0x6h0yi" isMarkerVisible="true">
152         <dc:Bounds x="775" y="95" width="50" height="50" />
153       </bpmndi:BPMNShape>
154       <bpmndi:BPMNShape id="EndEvent_180lm4y_di" bpmnElement="EndEvent_180lm4y">
155         <dc:Bounds x="782" y="202" width="36" height="36" />
156       </bpmndi:BPMNShape>
157       <bpmndi:BPMNShape id="ScriptTask_10klpg8_di" bpmnElement="ScriptTask_10klpg9">
158         <dc:Bounds x="430" y="80" width="100" height="80" />
159       </bpmndi:BPMNShape>
160       <bpmndi:BPMNShape id="ScriptTask_1igtc83_di" bpmnElement="ScriptTask_1igtc83">
161         <dc:Bounds x="900" y="80" width="100" height="80" />
162       </bpmndi:BPMNShape>
163       <bpmndi:BPMNShape id="CallActivity_0o1mi8u_di" bpmnElement="CallActivity_0o1mi8u">
164         <dc:Bounds x="1080" y="80" width="100" height="80" />
165       </bpmndi:BPMNShape>
166       <bpmndi:BPMNShape id="SubProcess_02p6q4s_di" bpmnElement="SubProcess_02p6q4s" isExpanded="true">
167         <dc:Bounds x="370" y="430" width="650" height="190" />
168       </bpmndi:BPMNShape>
169       <bpmndi:BPMNEdge id="SequenceFlow_1tcjlty_di" bpmnElement="SequenceFlow_1tcjlty">
170         <di:waypoint x="810" y="530" />
171         <di:waypoint x="882" y="530" />
172       </bpmndi:BPMNEdge>
173       <bpmndi:BPMNEdge id="SequenceFlow_09y0mpc_di" bpmnElement="SequenceFlow_09y0mpc">
174         <di:waypoint x="640" y="530" />
175         <di:waypoint x="710" y="530" />
176       </bpmndi:BPMNEdge>
177       <bpmndi:BPMNEdge id="SequenceFlow_05haut5_di" bpmnElement="SequenceFlow_05haut5">
178         <di:waypoint x="478" y="530" />
179         <di:waypoint x="540" y="530" />
180       </bpmndi:BPMNEdge>
181       <bpmndi:BPMNShape id="StartEvent_1r4h504_di" bpmnElement="StartEvent_149ecdm">
182         <dc:Bounds x="442" y="512" width="36" height="36" />
183         <bpmndi:BPMNLabel>
184           <dc:Bounds x="421" y="553" width="78" height="14" />
185         </bpmndi:BPMNLabel>
186       </bpmndi:BPMNShape>
187       <bpmndi:BPMNShape id="ScriptTask_0gov132_di" bpmnElement="ScriptTask_0gov132">
188         <dc:Bounds x="540" y="490" width="100" height="80" />
189       </bpmndi:BPMNShape>
190       <bpmndi:BPMNShape id="CallActivity_00psvtk_di" bpmnElement="CallActivity_00psvtk">
191         <dc:Bounds x="710" y="490" width="100" height="80" />
192       </bpmndi:BPMNShape>
193       <bpmndi:BPMNShape id="EndEvent_1vq2glg_di" bpmnElement="EndEvent_1vq2glg">
194         <dc:Bounds x="882" y="512" width="36" height="36" />
195         <bpmndi:BPMNLabel>
196           <dc:Bounds x="891" y="555" width="20" height="14" />
197         </bpmndi:BPMNLabel>
198       </bpmndi:BPMNShape>
199       <bpmndi:BPMNShape id="ServiceTask_0slpahe_di" bpmnElement="ServiceTask_0slpaht">
200         <dc:Bounds x="590" y="80" width="100" height="80" />
201       </bpmndi:BPMNShape>
202     </bpmndi:BPMNPlane>
203   </bpmndi:BPMNDiagram>
204 </bpmn:definitions>