Enable DeleteChildService functionality
[so.git] / bpmn / so-bpmn-building-blocks / src / main / resources / subprocess / BuildingBlock / DeleteChildServiceBB.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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0n06ztl" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.12.0">
3   <bpmn:process id="DeleteChildServiceBB" name="DeleteChildServiceBB" isExecutable="true">
4     <bpmn:startEvent id="StartEvent_1m5641e">
5       <bpmn:outgoing>SequenceFlow_01wirq3</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:receiveTask id="ReceiveTask_0otx1r1" name="Wait for Completion" messageRef="Message_0xg6jua">
8       <bpmn:incoming>SequenceFlow_14d89qf</bpmn:incoming>
9       <bpmn:outgoing>SequenceFlow_1ufwh0a</bpmn:outgoing>
10     </bpmn:receiveTask>
11     <bpmn:endEvent id="EndEvent_02vkobe">
12       <bpmn:incoming>SequenceFlow_0o2ukb9</bpmn:incoming>
13       <bpmn:errorEventDefinition id="ErrorEventDefinition_05rpxbj" errorRef="Error_1d6c5q3" />
14     </bpmn:endEvent>
15     <bpmn:boundaryEvent id="BoundaryEvent_1f4g2g1" name="Timeout" attachedToRef="ReceiveTask_0otx1r1">
16       <bpmn:outgoing>SequenceFlow_0o2ukb9</bpmn:outgoing>
17       <bpmn:timerEventDefinition id="TimerEventDefinition_01na1b7">
18         <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT5H</bpmn:timeDuration>
19       </bpmn:timerEventDefinition>
20     </bpmn:boundaryEvent>
21     <bpmn:sequenceFlow id="SequenceFlow_01wirq3" sourceRef="StartEvent_1m5641e" targetRef="Task_01gqeuu" />
22     <bpmn:sequenceFlow id="SequenceFlow_0q6aqsk" sourceRef="Task_01gqeuu" targetRef="Task_16o0qkj" />
23     <bpmn:sequenceFlow id="SequenceFlow_14d89qf" sourceRef="Task_16o0qkj" targetRef="ReceiveTask_0otx1r1" />
24     <bpmn:sequenceFlow id="SequenceFlow_0o2ukb9" sourceRef="BoundaryEvent_1f4g2g1" targetRef="EndEvent_02vkobe" />
25     <bpmn:exclusiveGateway id="ExclusiveGateway_1mxv8h6" name="Child Request Status" default="SequenceFlow_12rysg7">
26       <bpmn:incoming>SequenceFlow_1ufwh0a</bpmn:incoming>
27       <bpmn:outgoing>SequenceFlow_0v4loyx</bpmn:outgoing>
28       <bpmn:outgoing>SequenceFlow_12rysg7</bpmn:outgoing>
29     </bpmn:exclusiveGateway>
30     <bpmn:endEvent id="EndEvent_0fh7ikt">
31       <bpmn:incoming>SequenceFlow_0v4loyx</bpmn:incoming>
32     </bpmn:endEvent>
33     <bpmn:sequenceFlow id="SequenceFlow_0v4loyx" name="Completed" sourceRef="ExclusiveGateway_1mxv8h6" targetRef="EndEvent_0fh7ikt">
34       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${execution.getVariable("CHILD_SVC_REQ_STATUS")=="COMPLETED"}</bpmn:conditionExpression>
35     </bpmn:sequenceFlow>
36     <bpmn:sequenceFlow id="SequenceFlow_12rysg7" name="Failed" sourceRef="ExclusiveGateway_1mxv8h6" targetRef="Task_073m8fr" />
37     <bpmn:sequenceFlow id="SequenceFlow_1ufwh0a" sourceRef="ReceiveTask_0otx1r1" targetRef="ExclusiveGateway_1mxv8h6" />
38     <bpmn:serviceTask id="Task_01gqeuu" name="Build Delete Request" camunda:expression="${DeleteChildServiceBB.buildRequest(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
39       <bpmn:incoming>SequenceFlow_01wirq3</bpmn:incoming>
40       <bpmn:outgoing>SequenceFlow_0q6aqsk</bpmn:outgoing>
41     </bpmn:serviceTask>
42     <bpmn:serviceTask id="Task_16o0qkj" name="Send Request" camunda:expression="${DeleteChildServiceBB.sendRequest(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
43       <bpmn:incoming>SequenceFlow_0q6aqsk</bpmn:incoming>
44       <bpmn:outgoing>SequenceFlow_14d89qf</bpmn:outgoing>
45     </bpmn:serviceTask>
46     <bpmn:serviceTask id="Task_073m8fr" name="Handle Failure" camunda:expression="${DeleteChildServiceBB.handleFailure(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
47       <bpmn:incoming>SequenceFlow_12rysg7</bpmn:incoming>
48     </bpmn:serviceTask>
49   </bpmn:process>
50   <bpmn:error id="Error_1d6c5q3" name="MSO Workflow Exception" errorCode="MSOWorkflowException" camunda:errorMessage="Child service deletion timeout reached" />
51   <bpmn:message id="Message_0xg6jua" name="ChildServiceRequest" />
52   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
53     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DeleteChildServiceBB">
54       <bpmndi:BPMNEdge id="SequenceFlow_1ufwh0a_di" bpmnElement="SequenceFlow_1ufwh0a">
55         <di:waypoint x="760" y="120" />
56         <di:waypoint x="885" y="120" />
57       </bpmndi:BPMNEdge>
58       <bpmndi:BPMNEdge id="SequenceFlow_12rysg7_di" bpmnElement="SequenceFlow_12rysg7">
59         <di:waypoint x="910" y="145" />
60         <di:waypoint x="910" y="230" />
61         <bpmndi:BPMNLabel>
62           <dc:Bounds x="925" y="173" width="30" height="14" />
63         </bpmndi:BPMNLabel>
64       </bpmndi:BPMNEdge>
65       <bpmndi:BPMNEdge id="SequenceFlow_0v4loyx_di" bpmnElement="SequenceFlow_0v4loyx">
66         <di:waypoint x="935" y="120" />
67         <di:waypoint x="1242" y="120" />
68         <bpmndi:BPMNLabel>
69           <dc:Bounds x="981" y="102" width="54" height="14" />
70         </bpmndi:BPMNLabel>
71       </bpmndi:BPMNEdge>
72       <bpmndi:BPMNEdge id="SequenceFlow_0o2ukb9_di" bpmnElement="SequenceFlow_0o2ukb9">
73         <di:waypoint x="740" y="178" />
74         <di:waypoint x="740" y="252" />
75       </bpmndi:BPMNEdge>
76       <bpmndi:BPMNEdge id="SequenceFlow_14d89qf_di" bpmnElement="SequenceFlow_14d89qf">
77         <di:waypoint x="580" y="120" />
78         <di:waypoint x="660" y="120" />
79       </bpmndi:BPMNEdge>
80       <bpmndi:BPMNEdge id="SequenceFlow_0q6aqsk_di" bpmnElement="SequenceFlow_0q6aqsk">
81         <di:waypoint x="390" y="120" />
82         <di:waypoint x="480" y="120" />
83       </bpmndi:BPMNEdge>
84       <bpmndi:BPMNEdge id="SequenceFlow_01wirq3_di" bpmnElement="SequenceFlow_01wirq3">
85         <di:waypoint x="188" y="120" />
86         <di:waypoint x="290" y="120" />
87       </bpmndi:BPMNEdge>
88       <bpmndi:BPMNShape id="StartEvent_1m5641e_di" bpmnElement="StartEvent_1m5641e">
89         <dc:Bounds x="152" y="102" width="36" height="36" />
90       </bpmndi:BPMNShape>
91       <bpmndi:BPMNShape id="ReceiveTask_0otx1r1_di" bpmnElement="ReceiveTask_0otx1r1">
92         <dc:Bounds x="660" y="80" width="100" height="80" />
93       </bpmndi:BPMNShape>
94       <bpmndi:BPMNShape id="EndEvent_02vkobe_di" bpmnElement="EndEvent_02vkobe">
95         <dc:Bounds x="722" y="252" width="36" height="36" />
96       </bpmndi:BPMNShape>
97       <bpmndi:BPMNShape id="ExclusiveGateway_1mxv8h6_di" bpmnElement="ExclusiveGateway_1mxv8h6" isMarkerVisible="true">
98         <dc:Bounds x="885" y="95" width="50" height="50" />
99         <bpmndi:BPMNLabel>
100           <dc:Bounds x="875" y="65" width="70" height="27" />
101         </bpmndi:BPMNLabel>
102       </bpmndi:BPMNShape>
103       <bpmndi:BPMNShape id="EndEvent_0fh7ikt_di" bpmnElement="EndEvent_0fh7ikt">
104         <dc:Bounds x="1242" y="102" width="36" height="36" />
105       </bpmndi:BPMNShape>
106       <bpmndi:BPMNShape id="ServiceTask_0aqgcg6_di" bpmnElement="Task_01gqeuu">
107         <dc:Bounds x="290" y="80" width="100" height="80" />
108       </bpmndi:BPMNShape>
109       <bpmndi:BPMNShape id="ServiceTask_0o8psus_di" bpmnElement="Task_16o0qkj">
110         <dc:Bounds x="480" y="80" width="100" height="80" />
111       </bpmndi:BPMNShape>
112       <bpmndi:BPMNShape id="ServiceTask_0hkopiv_di" bpmnElement="Task_073m8fr">
113         <dc:Bounds x="860" y="230" width="100" height="80" />
114       </bpmndi:BPMNShape>
115       <bpmndi:BPMNShape id="BoundaryEvent_1f4g2g1_di" bpmnElement="BoundaryEvent_1f4g2g1">
116         <dc:Bounds x="722" y="142" width="36" height="36" />
117         <bpmndi:BPMNLabel>
118           <dc:Bounds x="760" y="173" width="40" height="14" />
119         </bpmndi:BPMNLabel>
120       </bpmndi:BPMNShape>
121     </bpmndi:BPMNPlane>
122   </bpmndi:BPMNDiagram>
123 </bpmn:definitions>