-
Notifications
You must be signed in to change notification settings - Fork 5
/
sample-bpmn.xml
303 lines (303 loc) · 15.1 KB
/
sample-bpmn.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
<bpmn:collaboration id="bot">
<bpmn:documentation>Não entendi!</bpmn:documentation>
<bpmn:participant id="usuario" name="Usuário" processRef="Process_1" />
<bpmn:participant id="robo" name="Robô" processRef="Process_0cxc7ft" />
<bpmn:messageFlow id="Flow_1l9nvfc" sourceRef="resposta_posso_ajudar" targetRef="decide_pergunta" />
<bpmn:messageFlow id="Flow_18ama6y" sourceRef="possui_religiao" targetRef="resposta_possui_religiao" />
<bpmn:messageFlow id="Flow_1lam86r" sourceRef="torce_time" targetRef="resposta_torce_time" />
<bpmn:messageFlow id="Flow_0ylpexa" sourceRef="sugere_time" targetRef="resposta_time" />
<bpmn:messageFlow id="Flow_0xuixe1" sourceRef="resposta_torce_time" targetRef="decide_time" />
<bpmn:messageFlow id="Flow_1aajalq" sourceRef="nao_sugere_time" targetRef="responde_nao_sugere_time" />
<bpmn:messageFlow id="Flow_1he57ct" sourceRef="cumprimento" targetRef="resposta_cumprimento" />
</bpmn:collaboration>
<bpmn:process id="Process_1" isExecutable="false">
<bpmn:laneSet id="LaneSet_1p326v3">
<bpmn:lane id="Lane_0haxa3w">
<bpmn:flowNodeRef>StartEvent_1</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_0zjn7oy</bpmn:flowNodeRef>
<bpmn:flowNodeRef>decide_time</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_04c1br3</bpmn:flowNodeRef>
<bpmn:flowNodeRef>decide_pergunta</bpmn:flowNodeRef>
<bpmn:flowNodeRef>cumprimento</bpmn:flowNodeRef>
<bpmn:flowNodeRef>possui_religiao</bpmn:flowNodeRef>
<bpmn:flowNodeRef>torce_time</bpmn:flowNodeRef>
<bpmn:flowNodeRef>sugere_time</bpmn:flowNodeRef>
<bpmn:flowNodeRef>nao_sugere_time</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:sequenceFlow id="caminho_cumprimento" sourceRef="StartEvent_1" targetRef="cumprimento" />
<bpmn:sequenceFlow id="Flow_0nj19za" sourceRef="decide_pergunta" targetRef="Gateway_0zjn7oy" />
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>caminho_cumprimento</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="caminho_futebol" name="Futebol" sourceRef="Gateway_0zjn7oy" targetRef="torce_time" />
<bpmn:sequenceFlow id="caminho_religiao" name="Religião" sourceRef="Gateway_0zjn7oy" targetRef="possui_religiao" />
<bpmn:exclusiveGateway id="Gateway_0zjn7oy" name="Questiona">
<bpmn:incoming>Flow_0nj19za</bpmn:incoming>
<bpmn:outgoing>caminho_futebol</bpmn:outgoing>
<bpmn:outgoing>caminho_religiao</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:task id="decide_time" name="Decide se sugere um time">
<bpmn:outgoing>Flow_1yi2y1p</bpmn:outgoing>
</bpmn:task>
<bpmn:exclusiveGateway id="Gateway_04c1br3" name="Sugere time?">
<bpmn:incoming>Flow_1yi2y1p</bpmn:incoming>
<bpmn:outgoing>caminho_informa_time</bpmn:outgoing>
<bpmn:outgoing>caminho_nao_informa_time</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_1yi2y1p" sourceRef="decide_time" targetRef="Gateway_04c1br3" />
<bpmn:sequenceFlow id="caminho_informa_time" name="Informa time" sourceRef="Gateway_04c1br3" targetRef="sugere_time" />
<bpmn:sequenceFlow id="caminho_nao_informa_time" name="Não informa time" sourceRef="Gateway_04c1br3" targetRef="nao_sugere_time" />
<bpmn:task id="decide_pergunta" name="Decide um assunto ou pergunta">
<bpmn:outgoing>Flow_0nj19za</bpmn:outgoing>
</bpmn:task>
<bpmn:userTask id="cumprimento" name="Cumprimenta">
<bpmn:documentation>Olá
---
Oi
---
Bom dia
---
Boa tarde
---
Boa noite</bpmn:documentation>
<bpmn:incoming>caminho_cumprimento</bpmn:incoming>
</bpmn:userTask>
<bpmn:userTask id="possui_religiao" name="Questiona se possui alguma religião?">
<bpmn:documentation>Possui alguma religião?
---
Tem alguma crença?</bpmn:documentation>
<bpmn:incoming>caminho_religiao</bpmn:incoming>
</bpmn:userTask>
<bpmn:userTask id="torce_time" name="Questiona se torce para algum time de futebol?">
<bpmn:documentation>Torce para algum time de futebol?
---
Torce para qual clube?</bpmn:documentation>
<bpmn:incoming>caminho_futebol</bpmn:incoming>
</bpmn:userTask>
<bpmn:userTask id="sugere_time" name="Sugere time">
<bpmn:documentation>Palmeiras
---
Flamengo
---
Corintians</bpmn:documentation>
<bpmn:incoming>caminho_informa_time</bpmn:incoming>
</bpmn:userTask>
<bpmn:userTask id="nao_sugere_time" name="Informa não ter sugestão!">
<bpmn:documentation>Nenhuma sugestão!
---
Sem idéia!
---
Não</bpmn:documentation>
<bpmn:incoming>caminho_nao_informa_time</bpmn:incoming>
</bpmn:userTask>
</bpmn:process>
<bpmn:process id="Process_0cxc7ft" isExecutable="true">
<bpmn:endEvent id="Event_1sjrhud">
<bpmn:incoming>Flow_026rvci</bpmn:incoming>
</bpmn:endEvent>
<bpmn:endEvent id="Event_0rdml87">
<bpmn:incoming>Flow_0d0ht9u</bpmn:incoming>
</bpmn:endEvent>
<bpmn:endEvent id="Event_0hfp2o4">
<bpmn:incoming>Flow_0z5wp8r</bpmn:incoming>
</bpmn:endEvent>
<bpmn:serviceTask id="resposta_cumprimento" name="Responde o cumprimento">
<bpmn:documentation>Olá, tudo bem?</bpmn:documentation>
<bpmn:outgoing>Flow_0n9tdll</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="resposta_posso_ajudar" name="Questiona em que pode ajudar">
<bpmn:documentation>Posso ajudar?
---
Gostaria de perguntar algo?</bpmn:documentation>
<bpmn:incoming>Flow_0n9tdll</bpmn:incoming>
</bpmn:serviceTask>
<bpmn:serviceTask id="resposta_possui_religiao" name="Responde que não tem preferência">
<bpmn:documentation>Sou um robô laico!</bpmn:documentation>
<bpmn:outgoing>Flow_026rvci</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="resposta_torce_time" name="Responde que não. Mas pergunta se tem alguma sugestão!">
<bpmn:documentation>Não! Tem alguma sugestão?
---
Infelizmente não! Recomenda algum?</bpmn:documentation>
</bpmn:serviceTask>
<bpmn:serviceTask id="resposta_time" name="Responde que irá torcer, mas possui dúvidas!">
<bpmn:documentation>Não tenho certeza se é um bom time, mas darei uma chance!</bpmn:documentation>
<bpmn:outgoing>Flow_0z5wp8r</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="responde_nao_sugere_time" name="Responde que sente muito!">
<bpmn:documentation>Que pena! Já estava pensando em comprar uma camiseta!</bpmn:documentation>
<bpmn:outgoing>Flow_0d0ht9u</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_0z5wp8r" sourceRef="resposta_time" targetRef="Event_0hfp2o4" />
<bpmn:sequenceFlow id="Flow_0d0ht9u" sourceRef="responde_nao_sugere_time" targetRef="Event_0rdml87" />
<bpmn:sequenceFlow id="Flow_026rvci" sourceRef="resposta_possui_religiao" targetRef="Event_1sjrhud" />
<bpmn:sequenceFlow id="Flow_0n9tdll" sourceRef="resposta_cumprimento" targetRef="resposta_posso_ajudar" />
</bpmn:process>
<bpmn:message id="Message_0h4hz1z" />
<bpmn:message id="Message_13jfwfa" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="bot">
<bpmndi:BPMNShape id="Participant_1avt8yb_di" bpmnElement="usuario" isHorizontal="true">
<dc:Bounds x="120" y="60" width="1290" height="340" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_0haxa3w_di" bpmnElement="Lane_0haxa3w" isHorizontal="true">
<dc:Bounds x="150" y="60" width="1260" height="340" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0mbwr7o_di" bpmnElement="caminho_nao_informa_time">
<di:waypoint x="1195" y="150" />
<di:waypoint x="1290" y="150" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1201" y="132" width="84" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1bmf29e_di" bpmnElement="caminho_informa_time">
<di:waypoint x="1170" y="175" />
<di:waypoint x="1170" y="260" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1099" y="235" width="62" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1yi2y1p_di" bpmnElement="Flow_1yi2y1p">
<di:waypoint x="1090" y="150" />
<di:waypoint x="1145" y="150" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_00u0klr_di" bpmnElement="caminho_religiao">
<di:waypoint x="680" y="175" />
<di:waypoint x="680" y="260" />
<bpmndi:BPMNLabel>
<dc:Bounds x="690" y="203" width="40" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_15q66it_di" bpmnElement="caminho_futebol">
<di:waypoint x="705" y="150" />
<di:waypoint x="790" y="150" />
<bpmndi:BPMNLabel>
<dc:Bounds x="729" y="132" width="38" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0nj19za_di" bpmnElement="Flow_0nj19za">
<di:waypoint x="530" y="150" />
<di:waypoint x="655" y="150" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_15044i0_di" bpmnElement="caminho_cumprimento">
<di:waypoint x="228" y="190" />
<di:waypoint x="280" y="190" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Event_0fpoqop_di" bpmnElement="StartEvent_1">
<dc:Bounds x="192" y="172" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0zjn7oy_di" bpmnElement="Gateway_0zjn7oy" isMarkerVisible="true">
<dc:Bounds x="655" y="125" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="655" y="95" width="51" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1cinye0_di" bpmnElement="decide_time">
<dc:Bounds x="990" y="110" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_04c1br3_di" bpmnElement="Gateway_04c1br3" isMarkerVisible="true">
<dc:Bounds x="1145" y="125" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1137" y="101" width="66" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1k5lpdz_di" bpmnElement="decide_pergunta">
<dc:Bounds x="430" y="110" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_07o8swr_di" bpmnElement="cumprimento">
<dc:Bounds x="280" y="150" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1bun5q1_di" bpmnElement="possui_religiao">
<dc:Bounds x="630" y="260" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0y3jazp_di" bpmnElement="torce_time">
<dc:Bounds x="790" y="110" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1v5m4st_di" bpmnElement="sugere_time">
<dc:Bounds x="1120" y="260" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0z2nc26_di" bpmnElement="nao_sugere_time">
<dc:Bounds x="1290" y="110" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Participant_0hgaud4_di" bpmnElement="robo" isHorizontal="true">
<dc:Bounds x="120" y="430" width="1290" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0n9tdll_di" bpmnElement="Flow_0n9tdll">
<di:waypoint x="380" y="560" />
<di:waypoint x="430" y="560" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_026rvci_di" bpmnElement="Flow_026rvci">
<di:waypoint x="680" y="560" />
<di:waypoint x="680" y="602" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0d0ht9u_di" bpmnElement="Flow_0d0ht9u">
<di:waypoint x="1320" y="560" />
<di:waypoint x="1320" y="602" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0z5wp8r_di" bpmnElement="Flow_0z5wp8r">
<di:waypoint x="1170" y="560" />
<di:waypoint x="1170" y="602" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Event_1sjrhud_di" bpmnElement="Event_1sjrhud">
<dc:Bounds x="662" y="602" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0rdml87_di" bpmnElement="Event_0rdml87">
<dc:Bounds x="1302" y="602" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0hfp2o4_di" bpmnElement="Event_0hfp2o4">
<dc:Bounds x="1152" y="602" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1455zya_di" bpmnElement="resposta_cumprimento">
<dc:Bounds x="280" y="520" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_19gkz60_di" bpmnElement="resposta_posso_ajudar">
<dc:Bounds x="430" y="520" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_13et3kx_di" bpmnElement="resposta_possui_religiao">
<dc:Bounds x="630" y="480" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0sex4co_di" bpmnElement="resposta_torce_time">
<dc:Bounds x="790" y="480" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_08ua4ht_di" bpmnElement="resposta_time">
<dc:Bounds x="1120" y="480" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1uaufb7_di" bpmnElement="responde_nao_sugere_time">
<dc:Bounds x="1270" y="480" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1l9nvfc_di" bpmnElement="Flow_1l9nvfc">
<di:waypoint x="480" y="520" />
<di:waypoint x="480" y="190" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_18ama6y_di" bpmnElement="Flow_18ama6y">
<di:waypoint x="680" y="340" />
<di:waypoint x="680" y="480" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1lam86r_di" bpmnElement="Flow_1lam86r">
<di:waypoint x="840" y="190" />
<di:waypoint x="840" y="480" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ylpexa_di" bpmnElement="Flow_0ylpexa">
<di:waypoint x="1170" y="340" />
<di:waypoint x="1170" y="480" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0xuixe1_di" bpmnElement="Flow_0xuixe1">
<di:waypoint x="890" y="520" />
<di:waypoint x="940" y="520" />
<di:waypoint x="940" y="150" />
<di:waypoint x="990" y="150" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1aajalq_di" bpmnElement="Flow_1aajalq">
<di:waypoint x="1340" y="190" />
<di:waypoint x="1340" y="480" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1he57ct_di" bpmnElement="Flow_1he57ct">
<di:waypoint x="330" y="230" />
<di:waypoint x="330" y="520" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>