forked from serverlessworkflow/specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloan-approval-workflow.bpmn
122 lines (122 loc) · 6.53 KB
/
loan-approval-workflow.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
<?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:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_00569tm" targetNamespace="http://bpmn.io/schema/bpmn">
<bpmn:process id="Process_1r8qd42" isExecutable="true">
<bpmn:startEvent id="StartEvent_1" name="Loan Needs Approval">
<bpmn:outgoing>SequenceFlow_0b1bwkk</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="SequenceFlow_0b1bwkk" sourceRef="StartEvent_1" targetRef="Task_129rdds" />
<bpmn:exclusiveGateway id="ExclusiveGateway_0y5tnkb" name="Approved?">
<bpmn:incoming>SequenceFlow_11nqkbd</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_0acyvqi</bpmn:outgoing>
<bpmn:outgoing>SequenceFlow_06h1jzx</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="SequenceFlow_0acyvqi" name="Yes" sourceRef="ExclusiveGateway_0y5tnkb" targetRef="Task_1jjtaal" />
<bpmn:sequenceFlow id="SequenceFlow_06h1jzx" name="No" sourceRef="ExclusiveGateway_0y5tnkb" targetRef="Task_0s5hmze" />
<bpmn:endEvent id="EndEvent_15yrz5q" name="Loan Rejected">
<bpmn:incoming>SequenceFlow_1tyggk3</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="SequenceFlow_1tyggk3" sourceRef="Task_0s5hmze" targetRef="EndEvent_15yrz5q" />
<bpmn:endEvent id="EndEvent_0bx6kgi" name="Loan Approved">
<bpmn:incoming>SequenceFlow_01qpt8j</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="SequenceFlow_01qpt8j" sourceRef="Task_1jjtaal" targetRef="EndEvent_0bx6kgi" />
<bpmn:serviceTask id="Task_129rdds" name="Send Email">
<bpmn:incoming>SequenceFlow_0b1bwkk</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_0j9jmbc</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Task_1jjtaal" name="Approval Function">
<bpmn:incoming>SequenceFlow_0acyvqi</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_01qpt8j</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Task_0s5hmze" name="Rejection Fucntion">
<bpmn:incoming>SequenceFlow_06h1jzx</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_1tyggk3</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="SequenceFlow_0j9jmbc" sourceRef="Task_129rdds" targetRef="IntermediateThrowEvent_09uqv6i" />
<bpmn:sequenceFlow id="SequenceFlow_11nqkbd" sourceRef="IntermediateThrowEvent_09uqv6i" targetRef="ExclusiveGateway_0y5tnkb" />
<bpmn:intermediateCatchEvent id="IntermediateThrowEvent_09uqv6i" name="Manager Approve/Reject">
<bpmn:incoming>SequenceFlow_0j9jmbc</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_11nqkbd</bpmn:outgoing>
<bpmn:signalEventDefinition />
</bpmn:intermediateCatchEvent>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1r8qd42">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="172" y="159" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="160" y="202" width="60" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_0b1bwkk_di" bpmnElement="SequenceFlow_0b1bwkk">
<di:waypoint x="208" y="177" />
<di:waypoint x="250" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="ExclusiveGateway_0y5tnkb_di" bpmnElement="ExclusiveGateway_0y5tnkb" isMarkerVisible="true">
<dc:Bounds x="485" y="152" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="443" y="143" width="54" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_0acyvqi_di" bpmnElement="SequenceFlow_0acyvqi">
<di:waypoint x="510" y="152" />
<di:waypoint x="510" y="120" />
<di:waypoint x="600" y="120" />
<bpmndi:BPMNLabel>
<dc:Bounds x="516" y="133" width="18" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_06h1jzx_di" bpmnElement="SequenceFlow_06h1jzx">
<di:waypoint x="510" y="202" />
<di:waypoint x="510" y="240" />
<di:waypoint x="600" y="240" />
<bpmndi:BPMNLabel>
<dc:Bounds x="518" y="217" width="15" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="EndEvent_15yrz5q_di" bpmnElement="EndEvent_15yrz5q">
<dc:Bounds x="742" y="222" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="725" y="265" width="71" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_1tyggk3_di" bpmnElement="SequenceFlow_1tyggk3">
<di:waypoint x="700" y="240" />
<di:waypoint x="742" y="240" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="EndEvent_0bx6kgi_di" bpmnElement="EndEvent_0bx6kgi">
<dc:Bounds x="742" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="723" y="145" width="75" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_01qpt8j_di" bpmnElement="SequenceFlow_01qpt8j">
<di:waypoint x="700" y="120" />
<di:waypoint x="742" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="ServiceTask_16329l6_di" bpmnElement="Task_129rdds">
<dc:Bounds x="250" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="ServiceTask_0067sc9_di" bpmnElement="Task_1jjtaal">
<dc:Bounds x="600" y="80" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="ServiceTask_0k5194w_di" bpmnElement="Task_0s5hmze">
<dc:Bounds x="600" y="200" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_0j9jmbc_di" bpmnElement="SequenceFlow_0j9jmbc">
<di:waypoint x="350" y="177" />
<di:waypoint x="392" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_11nqkbd_di" bpmnElement="SequenceFlow_11nqkbd">
<di:waypoint x="428" y="177" />
<di:waypoint x="485" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="IntermediateCatchEvent_04pcatl_di" bpmnElement="IntermediateThrowEvent_09uqv6i">
<dc:Bounds x="392" y="159" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="372" y="202" width="76" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>