-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkflow.drawio
More file actions
259 lines (201 loc) · 17.3 KB
/
workflow.drawio
File metadata and controls
259 lines (201 loc) · 17.3 KB
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
<mxfile host="app.diagrams.net" modified="2025-01-15T12:00:00.000Z" agent="5.0" etag="workflow-kyc-core" version="24.7.17">
<diagram name="KYC Core Workflow" id="kyc-workflow">
<mxGraphModel dx="1422" dy="794" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<!-- Title -->
<mxCell id="title" value="KYC Core Package Workflow" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=20;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="400" y="20" width="300" height="40" as="geometry" />
</mxCell>
<!-- User Start -->
<mxCell id="user-start" value="User" style="shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;outlineConnect=0;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="50" y="100" width="30" height="60" as="geometry" />
</mxCell>
<!-- KYC Manager -->
<mxCell id="kyc-manager" value="KYC Manager" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="150" y="110" width="120" height="40" as="geometry" />
</mxCell>
<!-- Validation Service -->
<mxCell id="validation-service" value="Validation Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">
<mxGeometry x="320" y="80" width="120" height="40" as="geometry" />
</mxCell>
<!-- Status Service -->
<mxCell id="status-service" value="Status Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">
<mxGeometry x="320" y="140" width="120" height="40" as="geometry" />
</mxCell>
<!-- Driver Interface -->
<mxCell id="driver-interface" value="KYC Driver Interface" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="500" y="110" width="140" height="40" as="geometry" />
</mxCell>
<!-- External Provider -->
<mxCell id="external-provider" value="External KYC Provider
(e.g., ShuftiPro)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="700" y="110" width="140" height="40" as="geometry" />
</mxCell>
<!-- Database -->
<mxCell id="database" value="KYC Database
(Kyc Model)" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=15;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
<mxGeometry x="350" y="220" width="80" height="80" as="geometry" />
</mxCell>
<!-- Status Enum Box -->
<mxCell id="status-enum-box" value="KYC Status Enum" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="50" y="220" width="120" height="30" as="geometry" />
</mxCell>
<!-- Status Values -->
<mxCell id="status-not-started" value="not_started" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8f8f8;strokeColor=#666666;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="50" y="260" width="80" height="20" as="geometry" />
</mxCell>
<mxCell id="status-request-pending" value="request_pending" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="50" y="290" width="80" height="20" as="geometry" />
</mxCell>
<mxCell id="status-in-progress" value="in_progress" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="50" y="320" width="80" height="20" as="geometry" />
</mxCell>
<mxCell id="status-review-pending" value="review_pending" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="50" y="350" width="80" height="20" as="geometry" />
</mxCell>
<mxCell id="status-completed" value="completed" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="50" y="380" width="80" height="20" as="geometry" />
</mxCell>
<mxCell id="status-failed" value="failed/rejected" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="50" y="410" width="80" height="20" as="geometry" />
</mxCell>
<!-- Workflow Steps -->
<mxCell id="step1" value="1. Create/Resume
Verification" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">
<mxGeometry x="200" y="320" width="100" height="50" as="geometry" />
</mxCell>
<mxCell id="step2" value="2. Validate User
& Request" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">
<mxGeometry x="330" y="320" width="100" height="50" as="geometry" />
</mxCell>
<mxCell id="step3" value="3. Call External
Provider" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="460" y="320" width="100" height="50" as="geometry" />
</mxCell>
<mxCell id="step4" value="4. Update Status
& Store Data" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="590" y="320" width="100" height="50" as="geometry" />
</mxCell>
<mxCell id="step5" value="5. Fire Events" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" vertex="1" parent="1">
<mxGeometry x="720" y="320" width="100" height="50" as="geometry" />
</mxCell>
<!-- Events -->
<mxCell id="event-started" value="VerificationStarted" style="ellipse;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="700" y="400" width="100" height="30" as="geometry" />
</mxCell>
<mxCell id="event-completed" value="VerificationCompleted" style="ellipse;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="820" y="400" width="100" height="30" as="geometry" />
</mxCell>
<mxCell id="event-failed" value="VerificationFailed" style="ellipse;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="940" y="400" width="100" height="30" as="geometry" />
</mxCell>
<!-- Webhook Process -->
<mxCell id="webhook-box" value="Webhook Processing" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0f0f0;strokeColor=#666666;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="500" y="480" width="300" height="30" as="geometry" />
</mxCell>
<mxCell id="webhook-receive" value="Receive Webhook" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">
<mxGeometry x="500" y="520" width="90" height="40" as="geometry" />
</mxCell>
<mxCell id="webhook-process" value="Process & Map
Status" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="610" y="520" width="90" height="40" as="geometry" />
</mxCell>
<mxCell id="webhook-update" value="Update Database
& Fire Events" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="720" y="520" width="90" height="40" as="geometry" />
</mxCell>
<!-- Resume Flow -->
<mxCell id="resume-box" value="Resume Verification Flow" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0f0f0;strokeColor=#666666;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="200" y="600" width="400" height="30" as="geometry" />
</mxCell>
<mxCell id="resume-check" value="Check if
Resumable" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" vertex="1" parent="1">
<mxGeometry x="200" y="640" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="resume-retrieve" value="Retrieve Latest
Status" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">
<mxGeometry x="300" y="640" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="resume-url" value="Get/Validate
URL" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="400" y="640" width="80" height="40" as="geometry" />
</mxCell>
<mxCell id="resume-response" value="Return Resume
Response" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="500" y="640" width="80" height="40" as="geometry" />
</mxCell>
<!-- Main Flow Arrows -->
<mxCell id="arrow1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="user-start" target="kyc-manager">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="arrow2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.3;entryX=0;entryY=0.5;" edge="1" parent="1" source="kyc-manager" target="validation-service">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="arrow3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.7;entryX=0;entryY=0.5;" edge="1" parent="1" source="kyc-manager" target="status-service">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="arrow4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="driver-interface" target="external-provider">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="arrow5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;entryX=0.5;entryY=0;" edge="1" parent="1" source="status-service" target="database">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Workflow Step Arrows -->
<mxCell id="step-arrow1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="step1" target="step2">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="step-arrow2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="step2" target="step3">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="step-arrow3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="step3" target="step4">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="step-arrow4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="step4" target="step5">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Webhook Arrows -->
<mxCell id="webhook-arrow1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="webhook-receive" target="webhook-process">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="webhook-arrow2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="webhook-process" target="webhook-update">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Resume Arrows -->
<mxCell id="resume-arrow1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="resume-check" target="resume-retrieve">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="resume-arrow2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="resume-retrieve" target="resume-url">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="resume-arrow3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;entryX=0;entryY=0.5;" edge="1" parent="1" source="resume-url" target="resume-response">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Key Features Text -->
<mxCell id="features-title" value="Key Features:" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=14;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="900" y="220" width="100" height="20" as="geometry" />
</mxCell>
<mxCell id="feature1" value="• Multi-driver support" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="900" y="245" width="150" height="15" as="geometry" />
</mxCell>
<mxCell id="feature2" value="• Resume verification" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="900" y="265" width="150" height="15" as="geometry" />
</mxCell>
<mxCell id="feature3" value="• Status management" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="900" y="285" width="150" height="15" as="geometry" />
</mxCell>
<mxCell id="feature4" value="• Event system" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="900" y="305" width="150" height="15" as="geometry" />
</mxCell>
<mxCell id="feature5" value="• Webhook processing" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="900" y="325" width="150" height="15" as="geometry" />
</mxCell>
<!-- Legend -->
<mxCell id="legend-title" value="Legend:" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=12;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="900" y="480" width="60" height="20" as="geometry" />
</mxCell>
<mxCell id="legend-core" value="Core Services" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="900" y="505" width="80" height="20" as="geometry" />
</mxCell>
<mxCell id="legend-validation" value="Validation" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="900" y="530" width="80" height="20" as="geometry" />
</mxCell>
<mxCell id="legend-external" value="External" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="900" y="555" width="80" height="20" as="geometry" />
</mxCell>
<mxCell id="legend-events" value="Events" style="ellipse;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="900" y="580" width="80" height="20" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>