cfa55d2101238372dc204f586c087027fc3c0be2
[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="3.6.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:task id="Task_1gohsu4" name="Update AAI">
31       <bpmn:incoming>SequenceFlow_0v4loyx</bpmn:incoming>
32       <bpmn:outgoing>SequenceFlow_096kfnj</bpmn:outgoing>
33     </bpmn:task>
34     <bpmn:endEvent id="EndEvent_0fh7ikt">
35       <bpmn:incoming>SequenceFlow_096kfnj</bpmn:incoming>
36     </bpmn:endEvent>
37     <bpmn:sequenceFlow id="SequenceFlow_0v4loyx" name="Completed" sourceRef="ExclusiveGateway_1mxv8h6" targetRef="Task_1gohsu4">
38       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${execution.getVariable("CHILD_SVC_REQ_STATUS")=="COMPLETED"}</bpmn:conditionExpression>
39     </bpmn:sequenceFlow>
40     <bpmn:sequenceFlow id="SequenceFlow_12rysg7" name="Failed" sourceRef="ExclusiveGateway_1mxv8h6" targetRef="Task_073m8fr" />
41     <bpmn:sequenceFlow id="SequenceFlow_096kfnj" sourceRef="Task_1gohsu4" targetRef="EndEvent_0fh7ikt" />
42     <bpmn:sequenceFlow id="SequenceFlow_1ufwh0a" sourceRef="ReceiveTask_0otx1r1" targetRef="ExclusiveGateway_1mxv8h6" />
43     <bpmn:serviceTask id="Task_01gqeuu" name="Build Delete Request" camunda:expression="${DeleteChildServiceBB.buildRequest(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
44       <bpmn:incoming>SequenceFlow_01wirq3</bpmn:incoming>
45       <bpmn:outgoing>SequenceFlow_0q6aqsk</bpmn:outgoing>
46     </bpmn:serviceTask>
47     <bpmn:serviceTask id="Task_16o0qkj" name="Send Request" camunda:expression="${DeleteChildServiceBB.sendRequest(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
48       <bpmn:incoming>SequenceFlow_0q6aqsk</bpmn:incoming>
49       <bpmn:outgoing>SequenceFlow_14d89qf</bpmn:outgoing>
50     </bpmn:serviceTask>
51     <bpmn:serviceTask id="Task_073m8fr" name="Handle Failure" camunda:expression="${DeleteChildServiceBB.handleFailure(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
52       <bpmn:incoming>SequenceFlow_12rysg7</bpmn:incoming>
53     </bpmn:serviceTask>
54   </bpmn:process>
55   <bpmn:error id="Error_1d6c5q3" name="MSO Workflow Exception" errorCode="MSOWorkflowException" camunda:errorMessage="Child service deletion timeout reached" />
56   <bpmn:message id="Message_0xg6jua" name="ChildServiceRequest" />
57   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
58     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DeleteChildServiceBB">
59       <bpmndi:BPMNShape id="StartEvent_1m5641e_di" bpmnElement="StartEvent_1m5641e">
60         <dc:Bounds x="152" y="102" width="36" height="36" />
61       </bpmndi:BPMNShape>
62       <bpmndi:BPMNShape id="ReceiveTask_0otx1r1_di" bpmnElement="ReceiveTask_0otx1r1">
63         <dc:Bounds x="660" y="80" width="100" height="80" />
64       </bpmndi:BPMNShape>
65       <bpmndi:BPMNShape id="EndEvent_02vkobe_di" bpmnElement="EndEvent_02vkobe">
66         <dc:Bounds x="722" y="252" width="36" height="36" />
67       </bpmndi:BPMNShape>
68       <bpmndi:BPMNShape id="BoundaryEvent_1f4g2g1_di" bpmnElement="BoundaryEvent_1f4g2g1">
69         <dc:Bounds x="722" y="142" width="36" height="36" />
70         <bpmndi:BPMNLabel>
71           <dc:Bounds x="760" y="173" width="40" height="14" />
72         </bpmndi:BPMNLabel>
73       </bpmndi:BPMNShape>
74       <bpmndi:BPMNEdge id="SequenceFlow_01wirq3_di" bpmnElement="SequenceFlow_01wirq3">
75         <di:waypoint x="188" y="120" />
76         <di:waypoint x="290" y="120" />
77       </bpmndi:BPMNEdge>
78       <bpmndi:BPMNEdge id="SequenceFlow_0q6aqsk_di" bpmnElement="SequenceFlow_0q6aqsk">
79         <di:waypoint x="390" y="120" />
80         <di:waypoint x="480" y="120" />
81       </bpmndi:BPMNEdge>
82       <bpmndi:BPMNEdge id="SequenceFlow_14d89qf_di" bpmnElement="SequenceFlow_14d89qf">
83         <di:waypoint x="580" y="120" />
84         <di:waypoint x="660" y="120" />
85       </bpmndi:BPMNEdge>
86       <bpmndi:BPMNEdge id="SequenceFlow_0o2ukb9_di" bpmnElement="SequenceFlow_0o2ukb9">
87         <di:waypoint x="740" y="178" />
88         <di:waypoint x="740" y="252" />
89       </bpmndi:BPMNEdge>
90       <bpmndi:BPMNShape id="ExclusiveGateway_1mxv8h6_di" bpmnElement="ExclusiveGateway_1mxv8h6" isMarkerVisible="true">
91         <dc:Bounds x="885" y="95" width="50" height="50" />
92         <bpmndi:BPMNLabel>
93           <dc:Bounds x="875" y="65" width="70" height="27" />
94         </bpmndi:BPMNLabel>
95       </bpmndi:BPMNShape>
96       <bpmndi:BPMNShape id="Task_1gohsu4_di" bpmnElement="Task_1gohsu4">
97         <dc:Bounds x="1050" y="80" width="100" height="80" />
98       </bpmndi:BPMNShape>
99       <bpmndi:BPMNShape id="EndEvent_0fh7ikt_di" bpmnElement="EndEvent_0fh7ikt">
100         <dc:Bounds x="1242" y="102" width="36" height="36" />
101       </bpmndi:BPMNShape>
102       <bpmndi:BPMNEdge id="SequenceFlow_0v4loyx_di" bpmnElement="SequenceFlow_0v4loyx">
103         <di:waypoint x="935" y="120" />
104         <di:waypoint x="1050" y="120" />
105         <bpmndi:BPMNLabel>
106           <dc:Bounds x="966" y="102" width="54" height="14" />
107         </bpmndi:BPMNLabel>
108       </bpmndi:BPMNEdge>
109       <bpmndi:BPMNEdge id="SequenceFlow_12rysg7_di" bpmnElement="SequenceFlow_12rysg7">
110         <di:waypoint x="910" y="145" />
111         <di:waypoint x="910" y="230" />
112         <bpmndi:BPMNLabel>
113           <dc:Bounds x="925" y="173" width="30" height="14" />
114         </bpmndi:BPMNLabel>
115       </bpmndi:BPMNEdge>
116       <bpmndi:BPMNEdge id="SequenceFlow_096kfnj_di" bpmnElement="SequenceFlow_096kfnj">
117         <di:waypoint x="1150" y="120" />
118         <di:waypoint x="1242" y="120" />
119       </bpmndi:BPMNEdge>
120       <bpmndi:BPMNEdge id="SequenceFlow_1ufwh0a_di" bpmnElement="SequenceFlow_1ufwh0a">
121         <di:waypoint x="760" y="120" />
122         <di:waypoint x="885" y="120" />
123       </bpmndi:BPMNEdge>
124       <bpmndi:BPMNShape id="ServiceTask_0aqgcg6_di" bpmnElement="Task_01gqeuu">
125         <dc:Bounds x="290" y="80" width="100" height="80" />
126       </bpmndi:BPMNShape>
127       <bpmndi:BPMNShape id="ServiceTask_0o8psus_di" bpmnElement="Task_16o0qkj">
128         <dc:Bounds x="480" y="80" width="100" height="80" />
129       </bpmndi:BPMNShape>
130       <bpmndi:BPMNShape id="ServiceTask_0hkopiv_di" bpmnElement="Task_073m8fr">
131         <dc:Bounds x="860" y="230" width="100" height="80" />
132       </bpmndi:BPMNShape>
133     </bpmndi:BPMNPlane>
134   </bpmndi:BPMNDiagram>
135 </bpmn:definitions>