Merge branch 'recursive-orch'
[so.git] / bpmn / so-bpmn-building-blocks / src / main / resources / subprocess / BuildingBlock / HealthCheckBB.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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_0gwymqy" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.7.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.14.0">
3   <bpmn:process id="HealthCheckBB" name="HealthCheckBB" isExecutable="true">
4     <bpmn:startEvent id="Event_0rgusxn" name="HealthCheckBB_start">
5       <bpmn:outgoing>Flow_0udh4cd</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:endEvent id="Event_0o1nl3y" name="HealthCheckBB_end">
8       <bpmn:incoming>Flow_0n17e0q</bpmn:incoming>
9       <bpmn:incoming>Flow_131rwms</bpmn:incoming>
10     </bpmn:endEvent>
11     <bpmn:subProcess id="Activity_0tw4ak3" name="Error Handling&#10;&#10;" triggeredByEvent="true">
12       <bpmn:startEvent id="Event_1v6jbfd">
13         <bpmn:outgoing>Flow_03ogqmx</bpmn:outgoing>
14         <bpmn:errorEventDefinition id="ErrorEventDefinition_1xw7dq4" />
15       </bpmn:startEvent>
16       <bpmn:endEvent id="Event_0wwzune">
17         <bpmn:incoming>Flow_03ogqmx</bpmn:incoming>
18         <bpmn:terminateEventDefinition id="TerminateEventDefinition_0c07ott" />
19       </bpmn:endEvent>
20       <bpmn:sequenceFlow id="Flow_03ogqmx" sourceRef="Event_1v6jbfd" targetRef="Event_0wwzune" />
21     </bpmn:subProcess>
22     <bpmn:serviceTask id="Activity_0pnb21p" name="Prepare Cnf Adapter request" camunda:expression="${CnfHealthCheckTasks.prepareCnfAdaperRequest(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
23       <bpmn:incoming>Flow_0jxw1lb</bpmn:incoming>
24       <bpmn:outgoing>Flow_0uoe9ga</bpmn:outgoing>
25     </bpmn:serviceTask>
26     <bpmn:callActivity id="Activity_07txikn" name="Call CNFAdapterAsyncCall" calledElement="CNFAdapterAsyncCall">
27       <bpmn:extensionElements>
28         <camunda:in source="apiPath" target="apiPath" />
29         <camunda:in source="cnfRequestPayload" target="cnfRequestPayload" />
30         <camunda:in source="mso-request-id" target="correlator" />
31         <camunda:in source="timeout" target="timeout" />
32         <camunda:out source="WorkflowException" target="WorkflowException" />
33         <camunda:out source="asyncCallbackResponse" target="asyncCallbackResponse" />
34         <camunda:in source="messageType" target="messageType" />
35         <camunda:in source="true" target="isDebugLogEnabled" />
36       </bpmn:extensionElements>
37       <bpmn:incoming>Flow_0uoe9ga</bpmn:incoming>
38       <bpmn:outgoing>Flow_0t6f6l8</bpmn:outgoing>
39     </bpmn:callActivity>
40     <bpmn:serviceTask id="Activity_1qd7k3z" name="Process Response" camunda:expression="${CnfHealthCheckTasks.processAsyncResponse(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
41       <bpmn:incoming>Flow_0t6f6l8</bpmn:incoming>
42       <bpmn:outgoing>Flow_0n17e0q</bpmn:outgoing>
43     </bpmn:serviceTask>
44     <bpmn:exclusiveGateway id="Gateway_07e5xls" name="Check If Is Helm" default="Flow_131rwms">
45       <bpmn:incoming>Flow_0udh4cd</bpmn:incoming>
46       <bpmn:outgoing>Flow_131rwms</bpmn:outgoing>
47       <bpmn:outgoing>Flow_0jxw1lb</bpmn:outgoing>
48     </bpmn:exclusiveGateway>
49     <bpmn:sequenceFlow id="Flow_0udh4cd" sourceRef="Event_0rgusxn" targetRef="Gateway_07e5xls" />
50     <bpmn:sequenceFlow id="Flow_0n17e0q" sourceRef="Activity_1qd7k3z" targetRef="Event_0o1nl3y" />
51     <bpmn:sequenceFlow id="Flow_131rwms" name="No Helm" sourceRef="Gateway_07e5xls" targetRef="Event_0o1nl3y" />
52     <bpmn:sequenceFlow id="Flow_0jxw1lb" name="Yes Helm" sourceRef="Gateway_07e5xls" targetRef="Activity_0pnb21p">
53       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${execution.getVariable("isHelm")}</bpmn:conditionExpression>
54     </bpmn:sequenceFlow>
55     <bpmn:sequenceFlow id="Flow_0uoe9ga" sourceRef="Activity_0pnb21p" targetRef="Activity_07txikn" />
56     <bpmn:sequenceFlow id="Flow_0t6f6l8" sourceRef="Activity_07txikn" targetRef="Activity_1qd7k3z" />
57   </bpmn:process>
58   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
59     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="HealthCheckBB">
60       <bpmndi:BPMNEdge id="Flow_0udh4cd_di" bpmnElement="Flow_0udh4cd">
61         <di:waypoint x="218" y="150" />
62         <di:waypoint x="245" y="150" />
63       </bpmndi:BPMNEdge>
64       <bpmndi:BPMNEdge id="Flow_0n17e0q_di" bpmnElement="Flow_0n17e0q">
65         <di:waypoint x="780" y="150" />
66         <di:waypoint x="870" y="150" />
67         <di:waypoint x="870" y="202" />
68       </bpmndi:BPMNEdge>
69       <bpmndi:BPMNEdge id="Flow_131rwms_di" bpmnElement="Flow_131rwms">
70         <di:waypoint x="270" y="175" />
71         <di:waypoint x="270" y="220" />
72         <di:waypoint x="852" y="220" />
73         <bpmndi:BPMNLabel>
74           <dc:Bounds x="264" y="195" width="43" height="14" />
75         </bpmndi:BPMNLabel>
76       </bpmndi:BPMNEdge>
77       <bpmndi:BPMNEdge id="Flow_0jxw1lb_di" bpmnElement="Flow_0jxw1lb">
78         <di:waypoint x="295" y="150" />
79         <di:waypoint x="350" y="150" />
80         <bpmndi:BPMNLabel>
81           <dc:Bounds x="299" y="132" width="47" height="14" />
82         </bpmndi:BPMNLabel>
83       </bpmndi:BPMNEdge>
84       <bpmndi:BPMNEdge id="Flow_0uoe9ga_di" bpmnElement="Flow_0uoe9ga">
85         <di:waypoint x="450" y="150" />
86         <di:waypoint x="500" y="150" />
87       </bpmndi:BPMNEdge>
88       <bpmndi:BPMNEdge id="Flow_0t6f6l8_di" bpmnElement="Flow_0t6f6l8">
89         <di:waypoint x="600" y="150" />
90         <di:waypoint x="680" y="150" />
91       </bpmndi:BPMNEdge>
92       <bpmndi:BPMNShape id="Event_0rgusxn_di" bpmnElement="Event_0rgusxn">
93         <dc:Bounds x="182" y="132" width="36" height="36" />
94         <bpmndi:BPMNLabel>
95           <dc:Bounds x="156" y="175" width="90" height="27" />
96         </bpmndi:BPMNLabel>
97       </bpmndi:BPMNShape>
98       <bpmndi:BPMNShape id="Event_0o1nl3y_di" bpmnElement="Event_0o1nl3y">
99         <dc:Bounds x="852" y="202" width="36" height="36" />
100         <bpmndi:BPMNLabel>
101           <dc:Bounds x="831" y="245" width="84" height="27" />
102         </bpmndi:BPMNLabel>
103       </bpmndi:BPMNShape>
104       <bpmndi:BPMNShape id="Activity_0pnb21p_di" bpmnElement="Activity_0pnb21p">
105         <dc:Bounds x="350" y="110" width="100" height="80" />
106       </bpmndi:BPMNShape>
107       <bpmndi:BPMNShape id="Activity_07txikn_di" bpmnElement="Activity_07txikn">
108         <dc:Bounds x="500" y="110" width="100" height="80" />
109       </bpmndi:BPMNShape>
110       <bpmndi:BPMNShape id="Activity_1qd7k3z_di" bpmnElement="Activity_1qd7k3z">
111         <dc:Bounds x="680" y="110" width="100" height="80" />
112       </bpmndi:BPMNShape>
113       <bpmndi:BPMNShape id="Gateway_07e5xls_di" bpmnElement="Gateway_07e5xls" isMarkerVisible="true">
114         <dc:Bounds x="245" y="125" width="50" height="50" />
115         <bpmndi:BPMNLabel>
116           <dc:Bounds x="230" y="95" width="81" height="14" />
117         </bpmndi:BPMNLabel>
118       </bpmndi:BPMNShape>
119       <bpmndi:BPMNShape id="Activity_0tw4ak3_di" bpmnElement="Activity_0tw4ak3" isExpanded="true">
120         <dc:Bounds x="280" y="280" width="460" height="135" />
121       </bpmndi:BPMNShape>
122       <bpmndi:BPMNEdge id="Flow_03ogqmx_di" bpmnElement="Flow_03ogqmx">
123         <di:waypoint x="398" y="354" />
124         <di:waypoint x="632" y="354" />
125       </bpmndi:BPMNEdge>
126       <bpmndi:BPMNShape id="Event_1v6jbfd_di" bpmnElement="Event_1v6jbfd">
127         <dc:Bounds x="362" y="336" width="36" height="36" />
128       </bpmndi:BPMNShape>
129       <bpmndi:BPMNShape id="Event_0wwzune_di" bpmnElement="Event_0wwzune">
130         <dc:Bounds x="632" y="336" width="36" height="36" />
131       </bpmndi:BPMNShape>
132     </bpmndi:BPMNPlane>
133   </bpmndi:BPMNDiagram>
134 </bpmn:definitions>