forked from berndruecker/flowing-retail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPaymentV6.bpmn
150 lines (150 loc) · 8.31 KB
/
PaymentV6.bpmn
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
<?xml version="1.0" encoding="UTF-8"?>
<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.2.3">
<bpmn:process id="paymentV6.cs" isExecutable="true">
<bpmn:serviceTask id="ServiceTask_10hm6pn" name="Charge credit card" camunda:type="external" camunda:topic="chargeCreditCardV6">
<bpmn:incoming>SequenceFlow_0gx4352</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_064rfmt</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:boundaryEvent id="BoundaryEvent_0s43v6m" name="Credit card failed" attachedToRef="ServiceTask_10hm6pn">
<bpmn:outgoing>SequenceFlow_1me4ldb</bpmn:outgoing>
<bpmn:errorEventDefinition errorRef="Error_1qxsin7" />
</bpmn:boundaryEvent>
<bpmn:sequenceFlow id="SequenceFlow_0si7w2m" sourceRef="StartEvent_1" targetRef="Task_0e2306u" />
<bpmn:sequenceFlow id="SequenceFlow_1me4ldb" sourceRef="BoundaryEvent_0s43v6m" targetRef="EndEvent_PaymentFailed" />
<bpmn:sequenceFlow id="SequenceFlow_064rfmt" sourceRef="ServiceTask_10hm6pn" targetRef="EndEvent_PaymentReceived" />
<bpmn:sequenceFlow id="SequenceFlow_06n3v12" sourceRef="Task_0e2306u" targetRef="ExclusiveGateway_0esmlay" />
<bpmn:exclusiveGateway id="ExclusiveGateway_0esmlay" name="Payment complete?">
<bpmn:incoming>SequenceFlow_06n3v12</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_0gx4352</bpmn:outgoing>
<bpmn:outgoing>SequenceFlow_1irsftt</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="SequenceFlow_0gx4352" sourceRef="ExclusiveGateway_0esmlay" targetRef="ServiceTask_10hm6pn">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{remainingAmount > 0}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="SequenceFlow_1irsftt" sourceRef="ExclusiveGateway_0esmlay" targetRef="EndEvent_PaymentReceived">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{remainingAmount == 0}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:startEvent id="StartEvent_1" name="Payment retrieval requested">
<bpmn:outgoing>SequenceFlow_0si7w2m</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id="EndEvent_PaymentReceived" name="Payment received">
<bpmn:incoming>SequenceFlow_064rfmt</bpmn:incoming>
<bpmn:incoming>SequenceFlow_1irsftt</bpmn:incoming>
</bpmn:endEvent>
<bpmn:serviceTask id="Task_0e2306u" name="Deduct existing customer credit" camunda:type="external" camunda:topic="customer-credit">
<bpmn:incoming>SequenceFlow_0si7w2m</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_06n3v12</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:boundaryEvent id="BoundaryEvent_0ptmqni" attachedToRef="Task_0e2306u">
<bpmn:compensateEventDefinition />
</bpmn:boundaryEvent>
<bpmn:serviceTask id="Task_1xuole4" name="Restore customer credit" isForCompensation="true" camunda:type="external" camunda:topic="customer-credit-refund" />
<bpmn:endEvent id="EndEvent_PaymentFailed" name="Payment failed">
<bpmn:incoming>SequenceFlow_1me4ldb</bpmn:incoming>
<bpmn:compensateEventDefinition />
</bpmn:endEvent>
<bpmn:association id="Association_01scjre" associationDirection="One" sourceRef="BoundaryEvent_0ptmqni" targetRef="Task_1xuole4" />
</bpmn:process>
<bpmn:message id="Message_1k9v13u" name="Msg_DoPayment" />
<bpmn:error id="Error_1qxsin7" name="Error_CreditCardError" />
<bpmn:message id="Message_03z4dfb" name="Msg_CreditCardUpdated" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="paymentV6.cs">
<bpmndi:BPMNShape id="ServiceTask_10hm6pn_di" bpmnElement="ServiceTask_10hm6pn">
<dc:Bounds x="400" y="49" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BoundaryEvent_0s43v6m_di" bpmnElement="BoundaryEvent_0s43v6m">
<dc:Bounds x="447" y="111" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="472" y="147" width="56" height="24" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_0si7w2m_di" bpmnElement="SequenceFlow_0si7w2m">
<di:waypoint x="5" y="89" />
<di:waypoint x="150" y="89" />
<bpmndi:BPMNLabel>
<dc:Bounds x="66.5" y="74" width="90" height="0" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_1me4ldb_di" bpmnElement="SequenceFlow_1me4ldb">
<di:waypoint x="465" y="147" />
<di:waypoint x="465" y="206" />
<di:waypoint x="522" y="206" />
<bpmndi:BPMNLabel>
<dc:Bounds x="435" y="176.5" width="90" height="0" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_064rfmt_di" bpmnElement="SequenceFlow_064rfmt">
<di:waypoint x="500" y="89" />
<di:waypoint x="543" y="89" />
<bpmndi:BPMNLabel>
<dc:Bounds x="483" y="74" width="90" height="0" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_06n3v12_di" bpmnElement="SequenceFlow_06n3v12">
<di:waypoint x="250" y="89" />
<di:waypoint x="302" y="89" />
<bpmndi:BPMNLabel>
<dc:Bounds x="276" y="68" width="0" height="12" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="ExclusiveGateway_0esmlay_di" bpmnElement="ExclusiveGateway_0esmlay" isMarkerVisible="true">
<dc:Bounds x="302" y="64" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="301" y="118" width="52" height="24" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_0gx4352_di" bpmnElement="SequenceFlow_0gx4352">
<di:waypoint x="352" y="89" />
<di:waypoint x="400" y="89" />
<bpmndi:BPMNLabel>
<dc:Bounds x="376" y="68" width="0" height="12" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_1irsftt_di" bpmnElement="SequenceFlow_1irsftt">
<di:waypoint x="327" y="64" />
<di:waypoint x="327" y="15" />
<di:waypoint x="561" y="15" />
<di:waypoint x="561" y="71" />
<bpmndi:BPMNLabel>
<dc:Bounds x="450.5" y="-6" width="0" height="12" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="StartEvent_10ua66j_di" bpmnElement="StartEvent_1">
<dc:Bounds x="-31" y="71" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="-55" y="107" width="86" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="EndEvent_1qpfh34_di" bpmnElement="EndEvent_PaymentReceived">
<dc:Bounds x="543" y="71" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="530" y="107" width="89" height="12" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="ServiceTask_0d7egs1_di" bpmnElement="Task_0e2306u">
<dc:Bounds x="150" y="49" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BoundaryEvent_19g2vpp_di" bpmnElement="BoundaryEvent_0ptmqni">
<dc:Bounds x="192" y="111" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="210" y="151" width="0" height="12" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Association_01scjre_di" bpmnElement="Association_01scjre">
<di:waypoint x="210" y="147" />
<di:waypoint x="210" y="206" />
<di:waypoint x="228" y="206" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="ServiceTask_0jsdp9g_di" bpmnElement="Task_1xuole4">
<dc:Bounds x="228" y="166" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="EndEvent_1va550p_di" bpmnElement="EndEvent_PaymentFailed">
<dc:Bounds x="522" y="188" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="503" y="224" width="73" height="12" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>