Merge "Query param to pull back nested stack information"
[so.git] / bpmn / so-bpmn-building-blocks / src / main / resources / subprocess / BuildingBlock / SDNCHandler.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:di="http://www.omg.org/spec/DD/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" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="2.0.3">
3   <bpmn:process id="SDNCHandler" name="SDNC" isExecutable="true">
4     <bpmn:startEvent id="SDNC_Start">
5       <bpmn:outgoing>SequenceFlow_1n0j3hz</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:endEvent id="SDNC_End">
8       <bpmn:incoming>SequenceFlow_0i4u8g4</bpmn:incoming>
9       <bpmn:incoming>SequenceFlow_0puiqga</bpmn:incoming>
10     </bpmn:endEvent>
11     <bpmn:serviceTask id="Call_SDNC" name="Call SDNC" camunda:expression="${SDNCRequestTasks.callSDNC(execution)}">
12       <bpmn:incoming>SequenceFlow_0flbj8a</bpmn:incoming>
13       <bpmn:outgoing>SequenceFlow_07vnhri</bpmn:outgoing>
14     </bpmn:serviceTask>
15     <bpmn:subProcess id="SubProcess_0y8yozw" name="Wait for Callback" camunda:asyncAfter="true" camunda:exclusive="false">
16       <bpmn:incoming>SequenceFlow_0rh24pq</bpmn:incoming>
17       <bpmn:incoming>SequenceFlow_0yve6l6</bpmn:incoming>
18       <bpmn:outgoing>SequenceFlow_1ecej8g</bpmn:outgoing>
19       <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_0a9exm4" name="Catch Event" camunda:asyncBefore="true" camunda:asyncAfter="true">
20         <bpmn:incoming>SequenceFlow_1qxm8ot</bpmn:incoming>
21         <bpmn:outgoing>SequenceFlow_05eggbt</bpmn:outgoing>
22         <bpmn:messageEventDefinition messageRef="Message_06oc4iz" />
23       </bpmn:intermediateCatchEvent>
24       <bpmn:startEvent id="Start_Async">
25         <bpmn:outgoing>SequenceFlow_1qxm8ot</bpmn:outgoing>
26       </bpmn:startEvent>
27       <bpmn:endEvent id="EndEvent_1qoir9i">
28         <bpmn:incoming>SequenceFlow_0oh3ye4</bpmn:incoming>
29       </bpmn:endEvent>
30       <bpmn:sequenceFlow id="SequenceFlow_1qxm8ot" name="" sourceRef="Start_Async" targetRef="IntermediateCatchEvent_0a9exm4" />
31       <bpmn:sequenceFlow id="SequenceFlow_05eggbt" name="" sourceRef="IntermediateCatchEvent_0a9exm4" targetRef="Task_14bzc51" />
32       <bpmn:sequenceFlow id="SequenceFlow_0oh3ye4" sourceRef="Task_14bzc51" targetRef="EndEvent_1qoir9i" />
33       <bpmn:serviceTask id="Task_14bzc51" name="Process Callback" camunda:expression="${SDNCRequestTasks.processCallback(execution)}">
34         <bpmn:incoming>SequenceFlow_05eggbt</bpmn:incoming>
35         <bpmn:outgoing>SequenceFlow_0oh3ye4</bpmn:outgoing>
36       </bpmn:serviceTask>
37     </bpmn:subProcess>
38     <bpmn:boundaryEvent id="BoundaryEvent_1quvxva" name="Timeout" attachedToRef="SubProcess_0y8yozw">
39       <bpmn:outgoing>SequenceFlow_1yifu46</bpmn:outgoing>
40       <bpmn:timerEventDefinition>
41         <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">${execution.getVariable("sdncTimeout")}</bpmn:timeDuration>
42       </bpmn:timerEventDefinition>
43     </bpmn:boundaryEvent>
44     <bpmn:sequenceFlow id="SequenceFlow_1ecej8g" sourceRef="SubProcess_0y8yozw" targetRef="ExclusiveGateway_09ehhaf" />
45     <bpmn:exclusiveGateway id="ExclusiveGateway_09ehhaf">
46       <bpmn:incoming>SequenceFlow_1ecej8g</bpmn:incoming>
47       <bpmn:outgoing>SequenceFlow_0rh24pq</bpmn:outgoing>
48       <bpmn:outgoing>SequenceFlow_0i4u8g4</bpmn:outgoing>
49     </bpmn:exclusiveGateway>
50     <bpmn:sequenceFlow id="SequenceFlow_0rh24pq" name="Final Ack = N" sourceRef="ExclusiveGateway_09ehhaf" targetRef="SubProcess_0y8yozw">
51       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${execution.getVariable("isCallbackCompleted") == false}</bpmn:conditionExpression>
52     </bpmn:sequenceFlow>
53     <bpmn:sequenceFlow id="SequenceFlow_1yifu46" sourceRef="BoundaryEvent_1quvxva" targetRef="Task_1un0flc" />
54     <bpmn:sequenceFlow id="SequenceFlow_1n0j3hz" sourceRef="SDNC_Start" targetRef="SNDC_SetupCallback" />
55     <bpmn:exclusiveGateway id="isAsync_Gateway" default="SequenceFlow_0yve6l6">
56       <bpmn:incoming>SequenceFlow_07vnhri</bpmn:incoming>
57       <bpmn:outgoing>SequenceFlow_0yve6l6</bpmn:outgoing>
58       <bpmn:outgoing>SequenceFlow_0puiqga</bpmn:outgoing>
59     </bpmn:exclusiveGateway>
60     <bpmn:sequenceFlow id="SequenceFlow_0yve6l6" name="Final Ack = N" sourceRef="isAsync_Gateway" targetRef="SubProcess_0y8yozw" />
61     <bpmn:sequenceFlow id="SequenceFlow_07vnhri" sourceRef="Call_SDNC" targetRef="isAsync_Gateway" />
62     <bpmn:sequenceFlow id="SequenceFlow_0flbj8a" sourceRef="SNDC_SetupCallback" targetRef="Call_SDNC" />
63     <bpmn:sequenceFlow id="SequenceFlow_0i4u8g4" name="Final Ack = Y" sourceRef="ExclusiveGateway_09ehhaf" targetRef="SDNC_End" />
64     <bpmn:sequenceFlow id="SequenceFlow_0puiqga" name="Final Ack = Y" sourceRef="isAsync_Gateway" targetRef="SDNC_End">
65       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${execution.getVariable("isSDNCCompleted")}</bpmn:conditionExpression>
66     </bpmn:sequenceFlow>
67     <bpmn:serviceTask id="SNDC_SetupCallback" name="Setup Callback Variables" camunda:expression="${SDNCRequestTasks.createCorrelationVariables(execution)}">
68       <bpmn:incoming>SequenceFlow_1n0j3hz</bpmn:incoming>
69       <bpmn:outgoing>SequenceFlow_0flbj8a</bpmn:outgoing>
70     </bpmn:serviceTask>
71     <bpmn:serviceTask id="Task_1un0flc" name="Handle Timeout" camunda:expression="${SDNCRequestTasks.handleTimeOutException(execution)}">
72       <bpmn:incoming>SequenceFlow_1yifu46</bpmn:incoming>
73     </bpmn:serviceTask>
74   </bpmn:process>
75   <bpmn:message id="Message_06oc4iz" name="WorkflowMessage" />
76   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
77     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="SDNCHandler">
78       <bpmndi:BPMNShape id="StartEvent_0kxwniy_di" bpmnElement="SDNC_Start">
79         <dc:Bounds x="-267" y="134" width="36" height="36" />
80         <bpmndi:BPMNLabel>
81           <dc:Bounds x="-294" y="170" width="90" height="12" />
82         </bpmndi:BPMNLabel>
83       </bpmndi:BPMNShape>
84       <bpmndi:BPMNShape id="EndEvent_0qdq7wj_di" bpmnElement="SDNC_End">
85         <dc:Bounds x="780" y="174" width="36" height="36" />
86         <bpmndi:BPMNLabel>
87           <dc:Bounds x="753" y="214" width="90" height="12" />
88         </bpmndi:BPMNLabel>
89       </bpmndi:BPMNShape>
90       <bpmndi:BPMNShape id="ServiceTask_1i5x1m6_di" bpmnElement="Call_SDNC">
91         <dc:Bounds x="15" y="112" width="100" height="80" />
92       </bpmndi:BPMNShape>
93       <bpmndi:BPMNShape id="SubProcess_0y8yozw_di" bpmnElement="SubProcess_0y8yozw" isExpanded="true">
94         <dc:Bounds x="278" y="-144" width="340" height="153" />
95       </bpmndi:BPMNShape>
96       <bpmndi:BPMNShape id="BoundaryEvent_1quvxva_di" bpmnElement="BoundaryEvent_1quvxva">
97         <dc:Bounds x="600" y="-162" width="36" height="36" />
98         <bpmndi:BPMNLabel>
99           <dc:Bounds x="669" y="-169" width="40" height="13" />
100         </bpmndi:BPMNLabel>
101       </bpmndi:BPMNShape>
102       <bpmndi:BPMNShape id="IntermediateCatchEvent_0a9exm4_di" bpmnElement="IntermediateCatchEvent_0a9exm4">
103         <dc:Bounds x="376" y="-90" width="36" height="36" />
104         <bpmndi:BPMNLabel>
105           <dc:Bounds x="364" y="-49" width="60" height="13" />
106         </bpmndi:BPMNLabel>
107       </bpmndi:BPMNShape>
108       <bpmndi:BPMNShape id="StartEvent_0z0iy13_di" bpmnElement="Start_Async">
109         <dc:Bounds x="311" y="-90" width="36" height="36" />
110         <bpmndi:BPMNLabel>
111           <dc:Bounds x="194" y="-49" width="90" height="13" />
112         </bpmndi:BPMNLabel>
113       </bpmndi:BPMNShape>
114       <bpmndi:BPMNShape id="EndEvent_1qoir9i_di" bpmnElement="EndEvent_1qoir9i">
115         <dc:Bounds x="562" y="-90" width="36" height="36" />
116         <bpmndi:BPMNLabel>
117           <dc:Bounds x="445" y="-49" width="90" height="13" />
118         </bpmndi:BPMNLabel>
119       </bpmndi:BPMNShape>
120       <bpmndi:BPMNEdge id="SequenceFlow_1qxm8ot_di" bpmnElement="SequenceFlow_1qxm8ot">
121         <di:waypoint x="347" y="-72" />
122         <di:waypoint x="376" y="-72" />
123         <bpmndi:BPMNLabel>
124           <dc:Bounds x="316.5" y="-93.5" width="90" height="13" />
125         </bpmndi:BPMNLabel>
126       </bpmndi:BPMNEdge>
127       <bpmndi:BPMNEdge id="SequenceFlow_05eggbt_di" bpmnElement="SequenceFlow_05eggbt">
128         <di:waypoint x="412" y="-72" />
129         <di:waypoint x="438" y="-72" />
130         <bpmndi:BPMNLabel>
131           <dc:Bounds x="380" y="-93.5" width="90" height="13" />
132         </bpmndi:BPMNLabel>
133       </bpmndi:BPMNEdge>
134       <bpmndi:BPMNEdge id="SequenceFlow_1ecej8g_di" bpmnElement="SequenceFlow_1ecej8g">
135         <di:waypoint x="618" y="-67" />
136         <di:waypoint x="798" y="-67" />
137         <di:waypoint x="798" y="28" />
138         <bpmndi:BPMNLabel>
139           <dc:Bounds x="663" y="-88.5" width="90" height="13" />
140         </bpmndi:BPMNLabel>
141       </bpmndi:BPMNEdge>
142       <bpmndi:BPMNShape id="ExclusiveGateway_09ehhaf_di" bpmnElement="ExclusiveGateway_09ehhaf" isMarkerVisible="true">
143         <dc:Bounds x="773" y="28" width="50" height="50" />
144         <bpmndi:BPMNLabel>
145           <dc:Bounds x="753" y="81" width="90" height="13" />
146         </bpmndi:BPMNLabel>
147       </bpmndi:BPMNShape>
148       <bpmndi:BPMNEdge id="SequenceFlow_0rh24pq_di" bpmnElement="SequenceFlow_0rh24pq">
149         <di:waypoint x="773" y="53" />
150         <di:waypoint x="449" y="53" />
151         <di:waypoint x="449" y="9" />
152         <bpmndi:BPMNLabel>
153           <dc:Bounds x="579.9877300613497" y="32" width="66" height="13" />
154         </bpmndi:BPMNLabel>
155       </bpmndi:BPMNEdge>
156       <bpmndi:BPMNEdge id="SequenceFlow_1yifu46_di" bpmnElement="SequenceFlow_1yifu46">
157         <di:waypoint x="636" y="-144" />
158         <di:waypoint x="748" y="-145" />
159         <bpmndi:BPMNLabel>
160           <dc:Bounds x="647" y="-166" width="90" height="13" />
161         </bpmndi:BPMNLabel>
162       </bpmndi:BPMNEdge>
163       <bpmndi:BPMNEdge id="SequenceFlow_1n0j3hz_di" bpmnElement="SequenceFlow_1n0j3hz">
164         <di:waypoint x="-231" y="152" />
165         <di:waypoint x="-171" y="152" />
166         <bpmndi:BPMNLabel>
167           <dc:Bounds x="-201" y="130.5" width="0" height="13" />
168         </bpmndi:BPMNLabel>
169       </bpmndi:BPMNEdge>
170       <bpmndi:BPMNShape id="ExclusiveGateway_0gyjh0m_di" bpmnElement="isAsync_Gateway" isMarkerVisible="true">
171         <dc:Bounds x="228.4153846153846" y="127" width="50" height="50" />
172         <bpmndi:BPMNLabel>
173           <dc:Bounds x="253.4153846153846" y="180" width="0" height="13" />
174         </bpmndi:BPMNLabel>
175       </bpmndi:BPMNShape>
176       <bpmndi:BPMNEdge id="SequenceFlow_0yve6l6_di" bpmnElement="SequenceFlow_0yve6l6">
177         <di:waypoint x="253" y="127" />
178         <di:waypoint x="253" y="92" />
179         <di:waypoint x="253" y="92" />
180         <di:waypoint x="253" y="-67" />
181         <di:waypoint x="278" y="-67" />
182         <bpmndi:BPMNLabel>
183           <dc:Bounds x="263" y="57" width="65" height="12" />
184         </bpmndi:BPMNLabel>
185       </bpmndi:BPMNEdge>
186       <bpmndi:BPMNEdge id="SequenceFlow_07vnhri_di" bpmnElement="SequenceFlow_07vnhri">
187         <di:waypoint x="115" y="152" />
188         <di:waypoint x="228" y="152" />
189         <bpmndi:BPMNLabel>
190           <dc:Bounds x="171.5" y="130" width="0" height="13" />
191         </bpmndi:BPMNLabel>
192       </bpmndi:BPMNEdge>
193       <bpmndi:BPMNEdge id="SequenceFlow_0flbj8a_di" bpmnElement="SequenceFlow_0flbj8a">
194         <di:waypoint x="-71" y="152" />
195         <di:waypoint x="15" y="152" />
196         <bpmndi:BPMNLabel>
197           <dc:Bounds x="-28" y="130.5" width="0" height="13" />
198         </bpmndi:BPMNLabel>
199       </bpmndi:BPMNEdge>
200       <bpmndi:BPMNEdge id="SequenceFlow_0i4u8g4_di" bpmnElement="SequenceFlow_0i4u8g4">
201         <di:waypoint x="798" y="78" />
202         <di:waypoint x="798" y="174" />
203         <bpmndi:BPMNLabel>
204           <dc:Bounds x="809" y="119" width="66" height="13" />
205         </bpmndi:BPMNLabel>
206       </bpmndi:BPMNEdge>
207       <bpmndi:BPMNEdge id="SequenceFlow_0puiqga_di" bpmnElement="SequenceFlow_0puiqga">
208         <di:waypoint x="253" y="177" />
209         <di:waypoint x="253" y="192" />
210         <di:waypoint x="780" y="192" />
211         <bpmndi:BPMNLabel>
212           <dc:Bounds x="310" y="161" width="66" height="13" />
213         </bpmndi:BPMNLabel>
214       </bpmndi:BPMNEdge>
215       <bpmndi:BPMNEdge id="SequenceFlow_0oh3ye4_di" bpmnElement="SequenceFlow_0oh3ye4">
216         <di:waypoint x="538" y="-72" />
217         <di:waypoint x="562" y="-72" />
218         <bpmndi:BPMNLabel>
219           <dc:Bounds x="550" y="-93.5" width="0" height="13" />
220         </bpmndi:BPMNLabel>
221       </bpmndi:BPMNEdge>
222       <bpmndi:BPMNShape id="ServiceTask_034ehsc_di" bpmnElement="SNDC_SetupCallback">
223         <dc:Bounds x="-171" y="112" width="100" height="80" />
224       </bpmndi:BPMNShape>
225       <bpmndi:BPMNShape id="ServiceTask_0ribmhb_di" bpmnElement="Task_14bzc51">
226         <dc:Bounds x="438" y="-112" width="100" height="80" />
227       </bpmndi:BPMNShape>
228       <bpmndi:BPMNShape id="ServiceTask_08b89dm_di" bpmnElement="Task_1un0flc">
229         <dc:Bounds x="748" y="-185" width="100" height="80" />
230       </bpmndi:BPMNShape>
231     </bpmndi:BPMNPlane>
232   </bpmndi:BPMNDiagram>
233 </bpmn:definitions>