forest-cli 5.24.4 → 5.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/services/dumpers/agent-nodejs.d.ts.map +1 -1
- package/dist/services/dumpers/agent-nodejs.js +13 -5
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/back.hbs +1 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/back.js +154 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/component.js +154 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/data-map.css +416 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/data-map.hbs +99 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/data-map.js +243 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/demo-guide.css +278 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/demo-guide.hbs +38 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/demo-guide.js +353 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-activity.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-agent.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-ai.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-charts.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-collections.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-custom-components.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-inboxes.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-roles.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-segments.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-smart-actions.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-workflows.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-workspaces.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature.css +1109 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature.hbs +286 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/go-to.hbs +4 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/go-to.js +217 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/kyc-flow.css +580 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/kyc-flow.hbs +80 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/kyc-flow.js +49 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/run-action.hbs +3 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/run-action.js +96 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/select-first.css +131 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/select-first.hbs +4 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/select-first.js +205 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/senior-guide.hbs +39 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/senior-guide.js +189 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/style.css +372 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/template.hbs +83 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/forest-layout.json +52897 -8498
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/203696b1-e9ca-45f3-9bd3-5bc6fb4fd8c3.bpmn +161 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/2bc0c0ff-486c-44b1-ae31-3de204f7b14f.bpmn +107 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/4b37a274-117f-4c2d-96ad-21d1be4d0bc7.bpmn +159 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/56ff9484-8308-4971-9e02-3de5eea2e240.bpmn +67 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/619e3e88-4a9c-4f02-84fb-732c16f9b5bf.bpmn +43 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/76516b9e-aac0-4f7b-9794-8f86c529531b.bpmn +75 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/86b4fc1e-b10a-4906-9fd1-e601eaad83c0.bpmn +81 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/92b119e5-c908-48d1-9a0d-23173c57bd5b.bpmn +47 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/92c02240-9c8a-49e7-9993-077af3e1ddcc.bpmn +77 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/aac25aee-f626-40a8-9459-d2a933fb8446.bpmn +105 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/b269dbff-5fde-401f-a05b-76a7dac79387.bpmn +75 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/d8b208a9-fc71-4005-acb9-ba5fedd2499f.bpmn +73 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/e3abab67-7bc6-4a44-9848-c7f83a55a56d.bpmn +71 -0
- package/dist/services/dumpers/templates/agent-nodejs/javascript/index.hbs +45 -4
- package/dist/services/dumpers/templates/agent-nodejs/typescript/Dockerfile.hbs +1 -1
- package/dist/services/dumpers/templates/agent-nodejs/typescript/index.hbs +45 -4
- package/oclif.manifest.json +136 -136
- package/package.json +6 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/30d581e3-294e-4790-b723-0f16509ecae0.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/52e0acb4-6064-472a-9823-cdfd7fa7a3ab.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/71f692b4-fe4f-476d-8251-fdc5af1ec51e.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/9d564d80-19d1-4ce4-bb4b-aaf41e7ef5b6.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/c8ab4b5d-20df-4d28-9160-0d4376282c90.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/d0289f67-2c9e-4c69-b1ee-ecbbace841b3.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/d07aa5ee-9a49-4916-a1b5-1f953bfe9a8e.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/e25c6237-b882-498b-9655-b16b30131b10.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/f01b9e61-4156-47b8-b6a1-5c90adbcd2ba.bpmn +0 -2
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<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" xmlns:forest="https://app.forestadmin.com" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
|
|
3
|
+
<bpmn:process id="Process_1" isExecutable="true">
|
|
4
|
+
<bpmn:startEvent id="Start_1"><bpmn:outgoing>flow_Start_1_applicant</bpmn:outgoing></bpmn:startEvent>
|
|
5
|
+
<bpmn:serviceTask id="applicant" name="Read the applicant file" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["applicant_identity","applicant_contact","applicant_profile","applicant_volumes"]}" forest:description="Read all 4 of these fields of this KYC case (every one is needed): "Applicant · Identity", "Applicant · Contact", "Applicant · Declared profile" and "Applicant · Expected volumes": who applies, how to reach them, what they declared (occupation, income, source of funds, residence, tax residence, PEP) and the money they expect to pay in and out each month."><bpmn:outgoing>flow_applicant_check_docs</bpmn:outgoing></bpmn:serviceTask>
|
|
6
|
+
<bpmn:serviceTask id="check_docs" name="Check the documents" forest:alternative="trigger-action" forest:automaticExecution="true" forest:automaticCompletion="false" forest:description="Run "Check documents": each paper on file is checked against the onboarding rules (ID valid, selfie, proof of address under 3 months, proof of income above 70k EUR a year); the result card lists each one, valid or what is wrong."><bpmn:outgoing>flow_check_docs_documents</bpmn:outgoing></bpmn:serviceTask>
|
|
7
|
+
<bpmn:serviceTask id="documents" name="Read the document results" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["docs_complete","doc_id","doc_selfie","doc_address","doc_income"]}" forest:description="Read all 5 of these fields of this KYC case (every one is needed): "Documents · Complete", "Documents · ID document", "Documents · Selfie", "Documents · Proof of address" (less than 3 months old) and "Documents · Proof of income" (above 70k EUR a year)."><bpmn:outgoing>flow_documents_docs_ok</bpmn:outgoing></bpmn:serviceTask>
|
|
8
|
+
<bpmn:exclusiveGateway id="docs_ok" name="Documents complete?" forest:aiDecision="true" forest:description="Complete when "Documents · Complete" says "✓ Yes". Missing or outdated when it starts with "✗ No": a paper not received, or a proof of address older than 3 months."><bpmn:outgoing>flow_docs_ok_verify_id</bpmn:outgoing><bpmn:outgoing>flow_docs_ok_request_docs</bpmn:outgoing></bpmn:exclusiveGateway>
|
|
9
|
+
<bpmn:serviceTask id="request_docs" name="Request the missing documents" forest:alternative="trigger-action" forest:automaticCompletion="false" forest:description="Run "Request missing documents": the request is pre-filled with what "Documents · Complete" lacks. The case waits on the client, out of the queue; the result card shows the request and its due date."><bpmn:outgoing>flow_request_docs_end_waiting</bpmn:outgoing></bpmn:serviceTask>
|
|
10
|
+
<bpmn:endEvent id="end_waiting" name="Waiting on the client"></bpmn:endEvent>
|
|
11
|
+
<bpmn:serviceTask id="verify_id" name="Verify the ID document (Onfido)" forest:alternative="trigger-action" forest:automaticExecution="true" forest:automaticCompletion="false" forest:description="Run "Verify document": Onfido checks each applicant's ID live and matches the selfie to it; one result card per ID."><bpmn:outgoing>flow_verify_id_ids_read</bpmn:outgoing></bpmn:serviceTask>
|
|
12
|
+
<bpmn:serviceTask id="ids_read" name="Read the ID check results" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["idcheck_result","idcheck_documents","idcheck_faces"]}" forest:description="Read all 3 of these fields of this KYC case (every one is needed): "ID checks · Result", "ID checks · Documents" and "ID checks · Face match": each ID with its result and confidence, each selfie matched to its ID, and the overall result."><bpmn:outgoing>flow_ids_read_ids_ok</bpmn:outgoing></bpmn:serviceTask>
|
|
13
|
+
<bpmn:exclusiveGateway id="ids_ok" name="ID document valid?" forest:description="Valid when "ID checks · Result" starts with "✓ Passed". Not valid when it shows ✗ Failed or ⚠ Needs a closer look: ask for a new ID."><bpmn:outgoing>flow_ids_ok_screen</bpmn:outgoing><bpmn:outgoing>flow_ids_ok_request_id</bpmn:outgoing></bpmn:exclusiveGateway>
|
|
14
|
+
<bpmn:serviceTask id="request_id" name="Request a new ID document" forest:alternative="trigger-action" forest:automaticCompletion="false" forest:description="Run "Request ID document": the applicant gets a request in the app to upload a valid ID, with the reason Onfido gave; the result card shows the request and its due date."><bpmn:outgoing>flow_request_id_end_waiting</bpmn:outgoing></bpmn:serviceTask>
|
|
15
|
+
<bpmn:serviceTask id="screen" name="Screen the applicants (ComplyAdvantage)" forest:alternative="trigger-action" forest:automaticExecution="true" forest:automaticCompletion="false" forest:description="Run "Screen against sanctions lists": the result card lists each name checked and any match."><bpmn:outgoing>flow_screen_screening</bpmn:outgoing></bpmn:serviceTask>
|
|
16
|
+
<bpmn:serviceTask id="screening" name="Read the screening result" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["screening_result"]}" forest:description="Read the field "Screening · Result" of this KYC case: each hit on the applicants (✗ open or confirmed, ○ cleared before), or no hit."><bpmn:outgoing>flow_screening_hit_open</bpmn:outgoing></bpmn:serviceTask>
|
|
17
|
+
<bpmn:exclusiveGateway id="hit_open" name="Open screening hit?" forest:aiDecision="true" forest:description="Open hit when "Screening · Result" lists a hit marked ✗ and "open". Clear otherwise: "✓ No hit", or only hits cleared before (○)."><bpmn:outgoing>flow_hit_open_risk_inputs</bpmn:outgoing><bpmn:outgoing>flow_hit_open_park</bpmn:outgoing></bpmn:exclusiveGateway>
|
|
18
|
+
<bpmn:serviceTask id="park" name="Park the case for screening" forest:alternative="trigger-action" forest:automaticExecution="true" forest:automaticCompletion="false" forest:description="Run "Park for screening": the case leaves the onboarding queue until the screening team decides on the hit; the result card lists the open hits."><bpmn:outgoing>flow_park_end_screening</bpmn:outgoing></bpmn:serviceTask>
|
|
19
|
+
<bpmn:endEvent id="end_screening" name="Sent to screening"></bpmn:endEvent>
|
|
20
|
+
<bpmn:serviceTask id="risk_inputs" name="Read the risk inputs" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["risk_rating_suggested","risk_hits","risk_pep","risk_residence","risk_funds","risk_volumes"]}" forest:description="Read all 6 of these fields of this KYC case (every one is needed): "Risk · Suggested rating", "Risk · Screening hits", "Risk · PEP", "Risk · Residence", "Risk · Occupation and funds" and "Risk · Income vs volumes"."><bpmn:outgoing>flow_risk_inputs_rate</bpmn:outgoing></bpmn:serviceTask>
|
|
21
|
+
<bpmn:serviceTask id="rate" name="Rate the risk" forest:alternative="trigger-action" forest:automaticCompletion="false" forest:description="Run "Rate the risk": pick LOW, MEDIUM or HIGH (it starts on the suggested rating). Low when every "Risk ·" line shows ✓: no open hit, no PEP, living and paying tax in the EU, an occupation and source of funds that explain the money, and no more money expected in than the declared income. The result card lists the risk lines and the next step."><bpmn:outgoing>flow_rate_rated</bpmn:outgoing></bpmn:serviceTask>
|
|
22
|
+
<bpmn:serviceTask id="rated" name="Read the rating decided" forest:alternative="get-data" forest:automaticCompletion="true" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["risk_decided"]}" forest:description="Read the field "Risk rating · Decided" of this KYC case."><bpmn:outgoing>flow_rated_risk</bpmn:outgoing></bpmn:serviceTask>
|
|
23
|
+
<bpmn:exclusiveGateway id="risk" name="Low risk?" forest:optionConditions="{"version":1,"options":[{"flowId":"flow_risk_approve","aggregator":"and","conditions":[{"sourceStepId":"rated","fieldName":"risk_decided","operator":"equal","value":"LOW"}]}],"fallbackFlowId":"flow_risk_signoff"}" forest:description="Low when "Risk rating · Decided" is LOW: the operator approves. Medium or high: a senior signs off."><bpmn:outgoing>flow_risk_approve</bpmn:outgoing><bpmn:outgoing>flow_risk_signoff</bpmn:outgoing></bpmn:exclusiveGateway>
|
|
24
|
+
<bpmn:serviceTask id="signoff" name="Send to the senior sign-off queue" forest:alternative="trigger-action" forest:automaticExecution="true" forest:automaticCompletion="true" forest:description="Run "Send for senior sign-off": the case leaves the onboarding queue for the "Senior sign-off" queue, where a senior officer takes it and runs Senior review."><bpmn:outgoing>flow_signoff_end_senior</bpmn:outgoing></bpmn:serviceTask>
|
|
25
|
+
<bpmn:endEvent id="end_senior" name="With a senior officer"></bpmn:endEvent>
|
|
26
|
+
<bpmn:serviceTask id="approve" name="Approve KYC - Low risk" forest:alternative="trigger-action" forest:automaticCompletion="false" forest:description="Run "Approve KYC - Low risk": the case was rated LOW. It refuses when a document, an ID or a screening hit is still open."><bpmn:outgoing>flow_approve_end_ok</bpmn:outgoing></bpmn:serviceTask>
|
|
27
|
+
<bpmn:endEvent id="end_ok" name="Customer onboarded"></bpmn:endEvent>
|
|
28
|
+
<bpmn:sequenceFlow id="flow_Start_1_applicant" sourceRef="Start_1" targetRef="applicant" />
|
|
29
|
+
<bpmn:sequenceFlow id="flow_applicant_check_docs" sourceRef="applicant" targetRef="check_docs" />
|
|
30
|
+
<bpmn:sequenceFlow id="flow_check_docs_documents" sourceRef="check_docs" targetRef="documents" />
|
|
31
|
+
<bpmn:sequenceFlow id="flow_documents_docs_ok" sourceRef="documents" targetRef="docs_ok" />
|
|
32
|
+
<bpmn:sequenceFlow id="flow_docs_ok_verify_id" sourceRef="docs_ok" targetRef="verify_id" name="Complete" />
|
|
33
|
+
<bpmn:sequenceFlow id="flow_docs_ok_request_docs" sourceRef="docs_ok" targetRef="request_docs" name="Missing or outdated" forest:buttonColor="yellow" />
|
|
34
|
+
<bpmn:sequenceFlow id="flow_request_docs_end_waiting" sourceRef="request_docs" targetRef="end_waiting" />
|
|
35
|
+
<bpmn:sequenceFlow id="flow_verify_id_ids_read" sourceRef="verify_id" targetRef="ids_read" />
|
|
36
|
+
<bpmn:sequenceFlow id="flow_ids_read_ids_ok" sourceRef="ids_read" targetRef="ids_ok" />
|
|
37
|
+
<bpmn:sequenceFlow id="flow_ids_ok_screen" sourceRef="ids_ok" targetRef="screen" name="Valid" />
|
|
38
|
+
<bpmn:sequenceFlow id="flow_ids_ok_request_id" sourceRef="ids_ok" targetRef="request_id" name="Not valid" forest:buttonColor="yellow" />
|
|
39
|
+
<bpmn:sequenceFlow id="flow_request_id_end_waiting" sourceRef="request_id" targetRef="end_waiting" />
|
|
40
|
+
<bpmn:sequenceFlow id="flow_screen_screening" sourceRef="screen" targetRef="screening" />
|
|
41
|
+
<bpmn:sequenceFlow id="flow_screening_hit_open" sourceRef="screening" targetRef="hit_open" />
|
|
42
|
+
<bpmn:sequenceFlow id="flow_hit_open_risk_inputs" sourceRef="hit_open" targetRef="risk_inputs" name="Clear" />
|
|
43
|
+
<bpmn:sequenceFlow id="flow_hit_open_park" sourceRef="hit_open" targetRef="park" name="Open hit" forest:buttonColor="orange" />
|
|
44
|
+
<bpmn:sequenceFlow id="flow_park_end_screening" sourceRef="park" targetRef="end_screening" />
|
|
45
|
+
<bpmn:sequenceFlow id="flow_risk_inputs_rate" sourceRef="risk_inputs" targetRef="rate" />
|
|
46
|
+
<bpmn:sequenceFlow id="flow_rate_rated" sourceRef="rate" targetRef="rated" />
|
|
47
|
+
<bpmn:sequenceFlow id="flow_rated_risk" sourceRef="rated" targetRef="risk" />
|
|
48
|
+
<bpmn:sequenceFlow id="flow_risk_approve" sourceRef="risk" targetRef="approve" name="Low" />
|
|
49
|
+
<bpmn:sequenceFlow id="flow_risk_signoff" sourceRef="risk" targetRef="signoff" name="Fallback" />
|
|
50
|
+
<bpmn:sequenceFlow id="flow_signoff_end_senior" sourceRef="signoff" targetRef="end_senior" />
|
|
51
|
+
<bpmn:sequenceFlow id="flow_approve_end_ok" sourceRef="approve" targetRef="end_ok" />
|
|
52
|
+
</bpmn:process>
|
|
53
|
+
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
54
|
+
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
|
|
55
|
+
<bpmndi:BPMNShape id="Start_1_di" bpmnElement="Start_1"><dc:Bounds x="160" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
56
|
+
<bpmndi:BPMNShape id="applicant_di" bpmnElement="applicant"><dc:Bounds x="256" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
57
|
+
<bpmndi:BPMNShape id="check_docs_di" bpmnElement="check_docs"><dc:Bounds x="416" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
58
|
+
<bpmndi:BPMNShape id="documents_di" bpmnElement="documents"><dc:Bounds x="576" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
59
|
+
<bpmndi:BPMNShape id="docs_ok_di" bpmnElement="docs_ok"><dc:Bounds x="736" y="135" width="50" height="50" /></bpmndi:BPMNShape>
|
|
60
|
+
<bpmndi:BPMNShape id="request_docs_di" bpmnElement="request_docs"><dc:Bounds x="846" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
61
|
+
<bpmndi:BPMNShape id="end_waiting_di" bpmnElement="end_waiting"><dc:Bounds x="1006" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
62
|
+
<bpmndi:BPMNShape id="verify_id_di" bpmnElement="verify_id"><dc:Bounds x="1102" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
63
|
+
<bpmndi:BPMNShape id="ids_read_di" bpmnElement="ids_read"><dc:Bounds x="1262" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
64
|
+
<bpmndi:BPMNShape id="ids_ok_di" bpmnElement="ids_ok"><dc:Bounds x="1422" y="135" width="50" height="50" /></bpmndi:BPMNShape>
|
|
65
|
+
<bpmndi:BPMNShape id="request_id_di" bpmnElement="request_id"><dc:Bounds x="1532" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
66
|
+
<bpmndi:BPMNShape id="screen_di" bpmnElement="screen"><dc:Bounds x="1692" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
67
|
+
<bpmndi:BPMNShape id="screening_di" bpmnElement="screening"><dc:Bounds x="1852" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
68
|
+
<bpmndi:BPMNShape id="hit_open_di" bpmnElement="hit_open"><dc:Bounds x="2012" y="135" width="50" height="50" /></bpmndi:BPMNShape>
|
|
69
|
+
<bpmndi:BPMNShape id="park_di" bpmnElement="park"><dc:Bounds x="2122" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
70
|
+
<bpmndi:BPMNShape id="end_screening_di" bpmnElement="end_screening"><dc:Bounds x="2282" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
71
|
+
<bpmndi:BPMNShape id="risk_inputs_di" bpmnElement="risk_inputs"><dc:Bounds x="2378" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
72
|
+
<bpmndi:BPMNShape id="rate_di" bpmnElement="rate"><dc:Bounds x="2538" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
73
|
+
<bpmndi:BPMNShape id="rated_di" bpmnElement="rated"><dc:Bounds x="2698" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
74
|
+
<bpmndi:BPMNShape id="risk_di" bpmnElement="risk"><dc:Bounds x="2858" y="135" width="50" height="50" /></bpmndi:BPMNShape>
|
|
75
|
+
<bpmndi:BPMNShape id="signoff_di" bpmnElement="signoff"><dc:Bounds x="2968" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
76
|
+
<bpmndi:BPMNShape id="end_senior_di" bpmnElement="end_senior"><dc:Bounds x="3128" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
77
|
+
<bpmndi:BPMNShape id="approve_di" bpmnElement="approve"><dc:Bounds x="3224" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
78
|
+
<bpmndi:BPMNShape id="end_ok_di" bpmnElement="end_ok"><dc:Bounds x="3384" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
79
|
+
<bpmndi:BPMNEdge id="flow_Start_1_applicant_di" bpmnElement="flow_Start_1_applicant"><di:waypoint x="196" y="160" /><di:waypoint x="256" y="160" /></bpmndi:BPMNEdge>
|
|
80
|
+
<bpmndi:BPMNEdge id="flow_applicant_check_docs_di" bpmnElement="flow_applicant_check_docs"><di:waypoint x="356" y="160" /><di:waypoint x="416" y="160" /></bpmndi:BPMNEdge>
|
|
81
|
+
<bpmndi:BPMNEdge id="flow_check_docs_documents_di" bpmnElement="flow_check_docs_documents"><di:waypoint x="516" y="160" /><di:waypoint x="576" y="160" /></bpmndi:BPMNEdge>
|
|
82
|
+
<bpmndi:BPMNEdge id="flow_documents_docs_ok_di" bpmnElement="flow_documents_docs_ok"><di:waypoint x="676" y="160" /><di:waypoint x="736" y="160" /></bpmndi:BPMNEdge>
|
|
83
|
+
<bpmndi:BPMNEdge id="flow_docs_ok_verify_id_di" bpmnElement="flow_docs_ok_verify_id"><di:waypoint x="786" y="160" /><di:waypoint x="1102" y="160" /></bpmndi:BPMNEdge>
|
|
84
|
+
<bpmndi:BPMNEdge id="flow_docs_ok_request_docs_di" bpmnElement="flow_docs_ok_request_docs"><di:waypoint x="786" y="160" /><di:waypoint x="846" y="160" /></bpmndi:BPMNEdge>
|
|
85
|
+
<bpmndi:BPMNEdge id="flow_request_docs_end_waiting_di" bpmnElement="flow_request_docs_end_waiting"><di:waypoint x="946" y="160" /><di:waypoint x="1006" y="160" /></bpmndi:BPMNEdge>
|
|
86
|
+
<bpmndi:BPMNEdge id="flow_verify_id_ids_read_di" bpmnElement="flow_verify_id_ids_read"><di:waypoint x="1202" y="160" /><di:waypoint x="1262" y="160" /></bpmndi:BPMNEdge>
|
|
87
|
+
<bpmndi:BPMNEdge id="flow_ids_read_ids_ok_di" bpmnElement="flow_ids_read_ids_ok"><di:waypoint x="1362" y="160" /><di:waypoint x="1422" y="160" /></bpmndi:BPMNEdge>
|
|
88
|
+
<bpmndi:BPMNEdge id="flow_ids_ok_screen_di" bpmnElement="flow_ids_ok_screen"><di:waypoint x="1472" y="160" /><di:waypoint x="1692" y="160" /></bpmndi:BPMNEdge>
|
|
89
|
+
<bpmndi:BPMNEdge id="flow_ids_ok_request_id_di" bpmnElement="flow_ids_ok_request_id"><di:waypoint x="1472" y="160" /><di:waypoint x="1532" y="160" /></bpmndi:BPMNEdge>
|
|
90
|
+
<bpmndi:BPMNEdge id="flow_request_id_end_waiting_di" bpmnElement="flow_request_id_end_waiting"><di:waypoint x="1632" y="160" /><di:waypoint x="1006" y="160" /></bpmndi:BPMNEdge>
|
|
91
|
+
<bpmndi:BPMNEdge id="flow_screen_screening_di" bpmnElement="flow_screen_screening"><di:waypoint x="1792" y="160" /><di:waypoint x="1852" y="160" /></bpmndi:BPMNEdge>
|
|
92
|
+
<bpmndi:BPMNEdge id="flow_screening_hit_open_di" bpmnElement="flow_screening_hit_open"><di:waypoint x="1952" y="160" /><di:waypoint x="2012" y="160" /></bpmndi:BPMNEdge>
|
|
93
|
+
<bpmndi:BPMNEdge id="flow_hit_open_risk_inputs_di" bpmnElement="flow_hit_open_risk_inputs"><di:waypoint x="2062" y="160" /><di:waypoint x="2378" y="160" /></bpmndi:BPMNEdge>
|
|
94
|
+
<bpmndi:BPMNEdge id="flow_hit_open_park_di" bpmnElement="flow_hit_open_park"><di:waypoint x="2062" y="160" /><di:waypoint x="2122" y="160" /></bpmndi:BPMNEdge>
|
|
95
|
+
<bpmndi:BPMNEdge id="flow_park_end_screening_di" bpmnElement="flow_park_end_screening"><di:waypoint x="2222" y="160" /><di:waypoint x="2282" y="160" /></bpmndi:BPMNEdge>
|
|
96
|
+
<bpmndi:BPMNEdge id="flow_risk_inputs_rate_di" bpmnElement="flow_risk_inputs_rate"><di:waypoint x="2478" y="160" /><di:waypoint x="2538" y="160" /></bpmndi:BPMNEdge>
|
|
97
|
+
<bpmndi:BPMNEdge id="flow_rate_rated_di" bpmnElement="flow_rate_rated"><di:waypoint x="2638" y="160" /><di:waypoint x="2698" y="160" /></bpmndi:BPMNEdge>
|
|
98
|
+
<bpmndi:BPMNEdge id="flow_rated_risk_di" bpmnElement="flow_rated_risk"><di:waypoint x="2798" y="160" /><di:waypoint x="2858" y="160" /></bpmndi:BPMNEdge>
|
|
99
|
+
<bpmndi:BPMNEdge id="flow_risk_approve_di" bpmnElement="flow_risk_approve"><di:waypoint x="2908" y="160" /><di:waypoint x="3224" y="160" /></bpmndi:BPMNEdge>
|
|
100
|
+
<bpmndi:BPMNEdge id="flow_risk_signoff_di" bpmnElement="flow_risk_signoff"><di:waypoint x="2908" y="160" /><di:waypoint x="2968" y="160" /></bpmndi:BPMNEdge>
|
|
101
|
+
<bpmndi:BPMNEdge id="flow_signoff_end_senior_di" bpmnElement="flow_signoff_end_senior"><di:waypoint x="3068" y="160" /><di:waypoint x="3128" y="160" /></bpmndi:BPMNEdge>
|
|
102
|
+
<bpmndi:BPMNEdge id="flow_approve_end_ok_di" bpmnElement="flow_approve_end_ok"><di:waypoint x="3324" y="160" /><di:waypoint x="3384" y="160" /></bpmndi:BPMNEdge>
|
|
103
|
+
</bpmndi:BPMNPlane>
|
|
104
|
+
</bpmndi:BPMNDiagram>
|
|
105
|
+
</bpmn:definitions>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<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" xmlns:forest="https://app.forestadmin.com" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
|
|
3
|
+
<bpmn:process id="Process_1" isExecutable="true">
|
|
4
|
+
<bpmn:startEvent id="Start_1"><bpmn:outgoing>flow_Start_1_take</bpmn:outgoing></bpmn:startEvent>
|
|
5
|
+
<bpmn:serviceTask id="take" name="Start the review" forest:alternative="trigger-action" forest:automaticExecution="true" forest:automaticCompletion="true" forest:description="Run "Start review": the alert shows as in review, under your name."><bpmn:outgoing>flow_take_alert</bpmn:outgoing></bpmn:serviceTask>
|
|
6
|
+
<bpmn:serviceTask id="alert" name="Read what triggered the alert" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["alert_rule","alert_score"]}" forest:description="Read both of these fields of this alert (every one is needed): "Alert · Rule" and "Alert · Score and time": the rule that fired and what it looks for, the score and when it fired."><bpmn:outgoing>flow_alert_customer</bpmn:outgoing></bpmn:serviceTask>
|
|
7
|
+
<bpmn:serviceTask id="customer" name="Compare with the declared profile" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["customer_profile","customer_expected","customer_activity","customer_risk"]}" forest:description="Read all 4 of these fields of this alert (every one is needed): "Customer · Declared profile", "Customer · Expected each month", "Customer · Activity against declared" and "Customer · Risk and KYC": the job or business the customer declared, the money in and out they said to expect each month, the last 30 days against it, and their risk rating and KYC."><bpmn:outgoing>flow_customer_transactions</bpmn:outgoing></bpmn:serviceTask>
|
|
8
|
+
<bpmn:serviceTask id="transactions" name="Read the alert's transactions" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["tx_summary","tx_counterparties","tx_countries","tx_flow"]}" forest:description="Read all 4 of these fields of this alert (every one is needed): "Transactions · Summary", "Transactions · Counterparties", "Transactions · Countries" and "Transactions · Money in, money out": how many and how much (and the largest), who paid or was paid, which countries, and how fast the money in left again."><bpmn:outgoing>flow_transactions_history</bpmn:outgoing></bpmn:serviceTask>
|
|
9
|
+
<bpmn:serviceTask id="history" name="Check the customer's history" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["history_alerts","history_cases"]}" forest:description="Read both of these fields of this alert (every one is needed): "History · Earlier alerts" and "History · Investigations": earlier alerts on this customer and how they ended, and any investigation."><bpmn:outgoing>flow_history_explainable</bpmn:outgoing></bpmn:serviceTask>
|
|
10
|
+
<bpmn:exclusiveGateway id="explainable" name="Does the profile explain it?" forest:description="Explained when what the customer declared accounts for the money: a bonus from their own employer, a company's usual clients or suppliers. Not explained when money passes through to strangers or abroad, or lands just under a threshold. Not sure: ask a senior."><bpmn:outgoing>flow_explainable_clear</bpmn:outgoing><bpmn:outgoing>flow_explainable_second_look</bpmn:outgoing><bpmn:outgoing>flow_explainable_escalate</bpmn:outgoing></bpmn:exclusiveGateway>
|
|
11
|
+
<bpmn:serviceTask id="second_look" name="Send for a second look" forest:alternative="trigger-action" forest:automaticCompletion="true" forest:description="Run "Send for a second look" and say what you are unsure about: the alert leaves the AML queue and waits for a senior."><bpmn:outgoing>flow_second_look_to_senior</bpmn:outgoing></bpmn:serviceTask>
|
|
12
|
+
<bpmn:intermediateThrowEvent id="to_senior" name="Ask a senior analyst" forest:inboxId="0f6561e7-1145-5698-8d3a-261b98e5e7a1"><bpmn:outgoing>flow_to_senior_senior_read</bpmn:outgoing></bpmn:intermediateThrowEvent>
|
|
13
|
+
<bpmn:serviceTask id="senior_read" name="Read why the analyst asks" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["result_outcome"]}" forest:description="Read the field "Result · Outcome" of this alert: who sent it for a second look, and why."><bpmn:outgoing>flow_senior_read_senior</bpmn:outgoing></bpmn:serviceTask>
|
|
14
|
+
<bpmn:userTask id="senior" name="Senior review" forest:alternative="guideline" forest:completionType="user-input" forest:inputType="free-text" forest:description="You take over from the analyst: read the "Customer ·", "Transactions ·" and "History ·" lines above, then write in one or two sentences why you clear or escalate."><bpmn:outgoing>flow_senior_senior_decide</bpmn:outgoing></bpmn:userTask>
|
|
15
|
+
<bpmn:exclusiveGateway id="senior_decide" name="Clear or escalate?" forest:description="Your decision, as the senior analyst."><bpmn:outgoing>flow_senior_decide_clear</bpmn:outgoing><bpmn:outgoing>flow_senior_decide_escalate</bpmn:outgoing></bpmn:exclusiveGateway>
|
|
16
|
+
<bpmn:serviceTask id="clear" name="Clear the alert" forest:alternative="trigger-action" forest:automaticCompletion="false" forest:description="Run "Clear alert": the reason and the note are pre-filled; say what explains the money. The result card sums up the decision."><bpmn:outgoing>flow_clear_end_cleared</bpmn:outgoing></bpmn:serviceTask>
|
|
17
|
+
<bpmn:endEvent id="end_cleared" name="Alert cleared"></bpmn:endEvent>
|
|
18
|
+
<bpmn:serviceTask id="escalate" name="Escalate to an investigation" forest:alternative="trigger-action" forest:automaticCompletion="false" forest:description="Run "Escalate": it opens an investigation with the alert's transactions, or adds them to the customer's open one. The result card names the investigation, new or already open, and the transactions it holds."><bpmn:outgoing>flow_escalate_end_escalated</bpmn:outgoing></bpmn:serviceTask>
|
|
19
|
+
<bpmn:endEvent id="end_escalated" name="Sent to investigations"></bpmn:endEvent>
|
|
20
|
+
<bpmn:sequenceFlow id="flow_Start_1_take" sourceRef="Start_1" targetRef="take" />
|
|
21
|
+
<bpmn:sequenceFlow id="flow_take_alert" sourceRef="take" targetRef="alert" />
|
|
22
|
+
<bpmn:sequenceFlow id="flow_alert_customer" sourceRef="alert" targetRef="customer" />
|
|
23
|
+
<bpmn:sequenceFlow id="flow_customer_transactions" sourceRef="customer" targetRef="transactions" />
|
|
24
|
+
<bpmn:sequenceFlow id="flow_transactions_history" sourceRef="transactions" targetRef="history" />
|
|
25
|
+
<bpmn:sequenceFlow id="flow_history_explainable" sourceRef="history" targetRef="explainable" />
|
|
26
|
+
<bpmn:sequenceFlow id="flow_explainable_clear" sourceRef="explainable" targetRef="clear" name="Explained, clear" />
|
|
27
|
+
<bpmn:sequenceFlow id="flow_explainable_second_look" sourceRef="explainable" targetRef="second_look" name="Not sure" forest:buttonColor="yellow" />
|
|
28
|
+
<bpmn:sequenceFlow id="flow_explainable_escalate" sourceRef="explainable" targetRef="escalate" name="Not explained, escalate" forest:buttonColor="red" />
|
|
29
|
+
<bpmn:sequenceFlow id="flow_second_look_to_senior" sourceRef="second_look" targetRef="to_senior" />
|
|
30
|
+
<bpmn:sequenceFlow id="flow_to_senior_senior_read" sourceRef="to_senior" targetRef="senior_read" />
|
|
31
|
+
<bpmn:sequenceFlow id="flow_senior_read_senior" sourceRef="senior_read" targetRef="senior" />
|
|
32
|
+
<bpmn:sequenceFlow id="flow_senior_senior_decide" sourceRef="senior" targetRef="senior_decide" />
|
|
33
|
+
<bpmn:sequenceFlow id="flow_senior_decide_clear" sourceRef="senior_decide" targetRef="clear" name="Clear" />
|
|
34
|
+
<bpmn:sequenceFlow id="flow_senior_decide_escalate" sourceRef="senior_decide" targetRef="escalate" name="Escalate" forest:buttonColor="red" />
|
|
35
|
+
<bpmn:sequenceFlow id="flow_clear_end_cleared" sourceRef="clear" targetRef="end_cleared" />
|
|
36
|
+
<bpmn:sequenceFlow id="flow_escalate_end_escalated" sourceRef="escalate" targetRef="end_escalated" />
|
|
37
|
+
</bpmn:process>
|
|
38
|
+
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
39
|
+
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
|
|
40
|
+
<bpmndi:BPMNShape id="Start_1_di" bpmnElement="Start_1"><dc:Bounds x="160" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
41
|
+
<bpmndi:BPMNShape id="take_di" bpmnElement="take"><dc:Bounds x="256" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
42
|
+
<bpmndi:BPMNShape id="alert_di" bpmnElement="alert"><dc:Bounds x="416" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
43
|
+
<bpmndi:BPMNShape id="customer_di" bpmnElement="customer"><dc:Bounds x="576" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
44
|
+
<bpmndi:BPMNShape id="transactions_di" bpmnElement="transactions"><dc:Bounds x="736" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
45
|
+
<bpmndi:BPMNShape id="history_di" bpmnElement="history"><dc:Bounds x="896" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
46
|
+
<bpmndi:BPMNShape id="explainable_di" bpmnElement="explainable"><dc:Bounds x="1056" y="135" width="50" height="50" /></bpmndi:BPMNShape>
|
|
47
|
+
<bpmndi:BPMNShape id="second_look_di" bpmnElement="second_look"><dc:Bounds x="1166" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
48
|
+
<bpmndi:BPMNShape id="to_senior_di" bpmnElement="to_senior"><dc:Bounds x="1326" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
49
|
+
<bpmndi:BPMNShape id="senior_read_di" bpmnElement="senior_read"><dc:Bounds x="1422" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
50
|
+
<bpmndi:BPMNShape id="senior_di" bpmnElement="senior"><dc:Bounds x="1582" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
51
|
+
<bpmndi:BPMNShape id="senior_decide_di" bpmnElement="senior_decide"><dc:Bounds x="1742" y="135" width="50" height="50" /></bpmndi:BPMNShape>
|
|
52
|
+
<bpmndi:BPMNShape id="clear_di" bpmnElement="clear"><dc:Bounds x="1852" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
53
|
+
<bpmndi:BPMNShape id="end_cleared_di" bpmnElement="end_cleared"><dc:Bounds x="2012" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
54
|
+
<bpmndi:BPMNShape id="escalate_di" bpmnElement="escalate"><dc:Bounds x="2108" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
55
|
+
<bpmndi:BPMNShape id="end_escalated_di" bpmnElement="end_escalated"><dc:Bounds x="2268" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
56
|
+
<bpmndi:BPMNEdge id="flow_Start_1_take_di" bpmnElement="flow_Start_1_take"><di:waypoint x="196" y="160" /><di:waypoint x="256" y="160" /></bpmndi:BPMNEdge>
|
|
57
|
+
<bpmndi:BPMNEdge id="flow_take_alert_di" bpmnElement="flow_take_alert"><di:waypoint x="356" y="160" /><di:waypoint x="416" y="160" /></bpmndi:BPMNEdge>
|
|
58
|
+
<bpmndi:BPMNEdge id="flow_alert_customer_di" bpmnElement="flow_alert_customer"><di:waypoint x="516" y="160" /><di:waypoint x="576" y="160" /></bpmndi:BPMNEdge>
|
|
59
|
+
<bpmndi:BPMNEdge id="flow_customer_transactions_di" bpmnElement="flow_customer_transactions"><di:waypoint x="676" y="160" /><di:waypoint x="736" y="160" /></bpmndi:BPMNEdge>
|
|
60
|
+
<bpmndi:BPMNEdge id="flow_transactions_history_di" bpmnElement="flow_transactions_history"><di:waypoint x="836" y="160" /><di:waypoint x="896" y="160" /></bpmndi:BPMNEdge>
|
|
61
|
+
<bpmndi:BPMNEdge id="flow_history_explainable_di" bpmnElement="flow_history_explainable"><di:waypoint x="996" y="160" /><di:waypoint x="1056" y="160" /></bpmndi:BPMNEdge>
|
|
62
|
+
<bpmndi:BPMNEdge id="flow_explainable_clear_di" bpmnElement="flow_explainable_clear"><di:waypoint x="1106" y="160" /><di:waypoint x="1852" y="160" /></bpmndi:BPMNEdge>
|
|
63
|
+
<bpmndi:BPMNEdge id="flow_explainable_second_look_di" bpmnElement="flow_explainable_second_look"><di:waypoint x="1106" y="160" /><di:waypoint x="1166" y="160" /></bpmndi:BPMNEdge>
|
|
64
|
+
<bpmndi:BPMNEdge id="flow_explainable_escalate_di" bpmnElement="flow_explainable_escalate"><di:waypoint x="1106" y="160" /><di:waypoint x="2108" y="160" /></bpmndi:BPMNEdge>
|
|
65
|
+
<bpmndi:BPMNEdge id="flow_second_look_to_senior_di" bpmnElement="flow_second_look_to_senior"><di:waypoint x="1266" y="160" /><di:waypoint x="1326" y="160" /></bpmndi:BPMNEdge>
|
|
66
|
+
<bpmndi:BPMNEdge id="flow_to_senior_senior_read_di" bpmnElement="flow_to_senior_senior_read"><di:waypoint x="1362" y="160" /><di:waypoint x="1422" y="160" /></bpmndi:BPMNEdge>
|
|
67
|
+
<bpmndi:BPMNEdge id="flow_senior_read_senior_di" bpmnElement="flow_senior_read_senior"><di:waypoint x="1522" y="160" /><di:waypoint x="1582" y="160" /></bpmndi:BPMNEdge>
|
|
68
|
+
<bpmndi:BPMNEdge id="flow_senior_senior_decide_di" bpmnElement="flow_senior_senior_decide"><di:waypoint x="1682" y="160" /><di:waypoint x="1742" y="160" /></bpmndi:BPMNEdge>
|
|
69
|
+
<bpmndi:BPMNEdge id="flow_senior_decide_clear_di" bpmnElement="flow_senior_decide_clear"><di:waypoint x="1792" y="160" /><di:waypoint x="1852" y="160" /></bpmndi:BPMNEdge>
|
|
70
|
+
<bpmndi:BPMNEdge id="flow_senior_decide_escalate_di" bpmnElement="flow_senior_decide_escalate"><di:waypoint x="1792" y="160" /><di:waypoint x="2108" y="160" /></bpmndi:BPMNEdge>
|
|
71
|
+
<bpmndi:BPMNEdge id="flow_clear_end_cleared_di" bpmnElement="flow_clear_end_cleared"><di:waypoint x="1952" y="160" /><di:waypoint x="2012" y="160" /></bpmndi:BPMNEdge>
|
|
72
|
+
<bpmndi:BPMNEdge id="flow_escalate_end_escalated_di" bpmnElement="flow_escalate_end_escalated"><di:waypoint x="2208" y="160" /><di:waypoint x="2268" y="160" /></bpmndi:BPMNEdge>
|
|
73
|
+
</bpmndi:BPMNPlane>
|
|
74
|
+
</bpmndi:BPMNDiagram>
|
|
75
|
+
</bpmn:definitions>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<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" xmlns:forest="https://app.forestadmin.com" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
|
|
3
|
+
<bpmn:process id="Process_1" isExecutable="true">
|
|
4
|
+
<bpmn:startEvent id="Start_1"><bpmn:outgoing>flow_Start_1_hit</bpmn:outgoing></bpmn:startEvent>
|
|
5
|
+
<bpmn:serviceTask id="hit" name="Read the hit" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["hit_list","hit_entry","hit_entry_birth","hit_entry_country","hit_score","hit_found"]}" forest:description="Read all 6 of these fields of this screening hit (every one is needed): "Hit · List", "Hit · List entry", "Hit · Date of birth on the list", "Hit · Country on the list", "Hit · Match score" and "Hit · Found by": the list and its entry, the date of birth and country on the list, the match score, and how ComplyAdvantage found it."><bpmn:outgoing>flow_hit_customer</bpmn:outgoing></bpmn:serviceTask>
|
|
6
|
+
<bpmn:serviceTask id="customer" name="Read who we screened" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["customer_name","customer_birth","customer_country","customer_relationship"]}" forest:description="Read all 4 of these fields of this screening hit (every one is needed): "Customer · Name", "Customer · Date of birth", "Customer · Country" and "Customer · Relationship": our customer, their payee or company, with the date of birth, country and relationship to compare."><bpmn:outgoing>flow_customer_compare</bpmn:outgoing></bpmn:serviceTask>
|
|
7
|
+
<bpmn:serviceTask id="compare" name="Compare the two" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["compare_verdict","compare_name","compare_birth","compare_country"]}" forest:description="Read all 4 of these fields of this screening hit (every one is needed): "Comparison · Verdict", "Comparison · Name", "Comparison · Date of birth" and "Comparison · Country": name, date of birth and country side by side, and the verdict they add up to."><bpmn:outgoing>flow_compare_same_person</bpmn:outgoing></bpmn:serviceTask>
|
|
8
|
+
<bpmn:exclusiveGateway id="same_person" name="Same person?" forest:aiDecision="true" forest:description="Clearly different when "Comparison · Verdict" starts with "✓ Different". Possible match when it starts with ⚠ or ✗: you decide in the next step."><bpmn:outgoing>flow_same_person_payment</bpmn:outgoing><bpmn:outgoing>flow_same_person_decide</bpmn:outgoing></bpmn:exclusiveGateway>
|
|
9
|
+
<bpmn:exclusiveGateway id="decide" name="Your decision" forest:description="Compare the date of birth, the country and the list entry above. True match only when they point to the same person or company: it freezes their accounts and stops their payments."><bpmn:outgoing>flow_decide_payment</bpmn:outgoing><bpmn:outgoing>flow_decide_confirm</bpmn:outgoing></bpmn:exclusiveGateway>
|
|
10
|
+
<bpmn:serviceTask id="payment" name="Is a payment held?" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["payment_held"]}" forest:description="Read the field "Payment · Held payment" of this screening hit: the payment screening stopped, or no payment."><bpmn:outgoing>flow_payment_held</bpmn:outgoing></bpmn:serviceTask>
|
|
11
|
+
<bpmn:exclusiveGateway id="held" name="Release a payment?" forest:aiDecision="true" forest:description="Yes when "Payment · Held payment" starts with "⚠ Held". No otherwise."><bpmn:outgoing>flow_held_discard_release</bpmn:outgoing><bpmn:outgoing>flow_held_discard</bpmn:outgoing></bpmn:exclusiveGateway>
|
|
12
|
+
<bpmn:serviceTask id="discard" name="Discard as false positive" forest:alternative="trigger-action" forest:automaticCompletion="false" forest:description="Run "Discard as false positive" with the reason the comparison gives (another date of birth or another country). An onboarding parked for this hit goes back to its queue. The result card sums up the decision and says no payment is held."><bpmn:outgoing>flow_discard_end_discarded</bpmn:outgoing></bpmn:serviceTask>
|
|
13
|
+
<bpmn:serviceTask id="discard_release" name="Discard as false positive" forest:alternative="trigger-action" forest:automaticCompletion="false" forest:description="Run "Discard as false positive" with the reason the comparison gives (another date of birth or another country). An onboarding parked for this hit goes back to its queue. The result card shows the payment still held: you release it next."><bpmn:outgoing>flow_discard_release_release</bpmn:outgoing></bpmn:serviceTask>
|
|
14
|
+
<bpmn:serviceTask id="release" name="Release the held payment" forest:alternative="trigger-action" forest:automaticCompletion="false" forest:description="Run "Release held payment": the payment leaves through the SEPA network and the money set aside is booked. The result card shows the payment sent, with the time. Every outcome is a human call: you trigger it."><bpmn:outgoing>flow_release_end_released</bpmn:outgoing></bpmn:serviceTask>
|
|
15
|
+
<bpmn:endEvent id="end_released" name="False positive, payment released"></bpmn:endEvent>
|
|
16
|
+
<bpmn:endEvent id="end_discarded" name="False positive closed"></bpmn:endEvent>
|
|
17
|
+
<bpmn:serviceTask id="confirm" name="Confirm true match" forest:alternative="trigger-action" forest:automaticCompletion="false" forest:description="Run "Confirm true match" with what matched. A second analyst approves it (role setting). It flags the person or company, freezes their accounts, blocks their cards, holds the money, stops a held payment and reports the freeze to the DG Trésor (simulated); the result card sums it up."><bpmn:outgoing>flow_confirm_to_mlro</bpmn:outgoing></bpmn:serviceTask>
|
|
18
|
+
<bpmn:serviceTask id="to_mlro" name="Escalate to the MLRO" forest:alternative="trigger-action" forest:automaticExecution="true" forest:automaticCompletion="false" forest:description="Run "Escalate to MLRO": it opens an urgent sanctions investigation due today, waiting for the MLRO, with the stopped payment attached. The result card shows what was done: the decision and the DG Trésor report, the accounts frozen and cards blocked, the money held, the payment stopped and the investigation number."><bpmn:outgoing>flow_to_mlro_end_mlro</bpmn:outgoing></bpmn:serviceTask>
|
|
19
|
+
<bpmn:endEvent id="end_mlro" name="With the MLRO"></bpmn:endEvent>
|
|
20
|
+
<bpmn:sequenceFlow id="flow_Start_1_hit" sourceRef="Start_1" targetRef="hit" />
|
|
21
|
+
<bpmn:sequenceFlow id="flow_hit_customer" sourceRef="hit" targetRef="customer" />
|
|
22
|
+
<bpmn:sequenceFlow id="flow_customer_compare" sourceRef="customer" targetRef="compare" />
|
|
23
|
+
<bpmn:sequenceFlow id="flow_compare_same_person" sourceRef="compare" targetRef="same_person" />
|
|
24
|
+
<bpmn:sequenceFlow id="flow_same_person_payment" sourceRef="same_person" targetRef="payment" name="Clearly different" />
|
|
25
|
+
<bpmn:sequenceFlow id="flow_same_person_decide" sourceRef="same_person" targetRef="decide" name="Possible match" forest:buttonColor="orange" />
|
|
26
|
+
<bpmn:sequenceFlow id="flow_decide_payment" sourceRef="decide" targetRef="payment" name="False positive" />
|
|
27
|
+
<bpmn:sequenceFlow id="flow_decide_confirm" sourceRef="decide" targetRef="confirm" name="True match" forest:buttonColor="red" />
|
|
28
|
+
<bpmn:sequenceFlow id="flow_payment_held" sourceRef="payment" targetRef="held" />
|
|
29
|
+
<bpmn:sequenceFlow id="flow_held_discard_release" sourceRef="held" targetRef="discard_release" name="Yes" />
|
|
30
|
+
<bpmn:sequenceFlow id="flow_held_discard" sourceRef="held" targetRef="discard" name="No" />
|
|
31
|
+
<bpmn:sequenceFlow id="flow_discard_end_discarded" sourceRef="discard" targetRef="end_discarded" />
|
|
32
|
+
<bpmn:sequenceFlow id="flow_discard_release_release" sourceRef="discard_release" targetRef="release" />
|
|
33
|
+
<bpmn:sequenceFlow id="flow_release_end_released" sourceRef="release" targetRef="end_released" />
|
|
34
|
+
<bpmn:sequenceFlow id="flow_confirm_to_mlro" sourceRef="confirm" targetRef="to_mlro" />
|
|
35
|
+
<bpmn:sequenceFlow id="flow_to_mlro_end_mlro" sourceRef="to_mlro" targetRef="end_mlro" />
|
|
36
|
+
</bpmn:process>
|
|
37
|
+
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
38
|
+
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
|
|
39
|
+
<bpmndi:BPMNShape id="Start_1_di" bpmnElement="Start_1"><dc:Bounds x="160" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
40
|
+
<bpmndi:BPMNShape id="hit_di" bpmnElement="hit"><dc:Bounds x="256" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
41
|
+
<bpmndi:BPMNShape id="customer_di" bpmnElement="customer"><dc:Bounds x="416" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
42
|
+
<bpmndi:BPMNShape id="compare_di" bpmnElement="compare"><dc:Bounds x="576" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
43
|
+
<bpmndi:BPMNShape id="same_person_di" bpmnElement="same_person"><dc:Bounds x="736" y="135" width="50" height="50" /></bpmndi:BPMNShape>
|
|
44
|
+
<bpmndi:BPMNShape id="decide_di" bpmnElement="decide"><dc:Bounds x="846" y="135" width="50" height="50" /></bpmndi:BPMNShape>
|
|
45
|
+
<bpmndi:BPMNShape id="payment_di" bpmnElement="payment"><dc:Bounds x="956" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
46
|
+
<bpmndi:BPMNShape id="held_di" bpmnElement="held"><dc:Bounds x="1116" y="135" width="50" height="50" /></bpmndi:BPMNShape>
|
|
47
|
+
<bpmndi:BPMNShape id="discard_di" bpmnElement="discard"><dc:Bounds x="1226" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
48
|
+
<bpmndi:BPMNShape id="discard_release_di" bpmnElement="discard_release"><dc:Bounds x="1386" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
49
|
+
<bpmndi:BPMNShape id="release_di" bpmnElement="release"><dc:Bounds x="1546" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
50
|
+
<bpmndi:BPMNShape id="end_released_di" bpmnElement="end_released"><dc:Bounds x="1706" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
51
|
+
<bpmndi:BPMNShape id="end_discarded_di" bpmnElement="end_discarded"><dc:Bounds x="1802" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
52
|
+
<bpmndi:BPMNShape id="confirm_di" bpmnElement="confirm"><dc:Bounds x="1898" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
53
|
+
<bpmndi:BPMNShape id="to_mlro_di" bpmnElement="to_mlro"><dc:Bounds x="2058" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
54
|
+
<bpmndi:BPMNShape id="end_mlro_di" bpmnElement="end_mlro"><dc:Bounds x="2218" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
55
|
+
<bpmndi:BPMNEdge id="flow_Start_1_hit_di" bpmnElement="flow_Start_1_hit"><di:waypoint x="196" y="160" /><di:waypoint x="256" y="160" /></bpmndi:BPMNEdge>
|
|
56
|
+
<bpmndi:BPMNEdge id="flow_hit_customer_di" bpmnElement="flow_hit_customer"><di:waypoint x="356" y="160" /><di:waypoint x="416" y="160" /></bpmndi:BPMNEdge>
|
|
57
|
+
<bpmndi:BPMNEdge id="flow_customer_compare_di" bpmnElement="flow_customer_compare"><di:waypoint x="516" y="160" /><di:waypoint x="576" y="160" /></bpmndi:BPMNEdge>
|
|
58
|
+
<bpmndi:BPMNEdge id="flow_compare_same_person_di" bpmnElement="flow_compare_same_person"><di:waypoint x="676" y="160" /><di:waypoint x="736" y="160" /></bpmndi:BPMNEdge>
|
|
59
|
+
<bpmndi:BPMNEdge id="flow_same_person_payment_di" bpmnElement="flow_same_person_payment"><di:waypoint x="786" y="160" /><di:waypoint x="956" y="160" /></bpmndi:BPMNEdge>
|
|
60
|
+
<bpmndi:BPMNEdge id="flow_same_person_decide_di" bpmnElement="flow_same_person_decide"><di:waypoint x="786" y="160" /><di:waypoint x="846" y="160" /></bpmndi:BPMNEdge>
|
|
61
|
+
<bpmndi:BPMNEdge id="flow_decide_payment_di" bpmnElement="flow_decide_payment"><di:waypoint x="896" y="160" /><di:waypoint x="956" y="160" /></bpmndi:BPMNEdge>
|
|
62
|
+
<bpmndi:BPMNEdge id="flow_decide_confirm_di" bpmnElement="flow_decide_confirm"><di:waypoint x="896" y="160" /><di:waypoint x="1898" y="160" /></bpmndi:BPMNEdge>
|
|
63
|
+
<bpmndi:BPMNEdge id="flow_payment_held_di" bpmnElement="flow_payment_held"><di:waypoint x="1056" y="160" /><di:waypoint x="1116" y="160" /></bpmndi:BPMNEdge>
|
|
64
|
+
<bpmndi:BPMNEdge id="flow_held_discard_release_di" bpmnElement="flow_held_discard_release"><di:waypoint x="1166" y="160" /><di:waypoint x="1386" y="160" /></bpmndi:BPMNEdge>
|
|
65
|
+
<bpmndi:BPMNEdge id="flow_held_discard_di" bpmnElement="flow_held_discard"><di:waypoint x="1166" y="160" /><di:waypoint x="1226" y="160" /></bpmndi:BPMNEdge>
|
|
66
|
+
<bpmndi:BPMNEdge id="flow_discard_end_discarded_di" bpmnElement="flow_discard_end_discarded"><di:waypoint x="1326" y="160" /><di:waypoint x="1802" y="160" /></bpmndi:BPMNEdge>
|
|
67
|
+
<bpmndi:BPMNEdge id="flow_discard_release_release_di" bpmnElement="flow_discard_release_release"><di:waypoint x="1486" y="160" /><di:waypoint x="1546" y="160" /></bpmndi:BPMNEdge>
|
|
68
|
+
<bpmndi:BPMNEdge id="flow_release_end_released_di" bpmnElement="flow_release_end_released"><di:waypoint x="1646" y="160" /><di:waypoint x="1706" y="160" /></bpmndi:BPMNEdge>
|
|
69
|
+
<bpmndi:BPMNEdge id="flow_confirm_to_mlro_di" bpmnElement="flow_confirm_to_mlro"><di:waypoint x="1998" y="160" /><di:waypoint x="2058" y="160" /></bpmndi:BPMNEdge>
|
|
70
|
+
<bpmndi:BPMNEdge id="flow_to_mlro_end_mlro_di" bpmnElement="flow_to_mlro_end_mlro"><di:waypoint x="2158" y="160" /><di:waypoint x="2218" y="160" /></bpmndi:BPMNEdge>
|
|
71
|
+
</bpmndi:BPMNPlane>
|
|
72
|
+
</bpmndi:BPMNDiagram>
|
|
73
|
+
</bpmn:definitions>
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<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" xmlns:forest="https://app.forestadmin.com" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
|
|
3
|
+
<bpmn:process id="Process_1" isExecutable="true">
|
|
4
|
+
<bpmn:startEvent id="Start_1"><bpmn:outgoing>flow_Start_1_original</bpmn:outgoing></bpmn:startEvent>
|
|
5
|
+
<bpmn:serviceTask id="original" name="Read the original payment" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["og_received","og_payer"]}" forest:description="Read both of these fields of this SEPA dispute (every one is needed): "Original payment · Received" and "Original payment · Payer": when the money reached our customer, and who sent it."><bpmn:outgoing>flow_original_recall</bpmn:outgoing></bpmn:serviceTask>
|
|
6
|
+
<bpmn:serviceTask id="recall" name="Read the recall" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["rc_reason","rc_bank","rc_amount","rc_deadline"]}" forest:description="Read all 4 of these fields of this SEPA dispute (every one is needed): "Recall · Reason", "Recall · Asking bank", "Recall · Amount" and "Recall · Deadline": the reason code, the bank asking, the amount and the deadline to answer."><bpmn:outgoing>flow_recall_reason</bpmn:outgoing></bpmn:serviceTask>
|
|
7
|
+
<bpmn:exclusiveGateway id="reason" name="Fraud or a mistake?" forest:aiDecision="true" forest:description="Fraud when "Recall · Reason" starts with "FRAD". Customer must agree otherwise (DUPL, TECH, AC03, AM09): the money is our customer's until they say yes."><bpmn:outgoing>flow_reason_fraud</bpmn:outgoing><bpmn:outgoing>flow_reason_customer</bpmn:outgoing></bpmn:exclusiveGateway>
|
|
8
|
+
<bpmn:serviceTask id="fraud" name="Escalate to fraud" forest:alternative="trigger-action" forest:automaticExecution="true" forest:automaticCompletion="false" forest:description="Run "Escalate to fraud": the money mule alert goes to the fraud team (monitoring may have raised it already) and what is left of the money is held until we answer."><bpmn:outgoing>flow_fraud_funds</bpmn:outgoing></bpmn:serviceTask>
|
|
9
|
+
<bpmn:serviceTask id="customer" name="Read the customer's consent" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["cu_consent","cu_holder"]}" forest:description="Read both of these fields of this SEPA dispute (every one is needed): "Customer · Consent" and "Customer · Account holder": who holds the account, and whether they were asked, agreed or refused."><bpmn:outgoing>flow_customer_consent</bpmn:outgoing></bpmn:serviceTask>
|
|
10
|
+
<bpmn:exclusiveGateway id="consent" name="Customer's answer?" forest:aiDecision="true" forest:description="Not asked when "Customer · Consent" starts with "⚠ Not asked yet". Agreed when it starts with "✓ Agreed". Refused when it starts with "✗"."><bpmn:outgoing>flow_consent_ask</bpmn:outgoing><bpmn:outgoing>flow_consent_funds</bpmn:outgoing><bpmn:outgoing>flow_consent_refuse</bpmn:outgoing></bpmn:exclusiveGateway>
|
|
11
|
+
<bpmn:serviceTask id="ask" name="Ask the customer for consent" forest:alternative="trigger-action" forest:automaticCompletion="false" forest:description="Run "Ask the customer for consent": a request goes to the customer in the app and the recall leaves "Recalls we received" until they answer. Nothing is held: the money is theirs until they agree. The result card shows the request, when it was sent and when the answer is due."><bpmn:outgoing>flow_ask_end_waiting</bpmn:outgoing></bpmn:serviceTask>
|
|
12
|
+
<bpmn:endEvent id="end_waiting" name="Waiting on the customer"></bpmn:endEvent>
|
|
13
|
+
<bpmn:serviceTask id="funds" name="Is the money still there?" forest:alternative="get-data" forest:automaticCompletion="false" forest:preRecordedArgs="{"selectedRecordStepId":"workflow-start","fieldNames":["fd_there","fd_holds"]}" forest:description="Read both of these fields of this SEPA dispute (every one is needed): "Funds · On the account" and "Funds · Holds": what can still go back (held for this recall, on a fraud or once the customer agreed, or free on the account), and the holds."><bpmn:outgoing>flow_funds_funds_ok</bpmn:outgoing></bpmn:serviceTask>
|
|
14
|
+
<bpmn:exclusiveGateway id="funds_ok" name="Money to send back?" forest:aiDecision="true" forest:description="Money to send back when "Funds · On the account" starts with "✓ All there" or "⚠ Part left". Nothing left when it starts with "✗ Spent"."><bpmn:outgoing>flow_funds_ok_return</bpmn:outgoing><bpmn:outgoing>flow_funds_ok_refuse</bpmn:outgoing></bpmn:exclusiveGateway>
|
|
15
|
+
<bpmn:serviceTask id="return" name="Accept and return the funds" forest:alternative="trigger-action" forest:automaticCompletion="false" forest:description="Run "Accept and return funds": the money goes back to the other bank through STET (a pacs.004 return) and the hold is released. The result card shows what went back, and the interbank message."><bpmn:outgoing>flow_return_end_returned</bpmn:outgoing></bpmn:serviceTask>
|
|
16
|
+
<bpmn:endEvent id="end_returned" name="Funds returned"></bpmn:endEvent>
|
|
17
|
+
<bpmn:serviceTask id="refuse" name="Refuse with a reason" forest:alternative="trigger-action" forest:automaticCompletion="false" forest:description="Run "Refuse with a reason": the SEPA refusal code is pre-filled (AM04 when no money is left, CUST when the customer refuses); the other bank gets a negative answer through STET. The result card shows the refusal, and the interbank message."><bpmn:outgoing>flow_refuse_end_refused</bpmn:outgoing></bpmn:serviceTask>
|
|
18
|
+
<bpmn:endEvent id="end_refused" name="Recall refused"></bpmn:endEvent>
|
|
19
|
+
<bpmn:sequenceFlow id="flow_Start_1_original" sourceRef="Start_1" targetRef="original" />
|
|
20
|
+
<bpmn:sequenceFlow id="flow_original_recall" sourceRef="original" targetRef="recall" />
|
|
21
|
+
<bpmn:sequenceFlow id="flow_recall_reason" sourceRef="recall" targetRef="reason" />
|
|
22
|
+
<bpmn:sequenceFlow id="flow_reason_fraud" sourceRef="reason" targetRef="fraud" name="Fraud" forest:buttonColor="red" />
|
|
23
|
+
<bpmn:sequenceFlow id="flow_reason_customer" sourceRef="reason" targetRef="customer" name="Customer must agree" forest:buttonColor="yellow" />
|
|
24
|
+
<bpmn:sequenceFlow id="flow_fraud_funds" sourceRef="fraud" targetRef="funds" />
|
|
25
|
+
<bpmn:sequenceFlow id="flow_customer_consent" sourceRef="customer" targetRef="consent" />
|
|
26
|
+
<bpmn:sequenceFlow id="flow_consent_ask" sourceRef="consent" targetRef="ask" name="Not asked yet" />
|
|
27
|
+
<bpmn:sequenceFlow id="flow_consent_funds" sourceRef="consent" targetRef="funds" name="Agreed" />
|
|
28
|
+
<bpmn:sequenceFlow id="flow_consent_refuse" sourceRef="consent" targetRef="refuse" name="Refused" forest:buttonColor="red" />
|
|
29
|
+
<bpmn:sequenceFlow id="flow_ask_end_waiting" sourceRef="ask" targetRef="end_waiting" />
|
|
30
|
+
<bpmn:sequenceFlow id="flow_funds_funds_ok" sourceRef="funds" targetRef="funds_ok" />
|
|
31
|
+
<bpmn:sequenceFlow id="flow_funds_ok_return" sourceRef="funds_ok" targetRef="return" name="Money to send back" />
|
|
32
|
+
<bpmn:sequenceFlow id="flow_funds_ok_refuse" sourceRef="funds_ok" targetRef="refuse" name="Nothing left" forest:buttonColor="orange" />
|
|
33
|
+
<bpmn:sequenceFlow id="flow_return_end_returned" sourceRef="return" targetRef="end_returned" />
|
|
34
|
+
<bpmn:sequenceFlow id="flow_refuse_end_refused" sourceRef="refuse" targetRef="end_refused" />
|
|
35
|
+
</bpmn:process>
|
|
36
|
+
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
37
|
+
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
|
|
38
|
+
<bpmndi:BPMNShape id="Start_1_di" bpmnElement="Start_1"><dc:Bounds x="160" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
39
|
+
<bpmndi:BPMNShape id="original_di" bpmnElement="original"><dc:Bounds x="256" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
40
|
+
<bpmndi:BPMNShape id="recall_di" bpmnElement="recall"><dc:Bounds x="416" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
41
|
+
<bpmndi:BPMNShape id="reason_di" bpmnElement="reason"><dc:Bounds x="576" y="135" width="50" height="50" /></bpmndi:BPMNShape>
|
|
42
|
+
<bpmndi:BPMNShape id="fraud_di" bpmnElement="fraud"><dc:Bounds x="686" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
43
|
+
<bpmndi:BPMNShape id="customer_di" bpmnElement="customer"><dc:Bounds x="846" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
44
|
+
<bpmndi:BPMNShape id="consent_di" bpmnElement="consent"><dc:Bounds x="1006" y="135" width="50" height="50" /></bpmndi:BPMNShape>
|
|
45
|
+
<bpmndi:BPMNShape id="ask_di" bpmnElement="ask"><dc:Bounds x="1116" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
46
|
+
<bpmndi:BPMNShape id="end_waiting_di" bpmnElement="end_waiting"><dc:Bounds x="1276" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
47
|
+
<bpmndi:BPMNShape id="funds_di" bpmnElement="funds"><dc:Bounds x="1372" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
48
|
+
<bpmndi:BPMNShape id="funds_ok_di" bpmnElement="funds_ok"><dc:Bounds x="1532" y="135" width="50" height="50" /></bpmndi:BPMNShape>
|
|
49
|
+
<bpmndi:BPMNShape id="return_di" bpmnElement="return"><dc:Bounds x="1642" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
50
|
+
<bpmndi:BPMNShape id="end_returned_di" bpmnElement="end_returned"><dc:Bounds x="1802" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
51
|
+
<bpmndi:BPMNShape id="refuse_di" bpmnElement="refuse"><dc:Bounds x="1898" y="120" width="100" height="80" /></bpmndi:BPMNShape>
|
|
52
|
+
<bpmndi:BPMNShape id="end_refused_di" bpmnElement="end_refused"><dc:Bounds x="2058" y="142" width="36" height="36" /></bpmndi:BPMNShape>
|
|
53
|
+
<bpmndi:BPMNEdge id="flow_Start_1_original_di" bpmnElement="flow_Start_1_original"><di:waypoint x="196" y="160" /><di:waypoint x="256" y="160" /></bpmndi:BPMNEdge>
|
|
54
|
+
<bpmndi:BPMNEdge id="flow_original_recall_di" bpmnElement="flow_original_recall"><di:waypoint x="356" y="160" /><di:waypoint x="416" y="160" /></bpmndi:BPMNEdge>
|
|
55
|
+
<bpmndi:BPMNEdge id="flow_recall_reason_di" bpmnElement="flow_recall_reason"><di:waypoint x="516" y="160" /><di:waypoint x="576" y="160" /></bpmndi:BPMNEdge>
|
|
56
|
+
<bpmndi:BPMNEdge id="flow_reason_fraud_di" bpmnElement="flow_reason_fraud"><di:waypoint x="626" y="160" /><di:waypoint x="686" y="160" /></bpmndi:BPMNEdge>
|
|
57
|
+
<bpmndi:BPMNEdge id="flow_reason_customer_di" bpmnElement="flow_reason_customer"><di:waypoint x="626" y="160" /><di:waypoint x="846" y="160" /></bpmndi:BPMNEdge>
|
|
58
|
+
<bpmndi:BPMNEdge id="flow_fraud_funds_di" bpmnElement="flow_fraud_funds"><di:waypoint x="786" y="160" /><di:waypoint x="1372" y="160" /></bpmndi:BPMNEdge>
|
|
59
|
+
<bpmndi:BPMNEdge id="flow_customer_consent_di" bpmnElement="flow_customer_consent"><di:waypoint x="946" y="160" /><di:waypoint x="1006" y="160" /></bpmndi:BPMNEdge>
|
|
60
|
+
<bpmndi:BPMNEdge id="flow_consent_ask_di" bpmnElement="flow_consent_ask"><di:waypoint x="1056" y="160" /><di:waypoint x="1116" y="160" /></bpmndi:BPMNEdge>
|
|
61
|
+
<bpmndi:BPMNEdge id="flow_consent_funds_di" bpmnElement="flow_consent_funds"><di:waypoint x="1056" y="160" /><di:waypoint x="1372" y="160" /></bpmndi:BPMNEdge>
|
|
62
|
+
<bpmndi:BPMNEdge id="flow_consent_refuse_di" bpmnElement="flow_consent_refuse"><di:waypoint x="1056" y="160" /><di:waypoint x="1898" y="160" /></bpmndi:BPMNEdge>
|
|
63
|
+
<bpmndi:BPMNEdge id="flow_ask_end_waiting_di" bpmnElement="flow_ask_end_waiting"><di:waypoint x="1216" y="160" /><di:waypoint x="1276" y="160" /></bpmndi:BPMNEdge>
|
|
64
|
+
<bpmndi:BPMNEdge id="flow_funds_funds_ok_di" bpmnElement="flow_funds_funds_ok"><di:waypoint x="1472" y="160" /><di:waypoint x="1532" y="160" /></bpmndi:BPMNEdge>
|
|
65
|
+
<bpmndi:BPMNEdge id="flow_funds_ok_return_di" bpmnElement="flow_funds_ok_return"><di:waypoint x="1582" y="160" /><di:waypoint x="1642" y="160" /></bpmndi:BPMNEdge>
|
|
66
|
+
<bpmndi:BPMNEdge id="flow_funds_ok_refuse_di" bpmnElement="flow_funds_ok_refuse"><di:waypoint x="1582" y="160" /><di:waypoint x="1898" y="160" /></bpmndi:BPMNEdge>
|
|
67
|
+
<bpmndi:BPMNEdge id="flow_return_end_returned_di" bpmnElement="flow_return_end_returned"><di:waypoint x="1742" y="160" /><di:waypoint x="1802" y="160" /></bpmndi:BPMNEdge>
|
|
68
|
+
<bpmndi:BPMNEdge id="flow_refuse_end_refused_di" bpmnElement="flow_refuse_end_refused"><di:waypoint x="1998" y="160" /><di:waypoint x="2058" y="160" /></bpmndi:BPMNEdge>
|
|
69
|
+
</bpmndi:BPMNPlane>
|
|
70
|
+
</bpmndi:BPMNDiagram>
|
|
71
|
+
</bpmn:definitions>
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
require('dotenv').config();
|
|
2
2
|
const { createAgent } = require('@forestadmin/agent');
|
|
3
3
|
{{#if isDemo}}
|
|
4
|
-
const {
|
|
4
|
+
const { createDemoBankDataSource } = require('@forestadmin/datasource-demo-bank');
|
|
5
|
+
const express = require('express');
|
|
6
|
+
const path = require('path');
|
|
5
7
|
{{else}}
|
|
6
8
|
{{#if isMongo}}
|
|
7
9
|
const { createMongoDataSource } = require('@forestadmin/datasource-mongo');
|
|
@@ -33,10 +35,10 @@ const agent = createAgent({
|
|
|
33
35
|
// Connect your datasources
|
|
34
36
|
// All options are documented at https://docs.forestadmin.com/developer-guide-agents-nodejs/data-sources/connection
|
|
35
37
|
{{#if isDemo}}
|
|
36
|
-
// Demo data source:
|
|
37
|
-
// database — no external database to connect.
|
|
38
|
+
// Demo data source: a bank's back office (onboarding, alerts, disputes…) with realistic sample
|
|
39
|
+
// data on a self-contained local SQLite database — no external database to connect.
|
|
38
40
|
// Replace it with your real database: https://docs.forestadmin.com/developer-guide-agents-nodejs/data-sources/connection
|
|
39
|
-
agent.addDataSource(
|
|
41
|
+
agent.addDataSource(createDemoBankDataSource());
|
|
40
42
|
{{else}}
|
|
41
43
|
{{#if isMongo}}
|
|
42
44
|
agent.addDataSource(
|
|
@@ -96,10 +98,43 @@ agent.addDataSource(
|
|
|
96
98
|
|
|
97
99
|
// Run Forest Admin workflows in this process, using an in-memory run store.
|
|
98
100
|
// Runs are lost on restart; switch to `{ database: { uri: process.env.DATABASE_URL } }` to persist them.
|
|
101
|
+
{{#if isDemo}}
|
|
102
|
+
// The demo's agent runs on express (below), so the executor is told where it answers.
|
|
103
|
+
agent.addWorkflowExecutor({
|
|
104
|
+
inMemory: true,
|
|
105
|
+
agentUrl: `http://localhost:${process.env.APPLICATION_PORT}`,
|
|
106
|
+
});
|
|
107
|
+
{{else}}
|
|
99
108
|
agent.addWorkflowExecutor({ inMemory: true });
|
|
109
|
+
{{/if}}
|
|
100
110
|
|
|
111
|
+
{{#if isDemo}}
|
|
112
|
+
// Expose an HTTP endpoint. It also serves the demo's Custom components (the Hub, the desk guides…)
|
|
113
|
+
// from public/: the layout loads them from this agent, at /public/smart-components/…. CORS as the
|
|
114
|
+
// agent answers it: the caller's origin with credentials, and Chrome's check for a public page
|
|
115
|
+
// calling localhost.
|
|
116
|
+
const app = express();
|
|
117
|
+
app.use(
|
|
118
|
+
'/public',
|
|
119
|
+
(req, res, next) => {
|
|
120
|
+
res.set({
|
|
121
|
+
'Access-Control-Allow-Origin': req.headers.origin || '*',
|
|
122
|
+
'Access-Control-Allow-Credentials': 'true',
|
|
123
|
+
'Access-Control-Allow-Headers': req.headers['access-control-request-headers'] || '*',
|
|
124
|
+
'Access-Control-Allow-Private-Network': 'true',
|
|
125
|
+
Vary: 'Origin',
|
|
126
|
+
});
|
|
127
|
+
if (req.method === 'OPTIONS') res.sendStatus(204);
|
|
128
|
+
else next();
|
|
129
|
+
},
|
|
130
|
+
express.static(path.resolve('public')),
|
|
131
|
+
);
|
|
132
|
+
agent.mountOnExpress(app);
|
|
133
|
+
const server = app.listen(Number(process.env.APPLICATION_PORT));
|
|
134
|
+
{{else}}
|
|
101
135
|
// Expose an HTTP endpoint.
|
|
102
136
|
agent.mountOnStandaloneServer(Number(process.env.APPLICATION_PORT));
|
|
137
|
+
{{/if}}
|
|
103
138
|
|
|
104
139
|
// Start the agent.
|
|
105
140
|
agent.start().catch(error => {
|
|
@@ -112,6 +147,12 @@ agent.start().catch(error => {
|
|
|
112
147
|
// Stop the agent gracefully on shutdown, so in-flight work drains before the process exits.
|
|
113
148
|
async function shutdown() {
|
|
114
149
|
try {
|
|
150
|
+
{{#if isDemo}}
|
|
151
|
+
// Stop taking requests and let the ones in flight finish, then stop the agent.
|
|
152
|
+
await new Promise((resolve, reject) => {
|
|
153
|
+
server.close(error => (error ? reject(error) : resolve()));
|
|
154
|
+
});
|
|
155
|
+
{{/if}}
|
|
115
156
|
await agent.stop();
|
|
116
157
|
process.exit(0);
|
|
117
158
|
} catch (error) {
|