forest-cli 5.18.0 → 5.19.0
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/commands/layout/patch.d.ts +69 -0
- package/dist/commands/layout/patch.d.ts.map +1 -0
- package/dist/commands/layout/patch.js +308 -0
- package/dist/services/dumpers/abstract-dumper.d.ts +1 -0
- package/dist/services/dumpers/abstract-dumper.d.ts.map +1 -1
- package/dist/services/dumpers/abstract-dumper.js +14 -1
- package/dist/services/dumpers/agent-nodejs.d.ts +1 -0
- package/dist/services/dumpers/agent-nodejs.d.ts.map +1 -1
- package/dist/services/dumpers/agent-nodejs.js +9 -1
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/30d581e3-294e-4790-b723-0f16509ecae0.bpmn +2 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/52e0acb4-6064-472a-9823-cdfd7fa7a3ab.bpmn +2 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/71f692b4-fe4f-476d-8251-fdc5af1ec51e.bpmn +2 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/9d564d80-19d1-4ce4-bb4b-aaf41e7ef5b6.bpmn +2 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/c8ab4b5d-20df-4d28-9160-0d4376282c90.bpmn +2 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/d0289f67-2c9e-4c69-b1ee-ecbbace841b3.bpmn +2 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/d07aa5ee-9a49-4916-a1b5-1f953bfe9a8e.bpmn +2 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/e25c6237-b882-498b-9655-b16b30131b10.bpmn +2 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/f01b9e61-4156-47b8-b6a1-5c90adbcd2ba.bpmn +2 -0
- package/oclif.manifest.json +65 -1
- package/package.json +5 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { LayoutDomain, PlannedOp } from '../../services/layout/types';
|
|
2
|
+
import type { Config } from '@oclif/core';
|
|
3
|
+
import AbstractAuthenticatedCommand from '../../abstract-authenticated-command';
|
|
4
|
+
type RawOp = {
|
|
5
|
+
op: string;
|
|
6
|
+
path: string;
|
|
7
|
+
value?: unknown;
|
|
8
|
+
};
|
|
9
|
+
type PatchInput = Partial<Record<LayoutDomain, RawOp[]>>;
|
|
10
|
+
export declare function toPlannedOps(domain: Exclude<LayoutDomain, 'workflows'>, rawOps: RawOp[]): PlannedOp[];
|
|
11
|
+
export declare function buildAllOps(input: PatchInput): PlannedOp[];
|
|
12
|
+
/**
|
|
13
|
+
* When stdin is not an interactive terminal — the patch is piped, or the
|
|
14
|
+
* command runs in CI / spawned by an agent, even with a file argument — no
|
|
15
|
+
* inquirer prompt (project, environment, team, confirmation) can run: it would
|
|
16
|
+
* read from a pipe and hang or crash. Non-TTY runs therefore require the full
|
|
17
|
+
* scope and `--force` up front — fail fast, listing exactly what is missing.
|
|
18
|
+
*
|
|
19
|
+
* `FOREST_ENV_SECRET` only stands in for `-p/--projectId`: scope resolution
|
|
20
|
+
* derives the project from the secret (`withCurrentProject`) but NEVER the
|
|
21
|
+
* environment — without `-e/--env` it would still prompt.
|
|
22
|
+
*/
|
|
23
|
+
export declare function assertNonInteractiveFlags(flags: {
|
|
24
|
+
env?: string;
|
|
25
|
+
force?: boolean;
|
|
26
|
+
projectId?: number;
|
|
27
|
+
team?: string;
|
|
28
|
+
}, hasEnvSecret: boolean): void;
|
|
29
|
+
export declare function formatOps(allOps: PlannedOp[]): string;
|
|
30
|
+
/**
|
|
31
|
+
* `forest layout patch` — send a JSON-Patch array straight to the environment,
|
|
32
|
+
* exactly like the frontend does when you tweak a collection: a single
|
|
33
|
+
* `PATCH /api/:domain` per domain, no `pull`/`diff`/`apply` round-trip.
|
|
34
|
+
*
|
|
35
|
+
* Scope: the layout-only domains (`layout`, `folders`). `workflows` is out of
|
|
36
|
+
* scope here — see {@link buildAllOps}.
|
|
37
|
+
*
|
|
38
|
+
* Input format (file or stdin):
|
|
39
|
+
* {
|
|
40
|
+
* "layout": [{ "op": "replace", "path": "/collections/orders/displayName", "value": "Orders" }],
|
|
41
|
+
* "folders": [{ "op": "add", "path": "/folders/<mainId>/children/-", "value": {...} }]
|
|
42
|
+
* }
|
|
43
|
+
*
|
|
44
|
+
* Any non-TTY run (piped input, CI, spawned by an agent) is non-interactive by
|
|
45
|
+
* construction: it requires the full scope flags and `--force` — see
|
|
46
|
+
* {@link assertNonInteractiveFlags}.
|
|
47
|
+
*/
|
|
48
|
+
export default class LayoutPatchCommand extends AbstractAuthenticatedCommand {
|
|
49
|
+
private readonly env;
|
|
50
|
+
private readonly inquirer;
|
|
51
|
+
static args: {
|
|
52
|
+
file: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
53
|
+
};
|
|
54
|
+
static description: string;
|
|
55
|
+
static flags: {
|
|
56
|
+
'dry-run': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
57
|
+
env: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
58
|
+
force: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
59
|
+
projectId: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
60
|
+
team: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
61
|
+
};
|
|
62
|
+
constructor(argv: string[], config: Config, plan?: any);
|
|
63
|
+
protected runAuthenticated(): Promise<void>;
|
|
64
|
+
/** One atomic PATCH per domain, in stable order. Exits 2 on a recoverable API error. */
|
|
65
|
+
private sendPatches;
|
|
66
|
+
private confirm;
|
|
67
|
+
}
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=patch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch.d.ts","source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AEU,IAAI,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,KAAA;cAQjC,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IA+CjD,wFAAwF;YAC1E,WAAW;YAqCX,OAAO;CAiBtB"}
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.formatOps = exports.assertNonInteractiveFlags = exports.buildAllOps = exports.toPlannedOps = void 0;
|
|
7
|
+
const core_1 = require("@oclif/core");
|
|
8
|
+
const promises_1 = require("fs/promises");
|
|
9
|
+
const path_1 = __importDefault(require("path"));
|
|
10
|
+
const abstract_authenticated_command_1 = __importDefault(require("../../abstract-authenticated-command"));
|
|
11
|
+
const errors_1 = require("../../services/layout/errors");
|
|
12
|
+
const layout_manager_1 = __importDefault(require("../../services/layout/layout-manager"));
|
|
13
|
+
const patch_rules_1 = require("../../services/layout/patch-rules");
|
|
14
|
+
const plan_format_1 = require("../../services/layout/plan-format");
|
|
15
|
+
const resolve_command_scope_1 = require("../../services/layout/resolve-command-scope");
|
|
16
|
+
const types_1 = require("../../services/layout/types");
|
|
17
|
+
/**
|
|
18
|
+
* Domains this command accepts. Scoped to the layout-only domains on purpose:
|
|
19
|
+
* `workflows` is deferred because creating a workflow is not a single layout
|
|
20
|
+
* PATCH — it also needs a BPMN upload to S3 (use `forest layout apply` for that).
|
|
21
|
+
*/
|
|
22
|
+
const PATCH_DOMAINS = ['layout', 'folders'];
|
|
23
|
+
const OP_PREFIX = { add: '+', remove: '-', replace: '~' };
|
|
24
|
+
const STDIN_FIRST_BYTE_TIMEOUT_MS = 10000;
|
|
25
|
+
function readStdin() {
|
|
26
|
+
return new Promise((resolve, reject) => {
|
|
27
|
+
let data = '';
|
|
28
|
+
let timeout;
|
|
29
|
+
// Detach our listeners and release stdin on every exit path: a lingering
|
|
30
|
+
// flowing-mode listener would keep the event loop alive and hang the CLI.
|
|
31
|
+
const cleanup = () => {
|
|
32
|
+
clearTimeout(timeout);
|
|
33
|
+
process.stdin.removeAllListeners('data');
|
|
34
|
+
process.stdin.removeAllListeners('end');
|
|
35
|
+
process.stdin.removeAllListeners('error');
|
|
36
|
+
process.stdin.pause();
|
|
37
|
+
};
|
|
38
|
+
// In a spawned process with an open-but-silent stdin, `isTTY` is undefined
|
|
39
|
+
// and `end` never fires (oclif's own parser defends against the same hang):
|
|
40
|
+
// give the FIRST byte a deadline, then let a slow-but-real pipe stream for
|
|
41
|
+
// as long as it needs.
|
|
42
|
+
timeout = setTimeout(() => {
|
|
43
|
+
cleanup();
|
|
44
|
+
reject(new Error(`No data received on stdin after ${STDIN_FIRST_BYTE_TIMEOUT_MS / 1000}s. ` +
|
|
45
|
+
'Pass a JSON file argument, or pipe the patch via stdin.'));
|
|
46
|
+
}, STDIN_FIRST_BYTE_TIMEOUT_MS);
|
|
47
|
+
process.stdin.setEncoding('utf8');
|
|
48
|
+
process.stdin.on('data', chunk => {
|
|
49
|
+
clearTimeout(timeout);
|
|
50
|
+
data += chunk;
|
|
51
|
+
});
|
|
52
|
+
process.stdin.on('end', () => {
|
|
53
|
+
cleanup();
|
|
54
|
+
resolve(data);
|
|
55
|
+
});
|
|
56
|
+
process.stdin.on('error', error => {
|
|
57
|
+
cleanup();
|
|
58
|
+
reject(error);
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
async function readRawInput(filePath) {
|
|
63
|
+
if (!filePath || filePath === '-') {
|
|
64
|
+
if (process.stdin.isTTY) {
|
|
65
|
+
throw new Error('No input provided. Pass a JSON file or pipe the patch via stdin.\n' +
|
|
66
|
+
' Example: forest layout:patch ops.json --env Production\n' +
|
|
67
|
+
' Example: echo \'{"layout":[...]}\' | forest layout:patch --force -p 42 -e Production -t Operations');
|
|
68
|
+
}
|
|
69
|
+
return readStdin();
|
|
70
|
+
}
|
|
71
|
+
return (0, promises_1.readFile)(path_1.default.resolve(process.cwd(), filePath), 'utf8');
|
|
72
|
+
}
|
|
73
|
+
async function readInput(filePath) {
|
|
74
|
+
const raw = await readRawInput(filePath);
|
|
75
|
+
let parsed;
|
|
76
|
+
try {
|
|
77
|
+
parsed = JSON.parse(raw);
|
|
78
|
+
}
|
|
79
|
+
catch {
|
|
80
|
+
throw new Error('Invalid JSON: could not parse the patch input.');
|
|
81
|
+
}
|
|
82
|
+
if (typeof parsed !== 'object' || parsed === null || Array.isArray(parsed)) {
|
|
83
|
+
throw new Error('Invalid patch input: expected a JSON object with domain keys (e.g. {"layout": [...], "folders": [...]}).');
|
|
84
|
+
}
|
|
85
|
+
return parsed;
|
|
86
|
+
}
|
|
87
|
+
function toPlannedOps(domain, rawOps) {
|
|
88
|
+
return rawOps.map((raw, i) => {
|
|
89
|
+
if (typeof raw !== 'object' || raw === null || Array.isArray(raw)) {
|
|
90
|
+
throw new Error(`[${domain}][${i}]: each operation must be a JSON object.`);
|
|
91
|
+
}
|
|
92
|
+
if (!['add', 'replace', 'remove', 'test'].includes(raw.op)) {
|
|
93
|
+
throw new Error(`[${domain}][${i}]: unknown op "${raw.op}".`);
|
|
94
|
+
}
|
|
95
|
+
if (typeof raw.path !== 'string' || !raw.path.startsWith('/')) {
|
|
96
|
+
throw new Error(`[${domain}][${i}]: path must be a string starting with "/".`);
|
|
97
|
+
}
|
|
98
|
+
if ((raw.op === 'add' || raw.op === 'replace' || raw.op === 'test') &&
|
|
99
|
+
raw.value === undefined) {
|
|
100
|
+
throw new Error(`[${domain}][${i}]: op "${raw.op}" requires a "value" field.`);
|
|
101
|
+
}
|
|
102
|
+
if (!(0, patch_rules_1.matchesWhitelist)(domain, raw)) {
|
|
103
|
+
throw new Error(`[${domain}][${i}]: path "${raw.path}" is not allowed by the server whitelist.`);
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
domain,
|
|
107
|
+
jsonPath: raw.path,
|
|
108
|
+
label: `${raw.op} ${raw.path}`,
|
|
109
|
+
op: raw.op,
|
|
110
|
+
path: raw.path,
|
|
111
|
+
value: raw.value,
|
|
112
|
+
};
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
exports.toPlannedOps = toPlannedOps;
|
|
116
|
+
function buildAllOps(input) {
|
|
117
|
+
const unknownDomains = Object.keys(input).filter(key => !types_1.LAYOUT_DOMAINS.includes(key));
|
|
118
|
+
if (unknownDomains.length > 0) {
|
|
119
|
+
throw new Error(`Unknown domain key${unknownDomains.length > 1 ? 's' : ''}: ${unknownDomains.join(', ')}. ` +
|
|
120
|
+
`Supported domains are: ${PATCH_DOMAINS.join(', ')}.`);
|
|
121
|
+
}
|
|
122
|
+
if (input.workflows !== undefined) {
|
|
123
|
+
throw new Error('The "workflows" domain is not supported by `forest layout patch`: creating a workflow ' +
|
|
124
|
+
'also needs a BPMN upload, not just a layout PATCH. Use `forest layout apply` for workflows.');
|
|
125
|
+
}
|
|
126
|
+
return PATCH_DOMAINS.flatMap(domain => {
|
|
127
|
+
const rawOps = input[domain];
|
|
128
|
+
if (!rawOps)
|
|
129
|
+
return [];
|
|
130
|
+
if (!Array.isArray(rawOps)) {
|
|
131
|
+
throw new Error(`"${domain}" must be an array of patch operations.`);
|
|
132
|
+
}
|
|
133
|
+
return toPlannedOps(domain, rawOps);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
exports.buildAllOps = buildAllOps;
|
|
137
|
+
/**
|
|
138
|
+
* When stdin is not an interactive terminal — the patch is piped, or the
|
|
139
|
+
* command runs in CI / spawned by an agent, even with a file argument — no
|
|
140
|
+
* inquirer prompt (project, environment, team, confirmation) can run: it would
|
|
141
|
+
* read from a pipe and hang or crash. Non-TTY runs therefore require the full
|
|
142
|
+
* scope and `--force` up front — fail fast, listing exactly what is missing.
|
|
143
|
+
*
|
|
144
|
+
* `FOREST_ENV_SECRET` only stands in for `-p/--projectId`: scope resolution
|
|
145
|
+
* derives the project from the secret (`withCurrentProject`) but NEVER the
|
|
146
|
+
* environment — without `-e/--env` it would still prompt.
|
|
147
|
+
*/
|
|
148
|
+
function assertNonInteractiveFlags(flags, hasEnvSecret) {
|
|
149
|
+
const missing = [];
|
|
150
|
+
if (!flags.env)
|
|
151
|
+
missing.push('-e/--env');
|
|
152
|
+
if (!hasEnvSecret && flags.projectId === undefined)
|
|
153
|
+
missing.push('-p/--projectId');
|
|
154
|
+
if (!flags.team)
|
|
155
|
+
missing.push('-t/--team');
|
|
156
|
+
if (!flags.force)
|
|
157
|
+
missing.push('--force');
|
|
158
|
+
if (missing.length > 0) {
|
|
159
|
+
throw new Error('stdin is not an interactive terminal, so prompts ' +
|
|
160
|
+
`(project, environment, team, confirmation) cannot run. Missing: ${missing.join(', ')}. ` +
|
|
161
|
+
'Set FOREST_ENV_SECRET to omit -p/--projectId, or use --dry-run to preview without a scope.');
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
exports.assertNonInteractiveFlags = assertNonInteractiveFlags;
|
|
165
|
+
function formatOps(allOps) {
|
|
166
|
+
return PATCH_DOMAINS.flatMap(domain => {
|
|
167
|
+
const domainOps = allOps.filter(op => op.domain === domain);
|
|
168
|
+
if (domainOps.length === 0)
|
|
169
|
+
return [];
|
|
170
|
+
return [
|
|
171
|
+
`${domain} (${domainOps.length} op${domainOps.length > 1 ? 's' : ''})`,
|
|
172
|
+
...domainOps.map(op => ` ${OP_PREFIX[op.op] ?? '·'} ${op.label}`),
|
|
173
|
+
];
|
|
174
|
+
}).join('\n');
|
|
175
|
+
}
|
|
176
|
+
exports.formatOps = formatOps;
|
|
177
|
+
/**
|
|
178
|
+
* `forest layout patch` — send a JSON-Patch array straight to the environment,
|
|
179
|
+
* exactly like the frontend does when you tweak a collection: a single
|
|
180
|
+
* `PATCH /api/:domain` per domain, no `pull`/`diff`/`apply` round-trip.
|
|
181
|
+
*
|
|
182
|
+
* Scope: the layout-only domains (`layout`, `folders`). `workflows` is out of
|
|
183
|
+
* scope here — see {@link buildAllOps}.
|
|
184
|
+
*
|
|
185
|
+
* Input format (file or stdin):
|
|
186
|
+
* {
|
|
187
|
+
* "layout": [{ "op": "replace", "path": "/collections/orders/displayName", "value": "Orders" }],
|
|
188
|
+
* "folders": [{ "op": "add", "path": "/folders/<mainId>/children/-", "value": {...} }]
|
|
189
|
+
* }
|
|
190
|
+
*
|
|
191
|
+
* Any non-TTY run (piped input, CI, spawned by an agent) is non-interactive by
|
|
192
|
+
* construction: it requires the full scope flags and `--force` — see
|
|
193
|
+
* {@link assertNonInteractiveFlags}.
|
|
194
|
+
*/
|
|
195
|
+
class LayoutPatchCommand extends abstract_authenticated_command_1.default {
|
|
196
|
+
constructor(argv, config, plan) {
|
|
197
|
+
super(argv, config, plan);
|
|
198
|
+
const { assertPresent, env, inquirer } = this.context;
|
|
199
|
+
assertPresent({ env, inquirer });
|
|
200
|
+
this.env = env;
|
|
201
|
+
this.inquirer = inquirer;
|
|
202
|
+
}
|
|
203
|
+
async runAuthenticated() {
|
|
204
|
+
const { args, flags } = await this.parse(LayoutPatchCommand);
|
|
205
|
+
// No TTY on stdin ⇒ no prompt can run (scope or confirmation) — whether the
|
|
206
|
+
// patch is piped or read from a file argument in CI. `--dry-run` is exempt:
|
|
207
|
+
// it neither prompts nor sends.
|
|
208
|
+
if (!process.stdin.isTTY && !flags['dry-run']) {
|
|
209
|
+
assertNonInteractiveFlags(flags, Boolean(this.env.FOREST_ENV_SECRET));
|
|
210
|
+
}
|
|
211
|
+
const allOps = buildAllOps(await readInput(args.file));
|
|
212
|
+
if (allOps.length === 0) {
|
|
213
|
+
this.logger.success('Nothing to patch: input contains no operations.');
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
if (flags['dry-run']) {
|
|
217
|
+
this.log(formatOps(allOps));
|
|
218
|
+
this.log('\n(dry-run: nothing sent)');
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
const scope = await (0, resolve_command_scope_1.resolveCommandScope)({
|
|
222
|
+
baseEnv: this.env,
|
|
223
|
+
flags: { env: flags.env, projectId: flags.projectId, team: flags.team },
|
|
224
|
+
});
|
|
225
|
+
this.log(formatOps(allOps));
|
|
226
|
+
if (!flags.force &&
|
|
227
|
+
!(await this.confirm(scope.environmentName, scope.teamName, allOps.length))) {
|
|
228
|
+
this.logger.info('Aborted: nothing was patched.');
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
await this.sendPatches(new layout_manager_1.default(), scope, allOps);
|
|
232
|
+
this.logger.success(`Patched ${allOps.length} op${allOps.length > 1 ? 's' : ''} on ${this.chalk.bold(scope.environmentName)} / ${this.chalk.bold(scope.teamName)}.`);
|
|
233
|
+
}
|
|
234
|
+
/** One atomic PATCH per domain, in stable order. Exits 2 on a recoverable API error. */
|
|
235
|
+
async sendPatches(manager, scope, allOps) {
|
|
236
|
+
const applied = [];
|
|
237
|
+
// eslint-disable-next-line no-restricted-syntax -- sequential: one atomic PATCH per domain
|
|
238
|
+
for (const domain of PATCH_DOMAINS) {
|
|
239
|
+
const domainOps = allOps.filter(op => op.domain === domain);
|
|
240
|
+
if (domainOps.length === 0)
|
|
241
|
+
continue; // eslint-disable-line no-continue
|
|
242
|
+
try {
|
|
243
|
+
// eslint-disable-next-line no-await-in-loop -- intentional: atomic, ordered per-domain patches
|
|
244
|
+
await manager.patchDomain(domain, domainOps, scope);
|
|
245
|
+
applied.push(domain);
|
|
246
|
+
}
|
|
247
|
+
catch (error) {
|
|
248
|
+
if (error instanceof errors_1.LayoutApiError && error.status !== 401) {
|
|
249
|
+
// Scope the error to this domain so path correlation in explainApiError is accurate.
|
|
250
|
+
this.logger.error((0, plan_format_1.explainApiError)(error, domainOps));
|
|
251
|
+
if (applied.length > 0) {
|
|
252
|
+
// Unlike `apply`, a raw patch is NOT idempotent: replaying its "add"
|
|
253
|
+
// ops would create duplicates on the domains that already succeeded.
|
|
254
|
+
this.logger.warn(`The "${applied.join('", "')}" patch was already applied before this failure. ` +
|
|
255
|
+
'Do not re-run the same input as-is: its "add" operations would be applied twice — ' +
|
|
256
|
+
'remove the applied domain(s) from the input before retrying.');
|
|
257
|
+
}
|
|
258
|
+
this.exit(2);
|
|
259
|
+
}
|
|
260
|
+
throw error;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
async confirm(environmentName, teamName, count) {
|
|
265
|
+
const { confirm } = await this.inquirer.prompt([
|
|
266
|
+
{
|
|
267
|
+
message: `Send ${count} patch operation${count > 1 ? 's' : ''} to ${environmentName} / ${teamName}?`,
|
|
268
|
+
name: 'confirm',
|
|
269
|
+
type: 'confirm',
|
|
270
|
+
},
|
|
271
|
+
]);
|
|
272
|
+
return confirm;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
exports.default = LayoutPatchCommand;
|
|
276
|
+
LayoutPatchCommand.args = {
|
|
277
|
+
file: core_1.Args.string({
|
|
278
|
+
description: 'JSON patch file to apply. Use "-" or omit to read from stdin.',
|
|
279
|
+
// Without this, oclif fills a missing positional FROM stdin (parser/parse.js),
|
|
280
|
+
// so `echo '{...}' | forest layout patch` would readFile() the JSON as a filename.
|
|
281
|
+
// Stdin must stay untouched for our own reader (multi-line JSON, explicit guard).
|
|
282
|
+
ignoreStdin: true,
|
|
283
|
+
required: false,
|
|
284
|
+
}),
|
|
285
|
+
};
|
|
286
|
+
LayoutPatchCommand.description = 'Patch the layout directly (single PATCH per domain, like the front — no pull/apply).';
|
|
287
|
+
LayoutPatchCommand.flags = {
|
|
288
|
+
'dry-run': core_1.Flags.boolean({
|
|
289
|
+
description: 'Print operations without sending them.',
|
|
290
|
+
}),
|
|
291
|
+
env: core_1.Flags.string({
|
|
292
|
+
char: 'e',
|
|
293
|
+
description: 'Environment name or id.',
|
|
294
|
+
}),
|
|
295
|
+
force: core_1.Flags.boolean({
|
|
296
|
+
char: 'f',
|
|
297
|
+
description: 'Skip the confirmation prompt (required when reading from stdin).',
|
|
298
|
+
}),
|
|
299
|
+
projectId: core_1.Flags.integer({
|
|
300
|
+
char: 'p',
|
|
301
|
+
description: 'Project id.',
|
|
302
|
+
}),
|
|
303
|
+
team: core_1.Flags.string({
|
|
304
|
+
char: 't',
|
|
305
|
+
description: 'Team name or id.',
|
|
306
|
+
}),
|
|
307
|
+
};
|
|
308
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0Y2guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29tbWFuZHMvbGF5b3V0L3BhdGNoLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUdBLHNDQUEwQztBQUMxQywwQ0FBdUM7QUFDdkMsZ0RBQXdCO0FBRXhCLDBHQUFnRjtBQUNoRix5REFBOEQ7QUFDOUQsMEZBQWlFO0FBQ2pFLG1FQUFxRTtBQUNyRSxtRUFBb0U7QUFDcEUsdUZBQWtGO0FBQ2xGLHVEQUE2RDtBQUU3RDs7OztHQUlHO0FBQ0gsTUFBTSxhQUFhLEdBQThDLENBQUMsUUFBUSxFQUFFLFNBQVMsQ0FBQyxDQUFDO0FBS3ZGLE1BQU0sU0FBUyxHQUEyQixFQUFFLEdBQUcsRUFBRSxHQUFHLEVBQUUsTUFBTSxFQUFFLEdBQUcsRUFBRSxPQUFPLEVBQUUsR0FBRyxFQUFFLENBQUM7QUFFbEYsTUFBTSwyQkFBMkIsR0FBRyxLQUFNLENBQUM7QUFFM0MsU0FBUyxTQUFTO0lBQ2hCLE9BQU8sSUFBSSxPQUFPLENBQUMsQ0FBQyxPQUFPLEVBQUUsTUFBTSxFQUFFLEVBQUU7UUFDckMsSUFBSSxJQUFJLEdBQUcsRUFBRSxDQUFDO1FBQ2QsSUFBSSxPQUFzQyxDQUFDO1FBRTNDLHlFQUF5RTtRQUN6RSwwRUFBMEU7UUFDMUUsTUFBTSxPQUFPLEdBQUcsR0FBR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0FDaEMsQ0FBQztDQUNILENBQUMifQ==
|
|
@@ -22,6 +22,7 @@ export default abstract class AbstractDumper {
|
|
|
22
22
|
protected abstract createFiles(dumperConfig: Config, schema?: any): any;
|
|
23
23
|
protected writeFile(relativeFilePath: any, content: any): void;
|
|
24
24
|
protected copyHandleBarsTemplate(source: string, target: string, context?: Record<string, unknown>): void;
|
|
25
|
+
protected copyTemplateDirectory(source: string, target: string): void;
|
|
25
26
|
dump(dumperConfig: Config, schema?: any): Promise<void>;
|
|
26
27
|
}
|
|
27
28
|
//# sourceMappingURL=abstract-dumper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-dumper.d.ts","sourceRoot":"","sources":["../../../src/services/dumpers/abstract-dumper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AAEpC,OAAO,+BAA+B,CAAC;AAEvC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,cAAc;IAC1C,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC;IAE9B,SAAS,CAAC,QAAQ,CAAC,MAAM,MAAC;IAE1B,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;IAEpB,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAElC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAQ;IAE9B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6B;IAEvD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC;IAE5B,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAEnD,SAAS,aAAa,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE;;;;;;;;KAAA;IAkBzF,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,YAA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M,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAiBnC,SAAS,CAAC,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAWxD,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG;CAU9C"}
|
|
@@ -35,6 +35,19 @@ class AbstractDumper {
|
|
|
35
35
|
}
|
|
36
36
|
return this.writeFile(target, this.fs.readFileSync(templatePath, 'utf-8'));
|
|
37
37
|
}
|
|
38
|
+
// Copy every file from a template sub-directory into the generated project,
|
|
39
|
+
// creating the target directory. Used for sidecar assets (e.g. workflow BPMN)
|
|
40
|
+
// that ship alongside a template file. No-op if the source directory is absent.
|
|
41
|
+
copyTemplateDirectory(source, target) {
|
|
42
|
+
const sourcePath = `${__dirname}/templates/${this.templateFolder}/${source}`;
|
|
43
|
+
if (!this.fs.existsSync(sourcePath))
|
|
44
|
+
return;
|
|
45
|
+
const files = this.fs.readdirSync(sourcePath);
|
|
46
|
+
if (files.length === 0)
|
|
47
|
+
return;
|
|
48
|
+
this.fs.mkdirSync(`${this.projectPath}/${target}`, { recursive: true });
|
|
49
|
+
files.forEach(file => this.copyHandleBarsTemplate(`${source}/${file}`, `${target}/${file}`));
|
|
50
|
+
}
|
|
38
51
|
async dump(dumperConfig, schema) {
|
|
39
52
|
const cwd = this.constants.CURRENT_WORKING_DIRECTORY;
|
|
40
53
|
this.projectPath = dumperConfig.appConfig.appName
|
|
@@ -45,4 +58,4 @@ class AbstractDumper {
|
|
|
45
58
|
}
|
|
46
59
|
}
|
|
47
60
|
exports.default = AbstractDumper;
|
|
48
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3QtZHVtcGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJj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BQyxNQUFNLENBQUMsSUFBSSxDQUFDLFdBQVcsQ0FBQyxDQUFDO1FBRXBDLE1BQU0sSUFBSSxDQUFDLFdBQVcsQ0FBQyxZQUFZLEVBQUUsTUFBTSxDQUFDLENBQUM7SUFDL0MsQ0FBQztDQUNGO0FBMUZELGlDQTBGQyJ9
|
|
@@ -22,6 +22,7 @@ export default class AgentNodeJs extends AbstractDumper {
|
|
|
22
22
|
private writeDockerfile;
|
|
23
23
|
private writeDockerCompose;
|
|
24
24
|
private writeLayoutFile;
|
|
25
|
+
private copyWorkflowBpmnSidecars;
|
|
25
26
|
protected createFiles(dumpConfig: Config): Promise<void>;
|
|
26
27
|
}
|
|
27
28
|
//# sourceMappingURL=agent-nodejs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-nodejs.d.ts","sourceRoot":"","sources":["../../../src/services/dumpers/agent-nodejs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAY,MAAM,2CAA2C,CAAC;AAClF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAKtD,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAW/C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,cAAc;IACrD,OAAO,CAAC,GAAG,CAAgE;IAE3E,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAQ;IAErC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAU;IAEpC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAkC;IAElE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;IAElE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;IAElC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA6B;IAEhE,SAAS,CAAC,QAAQ,CAAC,cAAc,kBAAkB;gBAEvC,OAAO,KAAA;IAmCnB,gBAAgB,CAAC,QAAQ,E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AAiB;IA6BjB,UAAU,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,UAAQ;IAoBlF,OAAO,CAAC,WAAW;IAmCnB,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,kBAAkB;IA2B1B,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,wBAAwB;cAIhB,WAAW,CAAC,UAAU,EAAE,MAAM;CAkC/C"}
|
|
@@ -185,6 +185,14 @@ class AgentNodeJs extends abstract_dumper_1.default {
|
|
|
185
185
|
// commands) is a separate onboarding step.
|
|
186
186
|
writeLayoutFile() {
|
|
187
187
|
this.copyHandleBarsTemplate('common/forest-layout.json', 'forest-layout.json');
|
|
188
|
+
this.copyWorkflowBpmnSidecars();
|
|
189
|
+
}
|
|
190
|
+
// The curated workflows ship their compiled BPMN as portable sidecar files
|
|
191
|
+
// (workflows/<id>.bpmn). `forest layout apply --with-workflows` re-uploads each
|
|
192
|
+
// one to the target environment's own S3 bucket and links the fresh version, so
|
|
193
|
+
// the layout file carries no (non-portable) bpmnAwsS3Identifier of its own.
|
|
194
|
+
copyWorkflowBpmnSidecars() {
|
|
195
|
+
this.copyTemplateDirectory('common/workflows', 'workflows');
|
|
188
196
|
}
|
|
189
197
|
async createFiles(dumpConfig) {
|
|
190
198
|
const { isDemo } = dumpConfig;
|
|
@@ -207,4 +215,4 @@ class AgentNodeJs extends abstract_dumper_1.default {
|
|
|
207
215
|
}
|
|
208
216
|
}
|
|
209
217
|
exports.default = AgentNodeJs;
|
|
210
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
218
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdlbnQtbm9kZWpzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi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QUFDLGtCQUFrQixDQUFDLFVBQVUsQ0FBQyxDQUFDO1FBQ2pELHVEQUF1RDtRQUN2RCxJQUFJLE1BQU07WUFBRSxJQUFJLENBQUMsZUFBZSxFQUFFLENBQUM7SUFDckMsQ0FBQztDQUNGO0FBM1NELDhCQTJTQyJ9
|
|
@@ -0,0 +1,2 @@
|
|
|
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:forest="https://app.forestadmin.com" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0hdve55" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="18.6.1"><bpmn:process id="Process_1s8zutc" isExecutable="false"><bpmn:startEvent id="StartEvent_0b1zhsz" name="Start of workflow"><bpmn:outgoing>Flow__39owuix</bpmn:outgoing></bpmn:startEvent><bpmn:SequenceFlow id="Flow__39owuix" sourceRef="StartEvent_0b1zhsz" targetRef="Activity__v4nv61c" /><bpmn:ServiceTask id="Activity__nf1hbr5" name="Get customer data" forest:description="Retrieve the customer's first & last names, country, city, address, and date of birth" forest:alternative="get-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__xn7vohv</bpmn:incoming><bpmn:outgoing>Flow__gwjqi2o</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__gwjqi2o" sourceRef="Activity__nf1hbr5" targetRef="Activity__yx8tdbt" /><bpmn:ServiceTask id="Activity__v4nv61c" name="Load Customer" forest:description="Load the customer related to the KYC Case" forest:alternative="load-related-record" forest:automaticCompletion="true"><bpmn:incoming>Flow__39owuix</bpmn:incoming><bpmn:outgoing>Flow__xn7vohv</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__xn7vohv" sourceRef="Activity__v4nv61c" targetRef="Activity__nf1hbr5" /><bpmn:ExclusiveGateway id="Activity__o0l2pr7" name="Screening OK?" forest:description="Did the screening return anything that would require an escalation for EDD?" forest:aiDecision="false"><bpmn:incoming>Flow__k6umg3l</bpmn:incoming><bpmn:outgoing>Flow__3q5tv4s</bpmn:outgoing><bpmn:outgoing>Flow__zfwypr9</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__3q5tv4s" name="Low risk" sourceRef="Activity__o0l2pr7" targetRef="Activity__6dnxjaf" /><bpmn:SequenceFlow id="Flow__zfwypr9" name="Mid/high-risk" sourceRef="Activity__o0l2pr7" targetRef="Activity__0jl75ng" forest:buttonColor="red" /><bpmn:IntermediateThrowEvent id="Activity__zj1byx8" name="Escalation for EDD" forest:inboxId="a2d69bb7-fb5b-4fd5-b8d1-5b0727bab91d"><bpmn:incoming>Flow__l7tryeq</bpmn:incoming><bpmn:outgoing>Flow__lzsm7o7</bpmn:outgoing></bpmn:IntermediateThrowEvent><bpmn:SequenceFlow id="Flow__lzsm7o7" sourceRef="Activity__zj1byx8" targetRef="Activity__n6wsewu" /><bpmn:ServiceTask id="Activity__6dnxjaf" name="Set risk to low" forest:description="Set the customer's risk rating to LOW" forest:alternative="update-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__3q5tv4s</bpmn:incoming><bpmn:outgoing>Flow__eubch8c</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__eubch8c" sourceRef="Activity__6dnxjaf" targetRef="Activity__sjrlvs0" /><bpmn:ServiceTask id="Activity__0jl75ng" name="Escalation reason" forest:description="Update the "escalation reason" based on the screening results." forest:alternative="update-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__zfwypr9</bpmn:incoming><bpmn:outgoing>Flow__l7tryeq</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__l7tryeq" sourceRef="Activity__0jl75ng" targetRef="Activity__zj1byx8" /><bpmn:ServiceTask id="Activity__24w7u43" name="Approve KYC" forest:description="Trigger the Approve KYC action on the KYC Case to complete the onboarding." forest:alternative="trigger-action" forest:automaticCompletion="true"><bpmn:incoming>Flow__46ij85e</bpmn:incoming><bpmn:outgoing>Flow__desgwnw</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__desgwnw" sourceRef="Activity__24w7u43" targetRef="Activity__bdh9wga" /><bpmn:endEvent id="Activity__bdh9wga" name="Customer successfully onboarded"><bpmn:incoming>Flow__desgwnw</bpmn:incoming></bpmn:endEvent><bpmn:ExclusiveGateway id="Activity__wsfnqbq" name="Safe to onboard?" forest:description="Is it safe to onboard this customer, or should we reject it?"><bpmn:incoming>Flow__ri9nm1v</bpmn:incoming><bpmn:outgoing>Flow__ucjcuf5</bpmn:outgoing><bpmn:outgoing>Flow__mxh8tnj</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__ucjcuf5" name="Safe" sourceRef="Activity__wsfnqbq" targetRef="Activity__4plsbxb" /><bpmn:SequenceFlow id="Flow__mxh8tnj" name="Reject" sourceRef="Activity__wsfnqbq" targetRef="Activity__brxd6b8" forest:buttonColor="red" /><bpmn:UserTask id="Activity__n6wsewu" name="Perform EDD" forest:description="Perform your EDD analysis to decide whether it's safe to onboard this customer or not."><bpmn:incoming>Flow__lzsm7o7</bpmn:incoming><bpmn:outgoing>Flow__ri9nm1v</bpmn:outgoing></bpmn:UserTask><bpmn:SequenceFlow id="Flow__ri9nm1v" sourceRef="Activity__n6wsewu" targetRef="Activity__wsfnqbq" /><bpmn:ServiceTask id="Activity__8tcb1xy" name="Reject onboarding" forest:description="Trigger the Reject Onboarding action on the KYC Case." forest:alternative="trigger-action" forest:automaticExecution="true" forest:automaticCompletion="true"><bpmn:incoming>Flow__wuuvey3</bpmn:incoming><bpmn:outgoing>Flow__ncnspeb</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__ncnspeb" sourceRef="Activity__8tcb1xy" targetRef="Activity__46yko6l" /><bpmn:endEvent id="Activity__46yko6l" name="Customer onboarding request denied"><bpmn:incoming>Flow__ncnspeb</bpmn:incoming></bpmn:endEvent><bpmn:ServiceTask id="Activity__4plsbxb" name="Medium risk" forest:description="Set the customer's risk rating to Medium" forest:alternative="update-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__ucjcuf5</bpmn:incoming><bpmn:outgoing>Flow__59j96ka</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__59j96ka" sourceRef="Activity__4plsbxb" targetRef="Activity__sjrlvs0" forest:isLinkTo="true" /><bpmn:ServiceTask id="Activity__brxd6b8" name="High risk" forest:description="Set the customer's risk rating to High" forest:alternative="update-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__mxh8tnj</bpmn:incoming><bpmn:outgoing>Flow__wuuvey3</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__wuuvey3" sourceRef="Activity__brxd6b8" targetRef="Activity__8tcb1xy" /><bpmn:ServiceTask id="Activity__sjrlvs0" name="Load ID" forest:description="Load the ID provided by the customer" forest:alternative="load-related-record" forest:automaticCompletion="true"><bpmn:incoming>Flow__eubch8c</bpmn:incoming><bpmn:incoming>Flow__59j96ka</bpmn:incoming><bpmn:outgoing>Flow__h9wtzzp</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__h9wtzzp" sourceRef="Activity__sjrlvs0" targetRef="Activity__jqqkw8m" /><bpmn:ServiceTask id="Activity__rkqwi7k" name="Verify document" forest:description="Verify the document provided by the customer" forest:alternative="trigger-action" forest:automaticExecution="true" forest:automaticCompletion="true"><bpmn:incoming>Flow__7aq1vmj</bpmn:incoming><bpmn:outgoing>Flow__4un1k6z</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__4un1k6z" sourceRef="Activity__rkqwi7k" targetRef="Activity__h7gmjvq" /><bpmn:ExclusiveGateway id="Gateway__868qi3g" name="Doc OK?" forest:description="Was the KYC Document verified?" forest:aiDecision="true"><bpmn:incoming>Flow__rggivp5</bpmn:incoming><bpmn:outgoing>Flow__46ij85e</bpmn:outgoing><bpmn:outgoing>Flow__rpojqtt</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__46ij85e" name="Yes, verified" sourceRef="Gateway__868qi3g" targetRef="Activity__24w7u43" /><bpmn:SequenceFlow id="Flow__rpojqtt" name="No, failed verification" sourceRef="Gateway__868qi3g" targetRef="Activity__3j3u7si" forest:buttonColor="red" /><bpmn:ServiceTask id="Activity__h7gmjvq" name="Doc verification status" forest:description="Check whether the document's been verified or not" forest:alternative="get-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__4un1k6z</bpmn:incoming><bpmn:outgoing>Flow__rggivp5</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__rggivp5" sourceRef="Activity__h7gmjvq" targetRef="Gateway__868qi3g" /><bpmn:endEvent id="Activity__3j3u7si" name="End"><bpmn:incoming>Flow__rpojqtt</bpmn:incoming></bpmn:endEvent><bpmn:ServiceTask id="Activity__yx8tdbt" name="KYC Screening agent Task" forest:description="Screen the customer to know if they're politically exposed, have adverse media, or had previous sanctions on record." forest:alternative="mcp-server" forest:mcpServerId="108" forest:automaticExecution="true" forest:automaticCompletion="false"><bpmn:incoming>Flow__gwjqi2o</bpmn:incoming><bpmn:outgoing>Flow__k6umg3l</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__k6umg3l" sourceRef="Activity__yx8tdbt" targetRef="Activity__o0l2pr7" /><bpmn:ServiceTask id="Activity__jqqkw8m" name="Display ID" forest:description="Get the ID's URL" forest:alternative="get-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__h9wtzzp</bpmn:incoming><bpmn:outgoing>Flow__6yi7nyr</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__6yi7nyr" sourceRef="Activity__jqqkw8m" targetRef="Gateway__0srxl1r" /><bpmn:ServiceTask id="Activity__stkip0t" name="Extract ID info" forest:description="Extract the ID's information using Mistral OCR" forest:alternative="mcp-server" forest:mcpServerId="128" forest:automaticExecution="true" forest:automaticCompletion="true"><bpmn:incoming>Flow__pyvwfj8</bpmn:incoming><bpmn:outgoing>Flow__7aq1vmj</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__7aq1vmj" sourceRef="Activity__stkip0t" targetRef="Activity__rkqwi7k" /><bpmn:ExclusiveGateway id="Gateway__0srxl1r" name="ID found?" forest:description="Was the ID found in the list of provided KYC Documents?" forest:aiDecision="true"><bpmn:incoming>Flow__6yi7nyr</bpmn:incoming><bpmn:outgoing>Flow__pyvwfj8</bpmn:outgoing><bpmn:outgoing>Flow__ns8q0b3</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__pyvwfj8" name="Yes" sourceRef="Gateway__0srxl1r" targetRef="Activity__stkip0t" /><bpmn:SequenceFlow id="Flow__ns8q0b3" name="No" sourceRef="Gateway__0srxl1r" targetRef="Activity__r05w2z7" forest:buttonColor="red" /><bpmn:callActivity id="Activity__r05w2z7" name="Notify via Zendesk" calledElement="71f692b4-fe4f-476d-8251-fdc5af1ec51e"><bpmn:incoming>Flow__ns8q0b3</bpmn:incoming><bpmn:outgoing>Flow__wqdofyc</bpmn:outgoing></bpmn:callActivity><bpmn:SequenceFlow id="Flow__wqdofyc" sourceRef="Activity__r05w2z7" targetRef="Activity__59rqtl6" /><bpmn:endEvent id="Activity__59rqtl6" name="End"><bpmn:incoming>Flow__wqdofyc</bpmn:incoming></bpmn:endEvent></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1s8zutc"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_0b1zhsz"><dc:Bounds x="182" y="352" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="159" y="395" width="82" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_1c5vw7o_di" bpmnElement="Activity__nf1hbr5"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__v4nv61c_di" bpmnElement="Activity__v4nv61c"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway_0x53q19_di" bpmnElement="Activity__o0l2pr7" isMarkerVisible="true"><dc:Bounds x="50" y="60" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="40" y="117" width="75" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_1bf84w0_di" bpmnElement="Activity__zj1byx8"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="39" y="103" width="67" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_111otms_di" bpmnElement="Activity__6dnxjaf"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__0jl75ng_di" bpmnElement="Activity__0jl75ng"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_0oadroh_di" bpmnElement="Activity__24w7u43"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_0z1ctkr_di" bpmnElement="Activity__bdh9wga"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="45" y="103" width="60" height="40" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway_1n4hjuj_di" bpmnElement="Activity__wsfnqbq" isMarkerVisible="true"><dc:Bounds x="50" y="60" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="34" y="117" width="85" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__n6wsewu_di" bpmnElement="Activity__n6wsewu"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_04qy6on_di" bpmnElement="Activity__8tcb1xy"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_0hxj51t_di" bpmnElement="Activity__46yko6l"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="41" y="103" width="73" height="40" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__4plsbxb_di" bpmnElement="Activity__4plsbxb"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__brxd6b8_di" bpmnElement="Activity__brxd6b8"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__sjrlvs0_di" bpmnElement="Activity__sjrlvs0"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__rkqwi7k_di" bpmnElement="Activity__rkqwi7k"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway__868qi3g_di" bpmnElement="Gateway__868qi3g" isMarkerVisible="true"><dc:Bounds x="75" y="75" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="80" y="132" width="45" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__h7gmjvq_di" bpmnElement="Activity__h7gmjvq"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_1jxnkw3_di" bpmnElement="Activity__3j3u7si"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="58" y="103" width="20" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__yx8tdbt_di" bpmnElement="Activity__yx8tdbt"><dc:Bounds x="50" y="60" width="100" height="80" /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__jqqkw8m_di" bpmnElement="Activity__jqqkw8m"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__stkip0t_di" bpmnElement="Activity__stkip0t"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway__0srxl1r_di" bpmnElement="Gateway__0srxl1r" isMarkerVisible="true"><dc:Bounds x="75" y="75" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="78" y="132" width="48" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_08hm55a_di" bpmnElement="Activity__r05w2z7"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_16ef1hn_di" bpmnElement="Activity__59rqtl6"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="58" y="103" width="20" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNEdge id="Flow__39owuix_di" bpmnElement="Flow__39owuix"><di:waypoint x="182" y="370" /><di:waypoint x="166" y="370" /><di:waypoint x="166" y="0" /><di:waypoint x="150" y="0" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__gwjqi2o_di" bpmnElement="Flow__gwjqi2o"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__xn7vohv_di" bpmnElement="Flow__xn7vohv"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__3q5tv4s_di" bpmnElement="Flow__3q5tv4s"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="95" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="67" y="22" width="41" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__zfwypr9_di" bpmnElement="Flow__zfwypr9"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="-2" y="22" width="63" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__lzsm7o7_di" bpmnElement="Flow__lzsm7o7"><di:waypoint x="68" y="60" /><di:waypoint x="68" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__eubch8c_di" bpmnElement="Flow__eubch8c"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__l7tryeq_di" bpmnElement="Flow__l7tryeq"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__desgwnw_di" bpmnElement="Flow__desgwnw"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__ucjcuf5_di" bpmnElement="Flow__ucjcuf5"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="21" y="22" width="23" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__mxh8tnj_di" bpmnElement="Flow__mxh8tnj"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="18" y="22" width="32" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__ri9nm1v_di" bpmnElement="Flow__ri9nm1v"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__ncnspeb_di" bpmnElement="Flow__ncnspeb"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__59j96ka_di" bpmnElement="Flow__59j96ka"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__wuuvey3_di" bpmnElement="Flow__wuuvey3"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__h9wtzzp_di" bpmnElement="Flow__h9wtzzp"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__4un1k6z_di" bpmnElement="Flow__4un1k6z"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__46ij85e_di" bpmnElement="Flow__46ij85e"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="50" /><di:waypoint x="120" y="50" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="110" y="41" width="60" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__rpojqtt_di" bpmnElement="Flow__rpojqtt"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="72" y="32" width="53" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__rggivp5_di" bpmnElement="Flow__rggivp5"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="120" y="50" /><di:waypoint x="100" y="50" /><di:waypoint x="100" y="75" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__k6umg3l_di" bpmnElement="Flow__k6umg3l"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__6yi7nyr_di" bpmnElement="Flow__6yi7nyr"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="75" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__7aq1vmj_di" bpmnElement="Flow__7aq1vmj"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__pyvwfj8_di" bpmnElement="Flow__pyvwfj8"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="50" /><di:waypoint x="120" y="50" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="127" y="41" width="18" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__ns8q0b3_di" bpmnElement="Flow__ns8q0b3"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="54" /><di:waypoint x="120" y="54" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="129" y="46" width="15" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__wqdofyc_di" bpmnElement="Flow__wqdofyc"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>
|
|
@@ -0,0 +1,2 @@
|
|
|
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:forest="https://app.forestadmin.com" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0hdve55" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="18.6.1"><bpmn:process id="Process_1s8zutc" isExecutable="false"><bpmn:startEvent id="StartEvent_0b1zhsz" name="Start of workflow"><bpmn:outgoing>Flow__65xznbc</bpmn:outgoing></bpmn:startEvent><bpmn:SequenceFlow id="Flow__65xznbc" sourceRef="StartEvent_0b1zhsz" targetRef="Activity__71nirts" /><bpmn:ServiceTask id="Activity__71nirts" name="Get refund request details" forest:description="Retrieve the following information from the refund request: - Reference - Request Date - Amount - Status - Reason - Reason details" forest:alternative="get-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__65xznbc</bpmn:incoming><bpmn:outgoing>Flow__vvm2pz5</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__vvm2pz5" sourceRef="Activity__71nirts" targetRef="Activity__0h5rcr3" /><bpmn:ServiceTask id="Activity__0h5rcr3" name="Get Stripe Payment Intent" forest:description="Load the Stripe Payment Intent related to the refund" forest:alternative="load-related-record" forest:automaticCompletion="true"><bpmn:incoming>Flow__vvm2pz5</bpmn:incoming><bpmn:outgoing>Flow__frxrjg9</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__frxrjg9" sourceRef="Activity__0h5rcr3" targetRef="Activity__nn48pjv" /><bpmn:ServiceTask id="Activity__nn48pjv" name="Get payment intent details" forest:description="Retrieve the payment intent's Amount, Channel, Status, Date, and ID" forest:alternative="get-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__frxrjg9</bpmn:incoming><bpmn:outgoing>Flow__ir2inm0</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__ir2inm0" sourceRef="Activity__nn48pjv" targetRef="Gateway__fsmp0rl" /><bpmn:ExclusiveGateway id="Activity__potxpm8" name="Amount eligibility" forest:description="Was the transaction under our EUR500 eligibility threshold?" forest:aiDecision="true"><bpmn:incoming>Flow__mfuu3qf</bpmn:incoming><bpmn:outgoing>Flow__bgbxmjm</bpmn:outgoing><bpmn:outgoing>Flow__zy9phd0</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__bgbxmjm" name="Yes, under EUR500" sourceRef="Activity__potxpm8" targetRef="Activity__64zolu7" /><bpmn:SequenceFlow id="Flow__zy9phd0" name="No, above EUR500" sourceRef="Activity__potxpm8" targetRef="Activity__oimfgg6" forest:buttonColor="yellow" /><bpmn:ExclusiveGateway id="Gateway__fsmp0rl" name="Request within 30 days?" forest:description="Was the refund request submitted within 30 days of the transaction date?" forest:aiDecision="true"><bpmn:incoming>Flow__ir2inm0</bpmn:incoming><bpmn:outgoing>Flow__mfuu3qf</bpmn:outgoing><bpmn:outgoing>Flow__0klt0v1</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__mfuu3qf" name="Yes, within 30 days" sourceRef="Gateway__fsmp0rl" targetRef="Activity__potxpm8" /><bpmn:SequenceFlow id="Flow__0klt0v1" name="No, after 30 days" sourceRef="Gateway__fsmp0rl" targetRef="Activity__nuewp5i" forest:buttonColor="red" /><bpmn:ServiceTask id="Activity__nuewp5i" name="Decline refund" forest:description="Trigger the Decline Refund action, and specify that the request was sent to us after the 30-day window of eligibility for a refund." forest:alternative="trigger-action" forest:automaticExecution="true" forest:automaticCompletion="true"><bpmn:incoming>Flow__0klt0v1</bpmn:incoming><bpmn:outgoing>Flow__erk31od</bpmn:outgoing></bpmn:ServiceTask><bpmn:endEvent id="Activity__hjy76gz" name="Refund request denied" forest:description="The customer was not refunded."><bpmn:incoming>Flow__5okdqrv</bpmn:incoming><bpmn:incoming>Flow__r2nbbd6</bpmn:incoming></bpmn:endEvent><bpmn:IntermediateThrowEvent id="Activity__oimfgg6" name="Escalation" forest:inboxId="8744462d-6eb9-49a3-bcf5-7bbf9876a58b"><bpmn:incoming>Flow__zy9phd0</bpmn:incoming><bpmn:outgoing>Flow__atc0udh</bpmn:outgoing></bpmn:IntermediateThrowEvent><bpmn:SequenceFlow id="Flow__atc0udh" sourceRef="Activity__oimfgg6" targetRef="Activity__q6qf6zc" /><bpmn:userTask id="Activity__q6qf6zc" name="Further analysis"><bpmn:incoming>Flow__atc0udh</bpmn:incoming><bpmn:outgoing>Flow__697u6v7</bpmn:outgoing></bpmn:userTask><bpmn:SequenceFlow id="Flow__697u6v7" sourceRef="Activity__q6qf6zc" targetRef="Activity__b7v5z2m" /><bpmn:ExclusiveGateway id="Activity__b7v5z2m" name="Approve refund?"><bpmn:incoming>Flow__697u6v7</bpmn:incoming><bpmn:outgoing>Flow__twx3boo</bpmn:outgoing><bpmn:outgoing>Flow__9f4do2w</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__twx3boo" name="Approve" sourceRef="Activity__b7v5z2m" targetRef="Activity__64zolu7" forest:isLinkTo="true" /><bpmn:SequenceFlow id="Flow__9f4do2w" name="Decline" sourceRef="Activity__b7v5z2m" targetRef="Activity__2f2xssm" forest:buttonColor="red" /><bpmn:ServiceTask id="Activity__2f2xssm" name="Decline refund" forest:description="Trigger the Decline refund, and specify your reason for denying the customer's request." forest:alternative="trigger-action" forest:automaticExecution="true" forest:automaticCompletion="true"><bpmn:incoming>Flow__9f4do2w</bpmn:incoming><bpmn:outgoing>Flow__5okdqrv</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__5okdqrv" sourceRef="Activity__2f2xssm" targetRef="Activity__hjy76gz" forest:isLinkTo="true" /><bpmn:ServiceTask id="Activity__q4xklmv" name="Update request status" forest:description="Update the refund request's status to APPROVED" forest:alternative="update-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__lo65zu6</bpmn:incoming><bpmn:outgoing>Flow__b7kllis</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__b7kllis" sourceRef="Activity__q4xklmv" targetRef="Activity__4oh7ya5" /><bpmn:endEvent id="Activity__xfuoxz2" name="Customer refunded" forest:description="The customer will be refunded following their request, since it falls within our policy."><bpmn:incoming>Flow__x189tjd</bpmn:incoming></bpmn:endEvent><bpmn:ServiceTask id="Activity__1eiku5g" name="Load Customer" forest:description="Load the customer related to the transaction" forest:alternative="load-related-record" forest:automaticCompletion="true"><bpmn:incoming>Flow__erk31od</bpmn:incoming><bpmn:outgoing>Flow__26yl9k8</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__26yl9k8" sourceRef="Activity__1eiku5g" targetRef="Activity__wemk7mz" /><bpmn:callActivity id="Activity__wemk7mz" name="Notify Customer via Zendesk" calledElement="71f692b4-fe4f-476d-8251-fdc5af1ec51e"><bpmn:incoming>Flow__26yl9k8</bpmn:incoming><bpmn:outgoing>Flow__r2nbbd6</bpmn:outgoing></bpmn:callActivity><bpmn:SequenceFlow id="Flow__r2nbbd6" sourceRef="Activity__wemk7mz" targetRef="Activity__hjy76gz" /><bpmn:ServiceTask id="Activity__4oh7ya5" name="Load Customer" forest:description="Load the customer related to the transaction." forest:alternative="load-related-record" forest:automaticCompletion="true"><bpmn:incoming>Flow__b7kllis</bpmn:incoming><bpmn:outgoing>Flow__da16bar</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__da16bar" sourceRef="Activity__4oh7ya5" targetRef="Activity__dvjmdl9" /><bpmn:callActivity id="Activity__dvjmdl9" name="Notify via Zendesk" calledElement="71f692b4-fe4f-476d-8251-fdc5af1ec51e"><bpmn:incoming>Flow__da16bar</bpmn:incoming><bpmn:outgoing>Flow__x189tjd</bpmn:outgoing></bpmn:callActivity><bpmn:SequenceFlow id="Flow__x189tjd" sourceRef="Activity__dvjmdl9" targetRef="Activity__xfuoxz2" /><bpmn:ServiceTask id="Activity__64zolu7" name="Trigger refund" forest:description="Create the refund on Stripe, using the payment intent ID, amount, and refund reason gathered earlier" forest:alternative="mcp-server" forest:mcpServerId="120" forest:automaticExecution="true" forest:automaticCompletion="true"><bpmn:incoming>Flow__twx3boo</bpmn:incoming><bpmn:incoming>Flow__bgbxmjm</bpmn:incoming><bpmn:outgoing>Flow__lo65zu6</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__lo65zu6" sourceRef="Activity__64zolu7" targetRef="Activity__q4xklmv" /><bpmn:SequenceFlow id="Flow__erk31od" sourceRef="Activity__nuewp5i" targetRef="Activity__1eiku5g" /></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1s8zutc"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_0b1zhsz"><dc:Bounds x="182" y="352" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="159" y="395" width="82" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_0f4hxrm_di" bpmnElement="Activity__71nirts"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_0eeccn8_di" bpmnElement="Activity__0h5rcr3"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_1k3wosz_di" bpmnElement="Activity__nn48pjv"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway_0eqij6h_di" bpmnElement="Activity__potxpm8" isMarkerVisible="true"><dc:Bounds x="50" y="60" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="38" y="117" width="83" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway__fsmp0rl_di" bpmnElement="Gateway__fsmp0rl" isMarkerVisible="true"><dc:Bounds x="75" y="75" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="61" y="132" width="88" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_0azqwsm_di" bpmnElement="Activity__nuewp5i"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_1djzujf_di" bpmnElement="Activity__hjy76gz"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="33" y="103" width="76" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_1n67dj2_di" bpmnElement="Activity__oimfgg6"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="43" y="103" width="51" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_008vycv_di" bpmnElement="Activity__q6qf6zc"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway_1j0vn31_di" bpmnElement="Activity__b7v5z2m" isMarkerVisible="true"><dc:Bounds x="50" y="60" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="37" y="117" width="82" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_1nayz8e_di" bpmnElement="Activity__2f2xssm"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_1goqrcx_di" bpmnElement="Activity__q4xklmv"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_03mqbrj_di" bpmnElement="Activity__xfuoxz2"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="51" y="103" width="48" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__1eiku5g_di" bpmnElement="Activity__1eiku5g"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__wemk7mz_di" bpmnElement="Activity__wemk7mz"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__4oh7ya5_di" bpmnElement="Activity__4oh7ya5"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__dvjmdl9_di" bpmnElement="Activity__dvjmdl9"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__64zolu7_di" bpmnElement="Activity__64zolu7"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNEdge id="Flow__65xznbc_di" bpmnElement="Flow__65xznbc"><di:waypoint x="182" y="370" /><di:waypoint x="166" y="370" /><di:waypoint x="166" y="100" /><di:waypoint x="150" y="100" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__vvm2pz5_di" bpmnElement="Flow__vvm2pz5"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__frxrjg9_di" bpmnElement="Flow__frxrjg9"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__ir2inm0_di" bpmnElement="Flow__ir2inm0"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="75" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__bgbxmjm_di" bpmnElement="Flow__bgbxmjm"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="-4" y="22" width="53" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__zy9phd0_di" bpmnElement="Flow__zy9phd0"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="95" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="62" /><bpmndi:BPMNLabel><dc:Bounds x="61" y="22" width="51" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__0klt0v1_di" bpmnElement="Flow__0klt0v1"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="51" y="52" width="84" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__mfuu3qf_di" bpmnElement="Flow__mfuu3qf"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="85" /><bpmndi:BPMNLabel><dc:Bounds x="46" y="22" width="68" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__atc0udh_di" bpmnElement="Flow__atc0udh"><di:waypoint x="68" y="60" /><di:waypoint x="68" y="40" /><di:waypoint x="88" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__697u6v7_di" bpmnElement="Flow__697u6v7"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="85" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__twx3boo_di" bpmnElement="Flow__twx3boo"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="13" y="22" width="41" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__9f4do2w_di" bpmnElement="Flow__9f4do2w"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="95" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="68" y="22" width="37" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__5okdqrv_di" bpmnElement="Flow__5okdqrv"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="0" y="0" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__b7kllis_di" bpmnElement="Flow__b7kllis"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__26yl9k8_di" bpmnElement="Flow__26yl9k8"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__r2nbbd6_di" bpmnElement="Flow__r2nbbd6"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="0" y="0" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__da16bar_di" bpmnElement="Flow__da16bar"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__x189tjd_di" bpmnElement="Flow__x189tjd"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="0" y="0" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__lo65zu6_di" bpmnElement="Flow__lo65zu6"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__erk31od_di" bpmnElement="Flow__erk31od"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>
|
|
@@ -0,0 +1,2 @@
|
|
|
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:forest="https://app.forestadmin.com" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0hdve55" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="18.6.1"><bpmn:process id="Process_1s8zutc" isExecutable="false"><bpmn:startEvent id="StartEvent_0b1zhsz" name="Start of workflow"><bpmn:outgoing>Flow__quzktdi</bpmn:outgoing></bpmn:startEvent><bpmn:SequenceFlow id="Flow__quzktdi" sourceRef="StartEvent_0b1zhsz" targetRef="Activity__ufq2a5e" /><bpmn:ServiceTask id="Activity__ufq2a5e" name="Get Email & Name" forest:description="Retrieve the customer's email, first name, and last name." forest:alternative="get-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__quzktdi</bpmn:incoming><bpmn:outgoing>Flow__5h1pqxu</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__5h1pqxu" sourceRef="Activity__ufq2a5e" targetRef="Gateway__9aax433" /><bpmn:endEvent id="Activity__r8yoq51" name="End"><bpmn:incoming>Flow__qvw9geq</bpmn:incoming></bpmn:endEvent><bpmn:ServiceTask id="Activity__rnct6kw" name="Request missing documents" forest:description="Notify the customer (using their email as the requester) that some of their documents are missing, to complete their onboarding (fill in the blanks where possible): "Dear [customer name], We are missing a few documents in order to complete your onboarding: [list of missing documents] Please add them to your personal space in our app, or send them in response to this email. Thanks! The Forest Team" Use the "billing@d3v-forestadminsupport.zendesk.com" email address as the recipient. Set the Priority to "Low". Add "RFI" as a Tag. Set the Status to "Closed"." forest:alternative="mcp-server" forest:mcpServerId="153" forest:automaticExecution="true" forest:automaticCompletion="true"><bpmn:incoming>Flow__bk7vrw4</bpmn:incoming><bpmn:outgoing>Flow__qvw9geq</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__qvw9geq" sourceRef="Activity__rnct6kw" targetRef="Activity__r8yoq51" /><bpmn:ExclusiveGateway id="Gateway__9aax433" name="Reason for contact" forest:description="What's the reason for contacting the customer?" forest:aiDecision="true"><bpmn:incoming>Flow__5h1pqxu</bpmn:incoming><bpmn:outgoing>Flow__f5xfdiv</bpmn:outgoing><bpmn:outgoing>Flow__a7gw6h6</bpmn:outgoing><bpmn:outgoing>Flow__023r2pv</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__f5xfdiv" name="Missing documents" sourceRef="Gateway__9aax433" targetRef="Activity__qhw2mil" forest:buttonColor="yellow" /><bpmn:SequenceFlow id="Flow__a7gw6h6" name="Refund request approved" sourceRef="Gateway__9aax433" targetRef="Activity__w9nv9o1" /><bpmn:SequenceFlow id="Flow__023r2pv" name="Refind request declined" sourceRef="Gateway__9aax433" targetRef="Activity__h3xwwva" forest:buttonColor="red" /><bpmn:ServiceTask id="Activity__w9nv9o1" name="Refund request approved" forest:description="Notify the customer that their refund request was approved (fill in the blanks where possible): Dear [customer name], We are pleased to let you know that your refund request has been accepted: [details regarding refund request] Please allow up to 5 days for the funds to be back on your account. Thanks! The Forest Team" forest:alternative="mcp-server" forest:mcpServerId="153" forest:automaticExecution="true" forest:automaticCompletion="true"><bpmn:incoming>Flow__a7gw6h6</bpmn:incoming><bpmn:outgoing>Flow__rvvyma5</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__rvvyma5" sourceRef="Activity__w9nv9o1" targetRef="Activity__uh8cfia" /><bpmn:ServiceTask id="Activity__h3xwwva" name="Refund request declined" forest:description="Notify the customer that their refund request was declined (fill in the blanks where possible): Dear [customer name], After careful review, we regret to let you know that your refund request has been declined: [details regarding refund request] [reason for refusal] Feel free to respond to this email if you believe there was an error on our part, otherwise you can consider this case closed. Thanks! The Forest Team" forest:alternative="mcp-server" forest:mcpServerId="153" forest:automaticExecution="true" forest:automaticCompletion="true"><bpmn:incoming>Flow__023r2pv</bpmn:incoming><bpmn:outgoing>Flow__dtgj5b6</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__dtgj5b6" sourceRef="Activity__h3xwwva" targetRef="Activity__9wkehs5" /><bpmn:endEvent id="Activity__uh8cfia" name="End"><bpmn:incoming>Flow__rvvyma5</bpmn:incoming></bpmn:endEvent><bpmn:endEvent id="Activity__9wkehs5" name="End"><bpmn:incoming>Flow__dtgj5b6</bpmn:incoming></bpmn:endEvent><bpmn:UserTask id="Activity__qhw2mil" name="Which documents?" forest:description="Please list all the missing documents here." forest:completionType="user-input" forest:inputType="free-text"><bpmn:incoming>Flow__f5xfdiv</bpmn:incoming><bpmn:outgoing>Flow__bk7vrw4</bpmn:outgoing></bpmn:UserTask><bpmn:SequenceFlow id="Flow__bk7vrw4" sourceRef="Activity__qhw2mil" targetRef="Activity__rnct6kw" /></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1s8zutc"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_0b1zhsz"><dc:Bounds x="182" y="352" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="159" y="395" width="82" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_0orn7ek_di" bpmnElement="Activity__ufq2a5e"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_192172c_di" bpmnElement="Activity__r8yoq51"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="58" y="103" width="20" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__rnct6kw_di" bpmnElement="Activity__rnct6kw"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway__9aax433_di" bpmnElement="Gateway__9aax433" isMarkerVisible="true"><dc:Bounds x="75" y="75" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="76" y="132" width="54" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__w9nv9o1_di" bpmnElement="Activity__w9nv9o1"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__h3xwwva_di" bpmnElement="Activity__h3xwwva"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_1qvj4gv_di" bpmnElement="Activity__uh8cfia"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="58" y="103" width="20" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_0ida3e6_di" bpmnElement="Activity__9wkehs5"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="58" y="103" width="20" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__qhw2mil_di" bpmnElement="Activity__qhw2mil"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNEdge id="Flow__quzktdi_di" bpmnElement="Flow__quzktdi"><di:waypoint x="182" y="370" /><di:waypoint x="166" y="370" /><di:waypoint x="166" y="0" /><di:waypoint x="150" y="0" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__5h1pqxu_di" bpmnElement="Flow__5h1pqxu"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="75" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__qvw9geq_di" bpmnElement="Flow__qvw9geq"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="0" y="0" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__f5xfdiv_di" bpmnElement="Flow__f5xfdiv"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="24" y="31" width="54" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__a7gw6h6_di" bpmnElement="Flow__a7gw6h6"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="13" y="32" width="76" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__023r2pv_di" bpmnElement="Flow__023r2pv"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="15" y="32" width="72" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__rvvyma5_di" bpmnElement="Flow__rvvyma5"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="32" y="33" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__dtgj5b6_di" bpmnElement="Flow__dtgj5b6"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__bk7vrw4_di" bpmnElement="Flow__bk7vrw4"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>
|
|
@@ -0,0 +1,2 @@
|
|
|
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:forest="https://app.forestadmin.com" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0hdve55" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="18.6.1"><bpmn:process id="Process_1s8zutc" isExecutable="false"><bpmn:startEvent id="StartEvent_0b1zhsz" name="Start of workflow"><bpmn:outgoing>Flow__gmagfct</bpmn:outgoing></bpmn:startEvent><bpmn:SequenceFlow id="Flow__gmagfct" sourceRef="StartEvent_0b1zhsz" targetRef="Activity__1ifrrzh" /><bpmn:endEvent id="Activity__gv4gw1g" name="End"><bpmn:incoming>Flow__78pxzhg</bpmn:incoming></bpmn:endEvent><bpmn:userTask id="Activity__1ifrrzh" name="Enhanced investigation" forest:description="Perform enhanced investigation"><bpmn:incoming>Flow__gmagfct</bpmn:incoming><bpmn:outgoing>Flow__78pxzhg</bpmn:outgoing></bpmn:userTask><bpmn:SequenceFlow id="Flow__78pxzhg" sourceRef="Activity__1ifrrzh" targetRef="Activity__gv4gw1g" /></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1s8zutc"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_0b1zhsz"><dc:Bounds x="182" y="352" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="159" y="395" width="82" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_0js681l_di" bpmnElement="Activity__gv4gw1g"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="58" y="103" width="20" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__1ifrrzh_di" bpmnElement="Activity__1ifrrzh"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNEdge id="Flow__gmagfct_di" bpmnElement="Flow__gmagfct"><di:waypoint x="182" y="370" /><di:waypoint x="134" y="370" /><di:waypoint x="134" y="0" /><di:waypoint x="134" y="140" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__78pxzhg_di" bpmnElement="Flow__78pxzhg"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>
|
|
@@ -0,0 +1,2 @@
|
|
|
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:forest="https://app.forestadmin.com" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0hdve55" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="18.6.1"><bpmn:process id="Process_1s8zutc" isExecutable="false"><bpmn:startEvent id="StartEvent_0b1zhsz" name="Start of workflow"><bpmn:outgoing>Flow__cuttcua</bpmn:outgoing></bpmn:startEvent><bpmn:SequenceFlow id="Flow__cuttcua" sourceRef="StartEvent_0b1zhsz" targetRef="Activity__epyrf4n" /><bpmn:ServiceTask id="Activity__7kgwzy5" name="Load Customer" forest:description="Load the customer related to the chargeback" forest:alternative="load-related-record" forest:automaticCompletion="true"><bpmn:incoming>Flow__atixn20</bpmn:incoming><bpmn:outgoing>Flow__7x9baiv</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__7x9baiv" sourceRef="Activity__7kgwzy5" targetRef="Activity__iltbx8j" /><bpmn:ServiceTask id="Activity__iltbx8j" name="Get country" forest:description="Retrieve the customer's country" forest:alternative="get-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__7x9baiv</bpmn:incoming><bpmn:outgoing>Flow__lzn9b5a</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__lzn9b5a" sourceRef="Activity__iltbx8j" targetRef="Activity__08fy3ej" /><bpmn:ExclusiveGateway id="Activity__08fy3ej" name="Country?" forest:description="Is the Country part of the EU, or is it the UK or US?" forest:aiDecision="true"><bpmn:incoming>Flow__lzn9b5a</bpmn:incoming><bpmn:outgoing>Flow__29xeh89</bpmn:outgoing><bpmn:outgoing>Flow__es5p9iw</bpmn:outgoing><bpmn:outgoing>Flow__2388k4b</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__29xeh89" name="EU" sourceRef="Activity__08fy3ej" targetRef="Activity__j15st68" /><bpmn:SequenceFlow id="Flow__es5p9iw" name="UK" sourceRef="Activity__08fy3ej" targetRef="Activity__rhy4fcg" /><bpmn:SequenceFlow id="Flow__2388k4b" name="US" sourceRef="Activity__08fy3ej" targetRef="Activity__fc16h7x" /><bpmn:UserTask id="Activity__j15st68" name="SFS Path" forest:description="As this is an EU customer, you can simply follow the regular SFS path for this dispute."><bpmn:incoming>Flow__29xeh89</bpmn:incoming><bpmn:outgoing>Flow__8ctz1gj</bpmn:outgoing></bpmn:UserTask><bpmn:SequenceFlow id="Flow__8ctz1gj" sourceRef="Activity__j15st68" targetRef="Activity__c9ynbk4" /><bpmn:endEvent id="Activity__c9ynbk4" name="End"><bpmn:incoming>Flow__8ctz1gj</bpmn:incoming></bpmn:endEvent><bpmn:ServiceTask id="Activity__rhy4fcg" name="Get Adyen dispute" forest:description="Get the dispute associated with the chargeback's processor dispute id." forest:alternative="mcp-server" forest:mcpServerId="192" forest:automaticExecution="true" forest:automaticCompletion="false"><bpmn:incoming>Flow__es5p9iw</bpmn:incoming><bpmn:outgoing>Flow__4i9uid6</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__4i9uid6" sourceRef="Activity__rhy4fcg" targetRef="Gateway__lfyq794" /><bpmn:endEvent id="Activity__58x8cah" name="End"><bpmn:incoming>Flow__sh0135l</bpmn:incoming></bpmn:endEvent><bpmn:ServiceTask id="Activity__fc16h7x" name="Create Marqeta dispute" forest:description="Create the dispute on Marqeta, using the processor_dispute_id, amount, currency, reason_code, and network. You should get a token back, that we'll use in a subsequent step." forest:alternative="mcp-server" forest:mcpServerId="193" forest:automaticExecution="true" forest:automaticCompletion="true"><bpmn:incoming>Flow__2388k4b</bpmn:incoming><bpmn:outgoing>Flow__j89wasb</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__j89wasb" sourceRef="Activity__fc16h7x" targetRef="Activity__nlf5s99" /><bpmn:endEvent id="Activity__u0c2d1y" name="End"><bpmn:incoming>Flow__rutk2op</bpmn:incoming></bpmn:endEvent><bpmn:ExclusiveGateway id="Gateway__lfyq794" name="Fight or accept?" forest:description="If the evidence URL is present, and there are more than 3 days to the deadline, and the amount is above EUR100, then we should fight the dispute. Otherwise, we can just accept it." forest:aiDecision="true"><bpmn:incoming>Flow__4i9uid6</bpmn:incoming><bpmn:outgoing>Flow__otkjmww</bpmn:outgoing><bpmn:outgoing>Flow__6i0ng6p</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__otkjmww" name="Fight" sourceRef="Gateway__lfyq794" targetRef="Activity__fylp64j" forest:buttonColor="yellow" /><bpmn:SequenceFlow id="Flow__6i0ng6p" name="Accept" sourceRef="Gateway__lfyq794" targetRef="Activity__phtnb1n" /><bpmn:ServiceTask id="Activity__fylp64j" name="Submit defense" forest:description="Submit the defense" forest:alternative="mcp-server" forest:mcpServerId="192" forest:automaticExecution="true" forest:automaticCompletion="false"><bpmn:incoming>Flow__otkjmww</bpmn:incoming><bpmn:outgoing>Flow__sh0135l</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__sh0135l" sourceRef="Activity__fylp64j" targetRef="Activity__58x8cah" /><bpmn:ServiceTask id="Activity__phtnb1n" name="Accept dispute" forest:description="Accept the dispute" forest:alternative="mcp-server" forest:mcpServerId="192" forest:automaticExecution="true" forest:automaticCompletion="false"><bpmn:incoming>Flow__6i0ng6p</bpmn:incoming><bpmn:outgoing>Flow__kiiqdiz</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__kiiqdiz" sourceRef="Activity__phtnb1n" targetRef="Activity__4nokk0b" /><bpmn:endEvent id="Activity__4nokk0b" name="End"><bpmn:incoming>Flow__kiiqdiz</bpmn:incoming></bpmn:endEvent><bpmn:ServiceTask id="Activity__epyrf4n" name="Get chargeback data" forest:description="Retrieve all the data associated with the chargeback request." forest:alternative="get-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__cuttcua</bpmn:incoming><bpmn:outgoing>Flow__atixn20</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__atixn20" sourceRef="Activity__epyrf4n" targetRef="Activity__7kgwzy5" /><bpmn:ServiceTask id="Activity__nlf5s99" name="Retrieve dispute status" forest:description="Retrieve the current status of a Marqeta dispute by its dispute token." forest:alternative="mcp-server" forest:mcpServerId="193" forest:automaticCompletion="false"><bpmn:incoming>Flow__j89wasb</bpmn:incoming><bpmn:outgoing>Flow__s2m88dh</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__s2m88dh" sourceRef="Activity__nlf5s99" targetRef="Activity__w55kqtm" /><bpmn:UserTask id="Activity__w55kqtm" name="Next steps..." forest:description="Update relevant data in your DB based on the Marqeta data."><bpmn:incoming>Flow__s2m88dh</bpmn:incoming><bpmn:outgoing>Flow__rutk2op</bpmn:outgoing></bpmn:UserTask><bpmn:SequenceFlow id="Flow__rutk2op" sourceRef="Activity__w55kqtm" targetRef="Activity__u0c2d1y" /></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1s8zutc"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_0b1zhsz"><dc:Bounds x="182" y="352" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="159" y="395" width="82" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_0lxa0w2_di" bpmnElement="Activity__7kgwzy5"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_00vnyz6_di" bpmnElement="Activity__iltbx8j"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway_15hzcdo_di" bpmnElement="Activity__08fy3ej" isMarkerVisible="true"><dc:Bounds x="50" y="60" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="55" y="117" width="45" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_0qdenln_di" bpmnElement="Activity__j15st68"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_18tqoiu_di" bpmnElement="Activity__c9ynbk4"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="58" y="103" width="20" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_0dizh1k_di" bpmnElement="Activity__rhy4fcg"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_1g8ts59_di" bpmnElement="Activity__58x8cah"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="58" y="103" width="20" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_06v6yk8_di" bpmnElement="Activity__fc16h7x"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_1nqy0dy_di" bpmnElement="Activity__u0c2d1y"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="58" y="103" width="20" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway__lfyq794_di" bpmnElement="Gateway__lfyq794" isMarkerVisible="true"><dc:Bounds x="75" y="75" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="64" y="132" width="79" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__fylp64j_di" bpmnElement="Activity__fylp64j"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_1o540s7_di" bpmnElement="Activity__phtnb1n"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_0am7rbb_di" bpmnElement="Activity__4nokk0b"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="58" y="103" width="20" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__epyrf4n_di" bpmnElement="Activity__epyrf4n"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__nlf5s99_di" bpmnElement="Activity__nlf5s99"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__w55kqtm_di" bpmnElement="Activity__w55kqtm"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNEdge id="Flow__cuttcua_di" bpmnElement="Flow__cuttcua"><di:waypoint x="182" y="370" /><di:waypoint x="166" y="370" /><di:waypoint x="166" y="0" /><di:waypoint x="150" y="0" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__7x9baiv_di" bpmnElement="Flow__7x9baiv"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__lzn9b5a_di" bpmnElement="Flow__lzn9b5a"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="85" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__29xeh89_di" bpmnElement="Flow__29xeh89"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="95" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="77" y="22" width="16" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__es5p9iw_di" bpmnElement="Flow__es5p9iw"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="95" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="77" y="22" width="16" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__2388k4b_di" bpmnElement="Flow__2388k4b"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="95" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="77" y="22" width="16" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__8ctz1gj_di" bpmnElement="Flow__8ctz1gj"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__4i9uid6_di" bpmnElement="Flow__4i9uid6"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="75" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__j89wasb_di" bpmnElement="Flow__j89wasb"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__otkjmww_di" bpmnElement="Flow__otkjmww"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="43" y="22" width="25" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__6i0ng6p_di" bpmnElement="Flow__6i0ng6p"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="54" /><di:waypoint x="120" y="54" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="119" y="46" width="34" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__sh0135l_di" bpmnElement="Flow__sh0135l"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__kiiqdiz_di" bpmnElement="Flow__kiiqdiz"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__atixn20_di" bpmnElement="Flow__atixn20"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__s2m88dh_di" bpmnElement="Flow__s2m88dh"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__rutk2op_di" bpmnElement="Flow__rutk2op"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>
|
|
@@ -0,0 +1,2 @@
|
|
|
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:forest="https://app.forestadmin.com" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0hdve55" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="18.6.1"><bpmn:process id="Process_1s8zutc" isExecutable="false"><bpmn:startEvent id="StartEvent_0b1zhsz" name="Start of workflow"><bpmn:outgoing>Flow__uvv61o5</bpmn:outgoing></bpmn:startEvent><bpmn:SequenceFlow id="Flow__uvv61o5" sourceRef="StartEvent_0b1zhsz" targetRef="Activity__h5nee4i" /><bpmn:UserTask id="Activity__h5nee4i" name="Check 90-day transactions" forest:description="Load the customer's 90-day transactions in the AML Investigation workspace, and see if you can notice any patterns or suspicious activity."><bpmn:incoming>Flow__uvv61o5</bpmn:incoming><bpmn:outgoing>Flow__mc3c07x</bpmn:outgoing></bpmn:UserTask><bpmn:ServiceTask id="Activity__iy6ihfh" name="Load customer" forest:description="Load the customer related to the alert" forest:alternative="load-related-record" forest:automaticCompletion="true"><bpmn:incoming>Flow__mc3c07x</bpmn:incoming><bpmn:outgoing>Flow__v7yuree</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__v7yuree" sourceRef="Activity__iy6ihfh" targetRef="Activity__xz6dmcl" /><bpmn:ServiceTask id="Activity__xz6dmcl" name="Get KYC data" forest:description="Retrieve the values retrieved during the customer's onboarding: - First & last name - Date of birth - Nationality - Country of residence - PEP - Sanctions - Risk rating" forest:alternative="get-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__v7yuree</bpmn:incoming><bpmn:outgoing>Flow__9k15d0t</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__9k15d0t" sourceRef="Activity__xz6dmcl" targetRef="Activity__lopka1l" /><bpmn:ExclusiveGateway id="Activity__vv5ijd8" name="Clear or Escalate?" forest:description="Based on the transaction history, and screening results regarding the customer, would you recommend clearing this alert, or escalating it to a senior compliance officer?" forest:aiDecision="true"><bpmn:incoming>Flow__n4zvzbn</bpmn:incoming><bpmn:outgoing>Flow__lsnkn7w</bpmn:outgoing><bpmn:outgoing>Flow__aakv4yc</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__aakv4yc" name="All good, clear" sourceRef="Activity__vv5ijd8" targetRef="Activity__3rqh8bm" /><bpmn:SequenceFlow id="Flow__lsnkn7w" name="Suspicious, escalate" sourceRef="Activity__vv5ijd8" targetRef="Activity__q15qdm0" forest:buttonColor="red" /><bpmn:ServiceTask id="Activity__3rqh8bm" name="Clear alert" forest:description="Trigger the Clear Alert action, as a false positive" forest:alternative="trigger-action" forest:automaticExecution="true" forest:automaticCompletion="true"><bpmn:incoming>Flow__aakv4yc</bpmn:incoming><bpmn:outgoing>Flow__zt4w1ai</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__zt4w1ai" sourceRef="Activity__3rqh8bm" targetRef="Activity__j209e41" /><bpmn:endEvent id="Activity__j209e41" name="Alert cleared"><bpmn:incoming>Flow__zt4w1ai</bpmn:incoming></bpmn:endEvent><bpmn:ServiceTask id="Activity__q15qdm0" name="Create SAR" forest:description="Trigger the Create SAR action, and fill out the report with the information gathered during the investigation." forest:alternative="trigger-action" forest:automaticCompletion="true"><bpmn:incoming>Flow__lsnkn7w</bpmn:incoming><bpmn:outgoing>Flow__ik7ncjb</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__ik7ncjb" sourceRef="Activity__q15qdm0" targetRef="Activity__6yaq353" /><bpmn:IntermediateThrowEvent id="Activity__6yaq353" name="Escalation" forest:inboxId="48dc1277-8434-40a6-b495-9b5d69ed6e7c"><bpmn:incoming>Flow__ik7ncjb</bpmn:incoming><bpmn:outgoing>Flow__wdmspqe</bpmn:outgoing></bpmn:IntermediateThrowEvent><bpmn:SequenceFlow id="Flow__wdmspqe" sourceRef="Activity__6yaq353" targetRef="Activity__frow4m3" /><bpmn:ExclusiveGateway id="Activity__d0ppdpd" name="Good to file?" forest:description="Review the contents of the SAR report. Does it contain everything required to file it, or do you want the AML analyst to run an enhanced investigation?"><bpmn:incoming>Flow__8swautv</bpmn:incoming><bpmn:incoming>Flow__s785a11</bpmn:incoming><bpmn:outgoing>Flow__s2x3psf</bpmn:outgoing><bpmn:outgoing>Flow__3t2xiwp</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__s2x3psf" name="Yes" sourceRef="Activity__d0ppdpd" targetRef="Activity__q7s26s2" /><bpmn:SequenceFlow id="Flow__3t2xiwp" name="Need more info" sourceRef="Activity__d0ppdpd" targetRef="Activity__r8eaont" forest:buttonColor="orange" /><bpmn:ServiceTask id="Activity__q7s26s2" name="File SAR" forest:description="Trigger the File SAR action to file the report." forest:alternative="trigger-action" forest:automaticExecution="true" forest:automaticCompletion="true"><bpmn:incoming>Flow__s2x3psf</bpmn:incoming><bpmn:outgoing>Flow__8f3cfwm</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__8f3cfwm" sourceRef="Activity__q7s26s2" targetRef="Activity__dvtnwwd" /><bpmn:endEvent id="Activity__dvtnwwd" name="SAR filed"><bpmn:incoming>Flow__8f3cfwm</bpmn:incoming></bpmn:endEvent><bpmn:callActivity id="Activity__r8eaont" name="Request enhanced investigation" calledElement="9d564d80-19d1-4ce4-bb4b-aaf41e7ef5b6"><bpmn:incoming>Flow__3t2xiwp</bpmn:incoming><bpmn:outgoing>Flow__8swautv</bpmn:outgoing></bpmn:callActivity><bpmn:SequenceFlow id="Flow__8swautv" sourceRef="Activity__r8eaont" targetRef="Activity__d0ppdpd" forest:isLinkTo="true" /><bpmn:ServiceTask id="Activity__frow4m3" name="Load SAR" forest:description="Load the SAR related to this Alert" forest:alternative="load-related-record" forest:automaticCompletion="true"><bpmn:incoming>Flow__wdmspqe</bpmn:incoming><bpmn:outgoing>Flow__49h32gh</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__49h32gh" sourceRef="Activity__frow4m3" targetRef="Activity__97dsa66" /><bpmn:ServiceTask id="Activity__97dsa66" name="Retrieve SAR info" forest:description="Retrieve the following information from the SAR: - Activity type - Activity start date - Activity end date - Number of transactions - Total amount - Narrative" forest:alternative="get-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__49h32gh</bpmn:incoming><bpmn:outgoing>Flow__s785a11</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__s785a11" sourceRef="Activity__97dsa66" targetRef="Activity__d0ppdpd" /><bpmn:ServiceTask id="Activity__89w5ifc" name="Kolar (sandbox) Screening" forest:description="Run the AML Alert Screening tool on the customer. The first name, last name, matchFirstNames, matchLastNames, and matchType are required fields; use "SL" as the matchType. Leave other fields as empty strings if the information isn't available." forest:alternative="mcp-server" forest:mcpServerId="112" forest:automaticExecution="true" forest:automaticCompletion="true"><bpmn:incoming>Flow__r62um7y</bpmn:incoming><bpmn:outgoing>Flow__n4zvzbn</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__n4zvzbn" sourceRef="Activity__89w5ifc" targetRef="Activity__vv5ijd8" /><bpmn:SequenceFlow id="Flow__mc3c07x" sourceRef="Activity__h5nee4i" targetRef="Activity__iy6ihfh" /><bpmn:ServiceTask id="Activity__lopka1l" name="Kolar Screening" forest:description="Run the AML Alert Screening tool on the customer. The first name, last name, matchFirstNames, matchLastNames, and matchType are required fields, but fill out the other fields with data from the context if you have them available. Use "SL" as the matchType. Leave other fields as empty strings if the information isn't available in your context." forest:alternative="mcp-server" forest:mcpServerId="174" forest:automaticExecution="true" forest:automaticCompletion="false"><bpmn:incoming>Flow__9k15d0t</bpmn:incoming><bpmn:outgoing>Flow__r62um7y</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__r62um7y" sourceRef="Activity__lopka1l" targetRef="Activity__89w5ifc" /></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1s8zutc"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_0b1zhsz"><dc:Bounds x="182" y="352" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="159" y="395" width="82" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_01nk1ey_di" bpmnElement="Activity__h5nee4i"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_11it7eo_di" bpmnElement="Activity__iy6ihfh"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_1qktc44_di" bpmnElement="Activity__xz6dmcl"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway_1m09ib9_di" bpmnElement="Activity__vv5ijd8" isMarkerVisible="true"><dc:Bounds x="50" y="60" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="54" y="117" width="49" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_0twb28e_di" bpmnElement="Activity__3rqh8bm"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_0eb2lvf_di" bpmnElement="Activity__j209e41"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="38" y="103" width="62" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_15jkk14_di" bpmnElement="Activity__q15qdm0"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_1sy0b4c_di" bpmnElement="Activity__6yaq353"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="43" y="103" width="51" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway_0vrysns_di" bpmnElement="Activity__d0ppdpd" isMarkerVisible="true"><dc:Bounds x="50" y="60" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="45" y="117" width="63" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_1cahchb_di" bpmnElement="Activity__q7s26s2"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_0d4l5g7_di" bpmnElement="Activity__dvtnwwd"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="47" y="103" width="46" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_016kgvl_di" bpmnElement="Activity__r8eaont"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__frow4m3_di" bpmnElement="Activity__frow4m3"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__97dsa66_di" bpmnElement="Activity__97dsa66"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__89w5ifc_di" bpmnElement="Activity__89w5ifc"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__lopka1l_di" bpmnElement="Activity__lopka1l"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNEdge id="Flow__uvv61o5_di" bpmnElement="Flow__uvv61o5"><di:waypoint x="182" y="370" /><di:waypoint x="166" y="370" /><di:waypoint x="166" y="0" /><di:waypoint x="150" y="0" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__v7yuree_di" bpmnElement="Flow__v7yuree"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__9k15d0t_di" bpmnElement="Flow__9k15d0t"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__aakv4yc_di" bpmnElement="Flow__aakv4yc"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="95" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="52" y="22" width="70" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__lsnkn7w_di" bpmnElement="Flow__lsnkn7w"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="95" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="59" y="22" width="57" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__zt4w1ai_di" bpmnElement="Flow__zt4w1ai"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__ik7ncjb_di" bpmnElement="Flow__ik7ncjb"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__wdmspqe_di" bpmnElement="Flow__wdmspqe"><di:waypoint x="68" y="60" /><di:waypoint x="68" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__s2x3psf_di" bpmnElement="Flow__s2x3psf"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="95" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="77" y="22" width="18" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__3t2xiwp_di" bpmnElement="Flow__3t2xiwp"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="95" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="49" y="22" width="76" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__8f3cfwm_di" bpmnElement="Flow__8f3cfwm"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__8swautv_di" bpmnElement="Flow__8swautv"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="85" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__49h32gh_di" bpmnElement="Flow__49h32gh"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__s785a11_di" bpmnElement="Flow__s785a11"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__n4zvzbn_di" bpmnElement="Flow__n4zvzbn"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="85" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__mc3c07x_di" bpmnElement="Flow__mc3c07x"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__r62um7y_di" bpmnElement="Flow__r62um7y"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>
|
|
@@ -0,0 +1,2 @@
|
|
|
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:forest="https://app.forestadmin.com" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0hdve55" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="18.6.1"><bpmn:process id="Process_1s8zutc" isExecutable="false"><bpmn:startEvent id="StartEvent_0b1zhsz" name="Start of workflow"><bpmn:outgoing>Flow__4asgudy</bpmn:outgoing></bpmn:startEvent><bpmn:SequenceFlow id="Flow__4asgudy" sourceRef="StartEvent_0b1zhsz" targetRef="Activity__74v7y4h" /><bpmn:userTask id="Activity__74v7y4h" name="Perform EDD" forest:description="Perform EDD analysis to clear this customer's onboarding or not."><bpmn:incoming>Flow__4asgudy</bpmn:incoming><bpmn:outgoing>Flow__l6aoc1i</bpmn:outgoing></bpmn:userTask><bpmn:SequenceFlow id="Flow__l6aoc1i" sourceRef="Activity__74v7y4h" targetRef="Activity__15m85t4" /><bpmn:endEvent id="Activity__15m85t4" name="End"><bpmn:incoming>Flow__l6aoc1i</bpmn:incoming></bpmn:endEvent></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1s8zutc"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_0b1zhsz"><dc:Bounds x="182" y="352" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="159" y="395" width="82" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_0rwm63m_di" bpmnElement="Activity__74v7y4h"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_1myasv2_di" bpmnElement="Activity__15m85t4"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="58" y="103" width="20" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNEdge id="Flow__4asgudy_di" bpmnElement="Flow__4asgudy"><di:waypoint x="182" y="370" /><di:waypoint x="166" y="370" /><di:waypoint x="166" y="100" /><di:waypoint x="150" y="100" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__l6aoc1i_di" bpmnElement="Flow__l6aoc1i"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>
|
|
@@ -0,0 +1,2 @@
|
|
|
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:forest="https://app.forestadmin.com" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0hdve55" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="18.6.1"><bpmn:process id="Process_1s8zutc" isExecutable="false"><bpmn:startEvent id="StartEvent_0b1zhsz" name="Start of workflow"><bpmn:outgoing>Flow__8v0wyut</bpmn:outgoing></bpmn:startEvent><bpmn:SequenceFlow id="Flow__8v0wyut" sourceRef="StartEvent_0b1zhsz" targetRef="Activity__5ezjc9p" /><bpmn:ServiceTask id="Activity__5ezjc9p" name="Retrieve data from Forest" forest:description="🔎 First, let's load some data available in Forest regarding the selected document: - document type - URL - uploaded date" forest:alternative="get-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__8v0wyut</bpmn:incoming><bpmn:outgoing>Flow__ya2guwx</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__ya2guwx" sourceRef="Activity__5ezjc9p" targetRef="Activity__hhyjybz" /><bpmn:ServiceTask id="Activity__hhyjybz" name="Extract document info" forest:description="🪪 Now, let's extract information from the document, using the Mistral OCR. Click on Done once it's been executed to move on to the next step." forest:alternative="mcp-server" forest:mcpServerId="128" forest:automaticExecution="true" forest:automaticCompletion="false"><bpmn:incoming>Flow__ya2guwx</bpmn:incoming><bpmn:outgoing>Flow__1b0bvhk</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__1b0bvhk" sourceRef="Activity__hhyjybz" targetRef="Activity__sh0g3gf" /><bpmn:ServiceTask id="Activity__sh0g3gf" name="Verify Document" forest:description="⚡️ Now let's trigger the Verify Document action. It's got some logic in it to review the submitted document and either verify or reject it. Click on Execute to execute the action." forest:alternative="trigger-action" forest:automaticCompletion="true"><bpmn:incoming>Flow__1b0bvhk</bpmn:incoming><bpmn:outgoing>Flow__hryop7e</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__hryop7e" sourceRef="Activity__sh0g3gf" targetRef="Activity__4cvvcha" /><bpmn:endEvent id="Activity__zdd5gmm" name="Document verified successfully!" forest:description="🎉 Congrats, the document was verified successfully! 🙅 You may now close this workflow."><bpmn:incoming>Flow__f0l189z</bpmn:incoming></bpmn:endEvent><bpmn:ExclusiveGateway id="Gateway__9iy7l5c" name="Document verified?" forest:description="🧐 Was the document verified successfully?" forest:aiDecision="false"><bpmn:incoming>Flow__4mkf9m7</bpmn:incoming><bpmn:outgoing>Flow__f0l189z</bpmn:outgoing><bpmn:outgoing>Flow__3709hx6</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__f0l189z" name="Yes, verified" sourceRef="Gateway__9iy7l5c" targetRef="Activity__zdd5gmm" /><bpmn:SequenceFlow id="Flow__3709hx6" name="Not verified" sourceRef="Gateway__9iy7l5c" targetRef="Activity__8gginj5" forest:buttonColor="red" /><bpmn:ServiceTask id="Activity__4cvvcha" name="Check document's verification status" forest:description="👀 Now let's double check that the data was updated accordingly, by checking the value of the document's Verified field." forest:alternative="get-data" forest:automaticCompletion="false"><bpmn:incoming>Flow__hryop7e</bpmn:incoming><bpmn:outgoing>Flow__4mkf9m7</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__4mkf9m7" sourceRef="Activity__4cvvcha" targetRef="Gateway__9iy7l5c" /><bpmn:endEvent id="Activity__8gginj5" name="Document not verified!" forest:description="❌ The document could not be verified - this is the end of the workflow, but at this point the next step would probably be to contact the Customer and ask them to upload a valid version of this document. 🙅 For the time being, you may now close this workflow."><bpmn:incoming>Flow__3709hx6</bpmn:incoming></bpmn:endEvent></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1s8zutc"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_0b1zhsz"><dc:Bounds x="182" y="352" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="159" y="395" width="82" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_0qk9ox7_di" bpmnElement="Activity__5ezjc9p"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_07wi4uh_di" bpmnElement="Activity__hhyjybz"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_067m19p_di" bpmnElement="Activity__sh0g3gf"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_0rto1sl_di" bpmnElement="Activity__zdd5gmm"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="27" y="103" width="89" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway__9iy7l5c_di" bpmnElement="Gateway__9iy7l5c" isMarkerVisible="true"><dc:Bounds x="75" y="75" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="78" y="132" width="51" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__4cvvcha_di" bpmnElement="Activity__4cvvcha"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_1snse6c_di" bpmnElement="Activity__8gginj5"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="39" y="103" width="69" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNEdge id="Flow__8v0wyut_di" bpmnElement="Flow__8v0wyut"><di:waypoint x="182" y="370" /><di:waypoint x="166" y="370" /><di:waypoint x="166" y="100" /><di:waypoint x="150" y="100" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__ya2guwx_di" bpmnElement="Flow__ya2guwx"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__1b0bvhk_di" bpmnElement="Flow__1b0bvhk"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__hryop7e_di" bpmnElement="Flow__hryop7e"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__f0l189z_di" bpmnElement="Flow__f0l189z"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="0" y="0" /><bpmndi:BPMNLabel><dc:Bounds x="26" y="22" width="60" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__3709hx6_di" bpmnElement="Flow__3709hx6"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="69" y="49" width="56" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__4mkf9m7_di" bpmnElement="Flow__4mkf9m7"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="120" y="50" /><di:waypoint x="100" y="50" /><di:waypoint x="100" y="75" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>
|
|
@@ -0,0 +1,2 @@
|
|
|
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_0hdve55" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="18.6.1"><bpmn:process id="Process_1s8zutc" isExecutable="false"><bpmn:startEvent id="StartEvent_0b1zhsz" name="Start of workflow"><bpmn:outgoing>Flow__lqj4e1q</bpmn:outgoing></bpmn:startEvent><bpmn:SequenceFlow id="Flow__lqj4e1q" sourceRef="StartEvent_0b1zhsz" targetRef="Activity__7ao8ulm" /><bpmn:UserTask id="Activity__7ao8ulm" name="Before you start" forest:description="👋 Welcome to the Customer Onboarding workflow! ✅ This will act as a checklist, taking you through a (very) simple onboarding process, in a few easy steps. 🌲 Forest will help you retrieve data necessary for the onboarding, make easy Decisions using AI, and let you trigger Actions, in this case to either approve/reject a customer's onboarding, or Escalate the case to a Lvl2 agent. 👇 Click here to get started!"><bpmn:incoming>Flow__lqj4e1q</bpmn:incoming><bpmn:outgoing>Flow__qhqypbu</bpmn:outgoing></bpmn:UserTask><bpmn:SequenceFlow id="Flow__qhqypbu" name="Let's go!" sourceRef="Activity__7ao8ulm" targetRef="Activity__ebutdlx" /><bpmn:ServiceTask id="Activity__jy63n9z" name="Retrieve customer's data" forest:description="Now, our AI will retrieve some of the customer's data needed to check whether we should approve, reject, or escalate their onboarding request. We need the following information: - First and last name - Date of birth - Country - Risk score" forest:alternative="get-data" forest:automaticCompletion="true"><bpmn:incoming>Flow__z9sgzu6</bpmn:incoming><bpmn:outgoing>Flow__g2dfmm5</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__g2dfmm5" sourceRef="Activity__jy63n9z" targetRef="Activity__57hu482" /><bpmn:ExclusiveGateway id="Activity__md177lq" name="Safe to onboard?" forest:description="👀 Based on the customer's Risk Score, should we onboard this customer? If the risk is Low, onboard them. If it's High, reject them. Otherwise, let's escalate to a Lvl2." forest:aiDecision="true"><bpmn:incoming>Flow__0v4baj3</bpmn:incoming><bpmn:outgoing>Flow__pvkegu2</bpmn:outgoing><bpmn:outgoing>Flow__q9knbpb</bpmn:outgoing><bpmn:outgoing>Flow__ocsyn4f</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__pvkegu2" name="Yes, approve them" sourceRef="Activity__md177lq" targetRef="Activity__kv2b8cd" /><bpmn:SequenceFlow id="Flow__q9knbpb" name="In doubt, escalate" sourceRef="Activity__md177lq" targetRef="Activity__mm99xbj" forest:buttonColor="yellow" /><bpmn:SequenceFlow id="Flow__ocsyn4f" name="Nope, reject them" sourceRef="Activity__md177lq" targetRef="Activity__c737oxi" forest:buttonColor="red" /><bpmn:UserTask id="Activity__57hu482" name="Let's skip a few steps..." forest:description="🪪 In a real world scenario, you'd cross reference that information with a document, such as a proof of ID and/or a proof of address. 📑 You may also want to query official registries to get more in-depth information on this customer; are they politically exposed (PEP), do they have a history sanctions, or adverse media? You can do all this by loading more data from Forest, or plugging in 3rd party vendors and agents right into this workflow. In our simplified case, we'll just use the Risk Score retrieved previously to make that call - and we'll let our AI take care of that Decision for us, to guide us down the relevant branch."><bpmn:incoming>Flow__g2dfmm5</bpmn:incoming><bpmn:outgoing>Flow__0v4baj3</bpmn:outgoing></bpmn:UserTask><bpmn:SequenceFlow id="Flow__0v4baj3" name="Got it!" sourceRef="Activity__57hu482" targetRef="Activity__md177lq" /><bpmn:ServiceTask id="Activity__kv2b8cd" name="Approve onboarding" forest:description="🙌 Alright, then let's trigger the Approve Onboarding action on the KYC Case, so we can get the customer fully signed up! 👇 Click on Execute below to trigger the Action and onboard the customer." forest:alternative="trigger-action" forest:automaticCompletion="true"><bpmn:incoming>Flow__pvkegu2</bpmn:incoming><bpmn:incoming>Flow__3d4ngu8</bpmn:incoming><bpmn:outgoing>Flow__szxp4t6</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__szxp4t6" sourceRef="Activity__kv2b8cd" targetRef="Activity__hb589f3" /><bpmn:ServiceTask id="Activity__ebutdlx" name="Load Customer" forest:description=" First, we need to load the Customer related to this KYC Case. In the Customer collection, select the relevant record, and click on "Use this record". 🪄 The purple box will appear whenever our AI can help you execute a step." forest:alternative="load-related-record" forest:automaticCompletion="true"><bpmn:incoming>Flow__qhqypbu</bpmn:incoming><bpmn:outgoing>Flow__z9sgzu6</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__z9sgzu6" sourceRef="Activity__ebutdlx" targetRef="Activity__jy63n9z" /><bpmn:endEvent id="Activity__tbiqcgu" name="Customer rejected" forest:description="🥲 Alright, you've successfully rejected this customer's sign up. ➡️ You may now close this workflow, and maybe move on to the next KYC Case if you want to Escalate or Approve the next one."><bpmn:incoming>Flow__hc5hhja</bpmn:incoming></bpmn:endEvent><bpmn:ServiceTask id="Activity__c737oxi" name="Reject onboarding" forest:description="😔 Alright, then let's trigger the Reject Onboarding action on the KYC Case. 👇 Click on Execute below to trigger the Action and reject their application." forest:alternative="trigger-action" forest:automaticCompletion="true"><bpmn:incoming>Flow__ocsyn4f</bpmn:incoming><bpmn:incoming>Flow__1d0u9zt</bpmn:incoming><bpmn:outgoing>Flow__hc5hhja</bpmn:outgoing></bpmn:ServiceTask><bpmn:SequenceFlow id="Flow__hc5hhja" sourceRef="Activity__c737oxi" targetRef="Activity__tbiqcgu" /><bpmn:endEvent id="Activity__hb589f3" name="Customer onboarded" forest:description="🎉 Congrats, you've successfully onboarded this customer! ➡️ You may now close this workflow, and maybe move on to the next KYC Case if you want to Escalate or Reject the next one."><bpmn:incoming>Flow__szxp4t6</bpmn:incoming></bpmn:endEvent><bpmn:IntermediateThrowEvent id="Activity__mm99xbj" name="Escalation" forest:inboxId="a2d69bb7-fb5b-4fd5-b8d1-5b0727bab91d"><bpmn:incoming>Flow__q9knbpb</bpmn:incoming><bpmn:outgoing>Flow__wz290pt</bpmn:outgoing></bpmn:IntermediateThrowEvent><bpmn:SequenceFlow id="Flow__wz290pt" sourceRef="Activity__mm99xbj" targetRef="Gateway__3joix88" /><bpmn:ExclusiveGateway id="Gateway__3joix88" name="Lvl2 - Safe to onboard?" forest:description="👋 Hi Lvl2 agent, thanks for taking over! 🧐 This KYC Case was escalated, as the Lvl1 agent didn't have the necessary information to make the decision as to whether this customer should be onboarded or not. 👀 So the Decision is yours now - should we approve or reject this customer's sign-up?"><bpmn:incoming>Flow__wz290pt</bpmn:incoming><bpmn:outgoing>Flow__3d4ngu8</bpmn:outgoing><bpmn:outgoing>Flow__1d0u9zt</bpmn:outgoing></bpmn:ExclusiveGateway><bpmn:SequenceFlow id="Flow__3d4ngu8" name="Approve" sourceRef="Gateway__3joix88" targetRef="Activity__kv2b8cd" forest:isLinkTo="true" /><bpmn:SequenceFlow id="Flow__1d0u9zt" name="Reject" sourceRef="Gateway__3joix88" targetRef="Activity__c737oxi" forest:buttonColor="red" forest:isLinkTo="true" /></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1s8zutc"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_0b1zhsz"><dc:Bounds x="182" y="352" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="159" y="395" width="82" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_0coyc5f_di" bpmnElement="Activity__7ao8ulm"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_0vgx5je_di" bpmnElement="Activity__jy63n9z"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway_12c8cep_di" bpmnElement="Activity__md177lq" isMarkerVisible="true"><dc:Bounds x="50" y="60" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="34" y="117" width="85" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__57hu482_di" bpmnElement="Activity__57hu482"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity_17vsjpa_di" bpmnElement="Activity__kv2b8cd"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__ebutdlx_di" bpmnElement="Activity__ebutdlx"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_017hsqc_di" bpmnElement="Activity__tbiqcgu"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="28" y="103" width="90" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__c737oxi_di" bpmnElement="Activity__c737oxi"><dc:Bounds x="50" y="60" width="100" height="80" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id="Event_1xmrha2_di" bpmnElement="Activity__hb589f3"><dc:Bounds x="50" y="60" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="47" y="103" width="53" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Activity__mm99xbj_di" bpmnElement="Activity__mm99xbj"><dc:Bounds x="82" y="82" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="75" y="125" width="51" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="Gateway__3joix88_di" bpmnElement="Gateway__3joix88" isMarkerVisible="true"><dc:Bounds x="75" y="75" width="50" height="50" /><bpmndi:BPMNLabel><dc:Bounds x="62" y="132" width="85" height="40" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNEdge id="Flow__lqj4e1q_di" bpmnElement="Flow__lqj4e1q"><di:waypoint x="182" y="370" /><di:waypoint x="166" y="370" /><di:waypoint x="166" y="100" /><di:waypoint x="150" y="100" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__qhqypbu_di" bpmnElement="Flow__qhqypbu"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="19" y="22" width="42" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__g2dfmm5_di" bpmnElement="Flow__g2dfmm5"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__pvkegu2_di" bpmnElement="Flow__pvkegu2"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="95" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="56" y="22" width="64" height="27" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__q9knbpb_di" bpmnElement="Flow__q9knbpb"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="0" y="0" /><bpmndi:BPMNLabel><dc:Bounds x="-29" y="22" width="87" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__ocsyn4f_di" bpmnElement="Flow__ocsyn4f"><di:waypoint x="75" y="60" /><di:waypoint x="75" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="-18" y="22" width="87" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__0v4baj3_di" bpmnElement="Flow__0v4baj3"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="75" y="40" /><di:waypoint x="75" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="74" y="22" width="30" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__szxp4t6_di" bpmnElement="Flow__szxp4t6"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__z9sgzu6_di" bpmnElement="Flow__z9sgzu6"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="120" y="40" /><di:waypoint x="100" y="40" /><di:waypoint x="100" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__hc5hhja_di" bpmnElement="Flow__hc5hhja"><di:waypoint x="100" y="60" /><di:waypoint x="100" y="40" /><di:waypoint x="68" y="40" /><di:waypoint x="68" y="60" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__wz290pt_di" bpmnElement="Flow__wz290pt"><di:waypoint x="100" y="82" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="75" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__3d4ngu8_di" bpmnElement="Flow__3d4ngu8"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="32" y="22" width="41" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow__1d0u9zt_di" bpmnElement="Flow__1d0u9zt"><di:waypoint x="100" y="75" /><di:waypoint x="100" y="40" /><di:waypoint x="0" y="40" /><di:waypoint x="100" y="60" /><bpmndi:BPMNLabel><dc:Bounds x="74" y="49" width="32" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>
|
package/oclif.manifest.json
CHANGED
|
@@ -729,6 +729,70 @@
|
|
|
729
729
|
"apply.js"
|
|
730
730
|
]
|
|
731
731
|
},
|
|
732
|
+
"layout:patch": {
|
|
733
|
+
"aliases": [],
|
|
734
|
+
"args": {
|
|
735
|
+
"file": {
|
|
736
|
+
"description": "JSON patch file to apply. Use \"-\" or omit to read from stdin.",
|
|
737
|
+
"name": "file",
|
|
738
|
+
"required": false
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
"description": "Patch the layout directly (single PATCH per domain, like the front — no pull/apply).",
|
|
742
|
+
"flags": {
|
|
743
|
+
"dry-run": {
|
|
744
|
+
"description": "Print operations without sending them.",
|
|
745
|
+
"name": "dry-run",
|
|
746
|
+
"allowNo": false,
|
|
747
|
+
"type": "boolean"
|
|
748
|
+
},
|
|
749
|
+
"env": {
|
|
750
|
+
"char": "e",
|
|
751
|
+
"description": "Environment name or id.",
|
|
752
|
+
"name": "env",
|
|
753
|
+
"hasDynamicHelp": false,
|
|
754
|
+
"multiple": false,
|
|
755
|
+
"type": "option"
|
|
756
|
+
},
|
|
757
|
+
"force": {
|
|
758
|
+
"char": "f",
|
|
759
|
+
"description": "Skip the confirmation prompt (required when reading from stdin).",
|
|
760
|
+
"name": "force",
|
|
761
|
+
"allowNo": false,
|
|
762
|
+
"type": "boolean"
|
|
763
|
+
},
|
|
764
|
+
"projectId": {
|
|
765
|
+
"char": "p",
|
|
766
|
+
"description": "Project id.",
|
|
767
|
+
"name": "projectId",
|
|
768
|
+
"hasDynamicHelp": false,
|
|
769
|
+
"multiple": false,
|
|
770
|
+
"type": "option"
|
|
771
|
+
},
|
|
772
|
+
"team": {
|
|
773
|
+
"char": "t",
|
|
774
|
+
"description": "Team name or id.",
|
|
775
|
+
"name": "team",
|
|
776
|
+
"hasDynamicHelp": false,
|
|
777
|
+
"multiple": false,
|
|
778
|
+
"type": "option"
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
"hasDynamicHelp": false,
|
|
782
|
+
"hiddenAliases": [],
|
|
783
|
+
"id": "layout:patch",
|
|
784
|
+
"pluginAlias": "forest-cli",
|
|
785
|
+
"pluginName": "forest-cli",
|
|
786
|
+
"pluginType": "core",
|
|
787
|
+
"strict": true,
|
|
788
|
+
"isESM": false,
|
|
789
|
+
"relativePath": [
|
|
790
|
+
"dist",
|
|
791
|
+
"commands",
|
|
792
|
+
"layout",
|
|
793
|
+
"patch.js"
|
|
794
|
+
]
|
|
795
|
+
},
|
|
732
796
|
"layout:pull": {
|
|
733
797
|
"aliases": [],
|
|
734
798
|
"args": {},
|
|
@@ -3355,5 +3419,5 @@
|
|
|
3355
3419
|
]
|
|
3356
3420
|
}
|
|
3357
3421
|
},
|
|
3358
|
-
"version": "5.
|
|
3422
|
+
"version": "5.19.0"
|
|
3359
3423
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "forest-cli",
|
|
3
3
|
"description": "The Lumberjacks' toolbelt is the Forest CLI which makes easy to manage your back office application directly from the terminal.",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.19.0",
|
|
5
5
|
"author": "Sandro Munda",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Arnaud Valensi <arnaud.valensi@gmail.com>",
|
|
@@ -138,6 +138,10 @@
|
|
|
138
138
|
},
|
|
139
139
|
"resolutions": {
|
|
140
140
|
"semantic-release-slack-bot/**/micromatch": "^4.0.8",
|
|
141
|
+
"@oclif/core/js-yaml": "3.15.0",
|
|
142
|
+
"**/@istanbuljs/load-nyc-config/js-yaml": "3.15.0",
|
|
143
|
+
"@semantic-release/npm/**/sigstore": "^4.1.1",
|
|
144
|
+
"@semantic-release/npm/**/@sigstore/core": "^3.2.1",
|
|
141
145
|
"@azure/core-tracing": "1.0.1",
|
|
142
146
|
"jws": ">=4.0.1",
|
|
143
147
|
"fast-xml-parser": ">=5.7.0",
|