forest-cli 5.24.4 → 5.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/services/dumpers/agent-nodejs.d.ts.map +1 -1
- package/dist/services/dumpers/agent-nodejs.js +13 -5
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/back.hbs +1 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/back.js +154 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/component.js +154 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/data-map.css +416 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/data-map.hbs +99 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/data-map.js +243 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/demo-guide.css +278 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/demo-guide.hbs +38 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/demo-guide.js +353 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-activity.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-agent.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-ai.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-charts.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-collections.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-custom-components.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-inboxes.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-roles.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-segments.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-smart-actions.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-workflows.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-workspaces.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature.css +1109 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature.hbs +286 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/go-to.hbs +4 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/go-to.js +217 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/kyc-flow.css +580 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/kyc-flow.hbs +80 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/kyc-flow.js +49 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/run-action.hbs +3 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/run-action.js +96 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/select-first.css +131 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/select-first.hbs +4 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/select-first.js +205 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/senior-guide.hbs +39 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/senior-guide.js +189 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/style.css +372 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/template.hbs +83 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/forest-layout.json +52897 -8498
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/203696b1-e9ca-45f3-9bd3-5bc6fb4fd8c3.bpmn +161 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/2bc0c0ff-486c-44b1-ae31-3de204f7b14f.bpmn +107 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/4b37a274-117f-4c2d-96ad-21d1be4d0bc7.bpmn +159 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/56ff9484-8308-4971-9e02-3de5eea2e240.bpmn +67 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/619e3e88-4a9c-4f02-84fb-732c16f9b5bf.bpmn +43 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/76516b9e-aac0-4f7b-9794-8f86c529531b.bpmn +75 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/86b4fc1e-b10a-4906-9fd1-e601eaad83c0.bpmn +81 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/92b119e5-c908-48d1-9a0d-23173c57bd5b.bpmn +47 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/92c02240-9c8a-49e7-9993-077af3e1ddcc.bpmn +77 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/aac25aee-f626-40a8-9459-d2a933fb8446.bpmn +105 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/b269dbff-5fde-401f-a05b-76a7dac79387.bpmn +75 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/d8b208a9-fc71-4005-acb9-ba5fedd2499f.bpmn +73 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/e3abab67-7bc6-4a44-9848-c7f83a55a56d.bpmn +71 -0
- package/dist/services/dumpers/templates/agent-nodejs/javascript/index.hbs +45 -4
- package/dist/services/dumpers/templates/agent-nodejs/typescript/Dockerfile.hbs +1 -1
- package/dist/services/dumpers/templates/agent-nodejs/typescript/index.hbs +45 -4
- package/oclif.manifest.json +136 -136
- package/package.json +6 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/30d581e3-294e-4790-b723-0f16509ecae0.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/52e0acb4-6064-472a-9823-cdfd7fa7a3ab.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/71f692b4-fe4f-476d-8251-fdc5af1ec51e.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/9d564d80-19d1-4ce4-bb4b-aaf41e7ef5b6.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/c8ab4b5d-20df-4d28-9160-0d4376282c90.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/d0289f67-2c9e-4c69-b1ee-ecbbace841b3.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/d07aa5ee-9a49-4916-a1b5-1f953bfe9a8e.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/e25c6237-b882-498b-9655-b16b30131b10.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/f01b9e61-4156-47b8-b6a1-5c90adbcd2ba.bpmn +0 -2
|
@@ -8,7 +8,9 @@ import type { Schema } from './typings';
|
|
|
8
8
|
import 'dotenv/config';
|
|
9
9
|
import { createAgent } from '@forestadmin/agent';
|
|
10
10
|
{{#if isDemo}}
|
|
11
|
-
import {
|
|
11
|
+
import { createDemoBankDataSource } from '@forestadmin/datasource-demo-bank';
|
|
12
|
+
import express from 'express';
|
|
13
|
+
import path from 'path';
|
|
12
14
|
{{else}}
|
|
13
15
|
{{#if isMongo}}
|
|
14
16
|
import { createMongoDataSource } from '@forestadmin/datasource-mongo';
|
|
@@ -37,10 +39,10 @@ const agent = createAgent<Schema>({
|
|
|
37
39
|
// Connect your datasources
|
|
38
40
|
// All options are documented at https://docs.forestadmin.com/developer-guide-agents-nodejs/data-sources/connection
|
|
39
41
|
{{#if isDemo}}
|
|
40
|
-
// Demo data source:
|
|
41
|
-
// database — no external database to connect.
|
|
42
|
+
// Demo data source: a bank's back office (onboarding, alerts, disputes…) with realistic sample
|
|
43
|
+
// data on a self-contained local SQLite database — no external database to connect.
|
|
42
44
|
// Replace it with your real database: https://docs.forestadmin.com/developer-guide-agents-nodejs/data-sources/connection
|
|
43
|
-
agent.addDataSource(
|
|
45
|
+
agent.addDataSource(createDemoBankDataSource());
|
|
44
46
|
{{else}}
|
|
45
47
|
{{#if isMongo}}
|
|
46
48
|
agent.addDataSource(
|
|
@@ -100,10 +102,43 @@ agent.addDataSource(
|
|
|
100
102
|
|
|
101
103
|
// Run Forest Admin workflows in this process, using an in-memory run store.
|
|
102
104
|
// Runs are lost on restart; switch to `{ database: { uri: process.env.DATABASE_URL } }` to persist them.
|
|
105
|
+
{{#if isDemo}}
|
|
106
|
+
// The demo's agent runs on express (below), so the executor is told where it answers.
|
|
107
|
+
agent.addWorkflowExecutor({
|
|
108
|
+
inMemory: true,
|
|
109
|
+
agentUrl: `http://localhost:${process.env.APPLICATION_PORT}`,
|
|
110
|
+
});
|
|
111
|
+
{{else}}
|
|
103
112
|
agent.addWorkflowExecutor({ inMemory: true });
|
|
113
|
+
{{/if}}
|
|
104
114
|
|
|
115
|
+
{{#if isDemo}}
|
|
116
|
+
// Expose an HTTP endpoint. It also serves the demo's Custom components (the Hub, the desk guides…)
|
|
117
|
+
// from public/: the layout loads them from this agent, at /public/smart-components/…. CORS as the
|
|
118
|
+
// agent answers it: the caller's origin with credentials, and Chrome's check for a public page
|
|
119
|
+
// calling localhost.
|
|
120
|
+
const app = express();
|
|
121
|
+
app.use(
|
|
122
|
+
'/public',
|
|
123
|
+
(req, res, next) => {
|
|
124
|
+
res.set({
|
|
125
|
+
'Access-Control-Allow-Origin': req.headers.origin || '*',
|
|
126
|
+
'Access-Control-Allow-Credentials': 'true',
|
|
127
|
+
'Access-Control-Allow-Headers': req.headers['access-control-request-headers'] || '*',
|
|
128
|
+
'Access-Control-Allow-Private-Network': 'true',
|
|
129
|
+
Vary: 'Origin',
|
|
130
|
+
});
|
|
131
|
+
if (req.method === 'OPTIONS') res.sendStatus(204);
|
|
132
|
+
else next();
|
|
133
|
+
},
|
|
134
|
+
express.static(path.resolve('public')),
|
|
135
|
+
);
|
|
136
|
+
agent.mountOnExpress(app);
|
|
137
|
+
const server = app.listen(Number(process.env.APPLICATION_PORT));
|
|
138
|
+
{{else}}
|
|
105
139
|
// Expose an HTTP endpoint.
|
|
106
140
|
agent.mountOnStandaloneServer(Number(process.env.APPLICATION_PORT));
|
|
141
|
+
{{/if}}
|
|
107
142
|
|
|
108
143
|
// Start the agent.
|
|
109
144
|
agent.start().catch(error => {
|
|
@@ -116,6 +151,12 @@ agent.start().catch(error => {
|
|
|
116
151
|
// Stop the agent gracefully on shutdown, so in-flight work drains before the process exits.
|
|
117
152
|
async function shutdown(): Promise<void> {
|
|
118
153
|
try {
|
|
154
|
+
{{#if isDemo}}
|
|
155
|
+
// Stop taking requests and let the ones in flight finish, then stop the agent.
|
|
156
|
+
await new Promise<void>((resolve, reject) => {
|
|
157
|
+
server.close((error?: Error) => (error ? reject(error) : resolve()));
|
|
158
|
+
});
|
|
159
|
+
{{/if}}
|
|
119
160
|
await agent.stop();
|
|
120
161
|
process.exit(0);
|
|
121
162
|
} catch (error) {
|
package/oclif.manifest.json
CHANGED
|
@@ -1659,6 +1659,141 @@
|
|
|
1659
1659
|
"update.js"
|
|
1660
1660
|
]
|
|
1661
1661
|
},
|
|
1662
|
+
"teams:copy-layout": {
|
|
1663
|
+
"aliases": [],
|
|
1664
|
+
"args": {},
|
|
1665
|
+
"description": "Copy a team's whole layout onto another team of the same project.",
|
|
1666
|
+
"flags": {
|
|
1667
|
+
"from": {
|
|
1668
|
+
"char": "f",
|
|
1669
|
+
"description": "Name of the team to copy the layout from.",
|
|
1670
|
+
"name": "from",
|
|
1671
|
+
"required": true,
|
|
1672
|
+
"hasDynamicHelp": false,
|
|
1673
|
+
"multiple": false,
|
|
1674
|
+
"type": "option"
|
|
1675
|
+
},
|
|
1676
|
+
"to": {
|
|
1677
|
+
"char": "t",
|
|
1678
|
+
"description": "Name of the team to copy the layout to (its layout is overwritten).",
|
|
1679
|
+
"name": "to",
|
|
1680
|
+
"required": true,
|
|
1681
|
+
"hasDynamicHelp": false,
|
|
1682
|
+
"multiple": false,
|
|
1683
|
+
"type": "option"
|
|
1684
|
+
},
|
|
1685
|
+
"projectId": {
|
|
1686
|
+
"char": "p",
|
|
1687
|
+
"description": "Forest project ID.",
|
|
1688
|
+
"name": "projectId",
|
|
1689
|
+
"hasDynamicHelp": false,
|
|
1690
|
+
"multiple": false,
|
|
1691
|
+
"type": "option"
|
|
1692
|
+
},
|
|
1693
|
+
"force": {
|
|
1694
|
+
"description": "Skip the confirmation prompt.",
|
|
1695
|
+
"name": "force",
|
|
1696
|
+
"allowNo": false,
|
|
1697
|
+
"type": "boolean"
|
|
1698
|
+
}
|
|
1699
|
+
},
|
|
1700
|
+
"hasDynamicHelp": false,
|
|
1701
|
+
"hiddenAliases": [],
|
|
1702
|
+
"id": "teams:copy-layout",
|
|
1703
|
+
"pluginAlias": "forest-cli",
|
|
1704
|
+
"pluginName": "forest-cli",
|
|
1705
|
+
"pluginType": "core",
|
|
1706
|
+
"strict": true,
|
|
1707
|
+
"isESM": false,
|
|
1708
|
+
"relativePath": [
|
|
1709
|
+
"dist",
|
|
1710
|
+
"commands",
|
|
1711
|
+
"teams",
|
|
1712
|
+
"copy-layout.js"
|
|
1713
|
+
]
|
|
1714
|
+
},
|
|
1715
|
+
"teams:create": {
|
|
1716
|
+
"aliases": [],
|
|
1717
|
+
"args": {},
|
|
1718
|
+
"description": "Create a new team in a project.",
|
|
1719
|
+
"flags": {
|
|
1720
|
+
"name": {
|
|
1721
|
+
"char": "n",
|
|
1722
|
+
"description": "Name of the team to create.",
|
|
1723
|
+
"name": "name",
|
|
1724
|
+
"required": true,
|
|
1725
|
+
"hasDynamicHelp": false,
|
|
1726
|
+
"multiple": false,
|
|
1727
|
+
"type": "option"
|
|
1728
|
+
},
|
|
1729
|
+
"projectId": {
|
|
1730
|
+
"char": "p",
|
|
1731
|
+
"description": "Forest project ID.",
|
|
1732
|
+
"name": "projectId",
|
|
1733
|
+
"hasDynamicHelp": false,
|
|
1734
|
+
"multiple": false,
|
|
1735
|
+
"type": "option"
|
|
1736
|
+
}
|
|
1737
|
+
},
|
|
1738
|
+
"hasDynamicHelp": false,
|
|
1739
|
+
"hiddenAliases": [],
|
|
1740
|
+
"id": "teams:create",
|
|
1741
|
+
"pluginAlias": "forest-cli",
|
|
1742
|
+
"pluginName": "forest-cli",
|
|
1743
|
+
"pluginType": "core",
|
|
1744
|
+
"strict": true,
|
|
1745
|
+
"isESM": false,
|
|
1746
|
+
"relativePath": [
|
|
1747
|
+
"dist",
|
|
1748
|
+
"commands",
|
|
1749
|
+
"teams",
|
|
1750
|
+
"create.js"
|
|
1751
|
+
]
|
|
1752
|
+
},
|
|
1753
|
+
"teams:delete": {
|
|
1754
|
+
"aliases": [],
|
|
1755
|
+
"args": {},
|
|
1756
|
+
"description": "Delete a team from a project.",
|
|
1757
|
+
"flags": {
|
|
1758
|
+
"name": {
|
|
1759
|
+
"char": "n",
|
|
1760
|
+
"description": "Name of the team to delete.",
|
|
1761
|
+
"name": "name",
|
|
1762
|
+
"required": true,
|
|
1763
|
+
"hasDynamicHelp": false,
|
|
1764
|
+
"multiple": false,
|
|
1765
|
+
"type": "option"
|
|
1766
|
+
},
|
|
1767
|
+
"projectId": {
|
|
1768
|
+
"char": "p",
|
|
1769
|
+
"description": "Forest project ID.",
|
|
1770
|
+
"name": "projectId",
|
|
1771
|
+
"hasDynamicHelp": false,
|
|
1772
|
+
"multiple": false,
|
|
1773
|
+
"type": "option"
|
|
1774
|
+
},
|
|
1775
|
+
"force": {
|
|
1776
|
+
"description": "Skip the confirmation prompt.",
|
|
1777
|
+
"name": "force",
|
|
1778
|
+
"allowNo": false,
|
|
1779
|
+
"type": "boolean"
|
|
1780
|
+
}
|
|
1781
|
+
},
|
|
1782
|
+
"hasDynamicHelp": false,
|
|
1783
|
+
"hiddenAliases": [],
|
|
1784
|
+
"id": "teams:delete",
|
|
1785
|
+
"pluginAlias": "forest-cli",
|
|
1786
|
+
"pluginName": "forest-cli",
|
|
1787
|
+
"pluginType": "core",
|
|
1788
|
+
"strict": true,
|
|
1789
|
+
"isESM": false,
|
|
1790
|
+
"relativePath": [
|
|
1791
|
+
"dist",
|
|
1792
|
+
"commands",
|
|
1793
|
+
"teams",
|
|
1794
|
+
"delete.js"
|
|
1795
|
+
]
|
|
1796
|
+
},
|
|
1662
1797
|
"users:edit": {
|
|
1663
1798
|
"aliases": [],
|
|
1664
1799
|
"args": {},
|
|
@@ -1860,141 +1995,6 @@
|
|
|
1860
1995
|
"list.js"
|
|
1861
1996
|
]
|
|
1862
1997
|
},
|
|
1863
|
-
"teams:copy-layout": {
|
|
1864
|
-
"aliases": [],
|
|
1865
|
-
"args": {},
|
|
1866
|
-
"description": "Copy a team's whole layout onto another team of the same project.",
|
|
1867
|
-
"flags": {
|
|
1868
|
-
"from": {
|
|
1869
|
-
"char": "f",
|
|
1870
|
-
"description": "Name of the team to copy the layout from.",
|
|
1871
|
-
"name": "from",
|
|
1872
|
-
"required": true,
|
|
1873
|
-
"hasDynamicHelp": false,
|
|
1874
|
-
"multiple": false,
|
|
1875
|
-
"type": "option"
|
|
1876
|
-
},
|
|
1877
|
-
"to": {
|
|
1878
|
-
"char": "t",
|
|
1879
|
-
"description": "Name of the team to copy the layout to (its layout is overwritten).",
|
|
1880
|
-
"name": "to",
|
|
1881
|
-
"required": true,
|
|
1882
|
-
"hasDynamicHelp": false,
|
|
1883
|
-
"multiple": false,
|
|
1884
|
-
"type": "option"
|
|
1885
|
-
},
|
|
1886
|
-
"projectId": {
|
|
1887
|
-
"char": "p",
|
|
1888
|
-
"description": "Forest project ID.",
|
|
1889
|
-
"name": "projectId",
|
|
1890
|
-
"hasDynamicHelp": false,
|
|
1891
|
-
"multiple": false,
|
|
1892
|
-
"type": "option"
|
|
1893
|
-
},
|
|
1894
|
-
"force": {
|
|
1895
|
-
"description": "Skip the confirmation prompt.",
|
|
1896
|
-
"name": "force",
|
|
1897
|
-
"allowNo": false,
|
|
1898
|
-
"type": "boolean"
|
|
1899
|
-
}
|
|
1900
|
-
},
|
|
1901
|
-
"hasDynamicHelp": false,
|
|
1902
|
-
"hiddenAliases": [],
|
|
1903
|
-
"id": "teams:copy-layout",
|
|
1904
|
-
"pluginAlias": "forest-cli",
|
|
1905
|
-
"pluginName": "forest-cli",
|
|
1906
|
-
"pluginType": "core",
|
|
1907
|
-
"strict": true,
|
|
1908
|
-
"isESM": false,
|
|
1909
|
-
"relativePath": [
|
|
1910
|
-
"dist",
|
|
1911
|
-
"commands",
|
|
1912
|
-
"teams",
|
|
1913
|
-
"copy-layout.js"
|
|
1914
|
-
]
|
|
1915
|
-
},
|
|
1916
|
-
"teams:create": {
|
|
1917
|
-
"aliases": [],
|
|
1918
|
-
"args": {},
|
|
1919
|
-
"description": "Create a new team in a project.",
|
|
1920
|
-
"flags": {
|
|
1921
|
-
"name": {
|
|
1922
|
-
"char": "n",
|
|
1923
|
-
"description": "Name of the team to create.",
|
|
1924
|
-
"name": "name",
|
|
1925
|
-
"required": true,
|
|
1926
|
-
"hasDynamicHelp": false,
|
|
1927
|
-
"multiple": false,
|
|
1928
|
-
"type": "option"
|
|
1929
|
-
},
|
|
1930
|
-
"projectId": {
|
|
1931
|
-
"char": "p",
|
|
1932
|
-
"description": "Forest project ID.",
|
|
1933
|
-
"name": "projectId",
|
|
1934
|
-
"hasDynamicHelp": false,
|
|
1935
|
-
"multiple": false,
|
|
1936
|
-
"type": "option"
|
|
1937
|
-
}
|
|
1938
|
-
},
|
|
1939
|
-
"hasDynamicHelp": false,
|
|
1940
|
-
"hiddenAliases": [],
|
|
1941
|
-
"id": "teams:create",
|
|
1942
|
-
"pluginAlias": "forest-cli",
|
|
1943
|
-
"pluginName": "forest-cli",
|
|
1944
|
-
"pluginType": "core",
|
|
1945
|
-
"strict": true,
|
|
1946
|
-
"isESM": false,
|
|
1947
|
-
"relativePath": [
|
|
1948
|
-
"dist",
|
|
1949
|
-
"commands",
|
|
1950
|
-
"teams",
|
|
1951
|
-
"create.js"
|
|
1952
|
-
]
|
|
1953
|
-
},
|
|
1954
|
-
"teams:delete": {
|
|
1955
|
-
"aliases": [],
|
|
1956
|
-
"args": {},
|
|
1957
|
-
"description": "Delete a team from a project.",
|
|
1958
|
-
"flags": {
|
|
1959
|
-
"name": {
|
|
1960
|
-
"char": "n",
|
|
1961
|
-
"description": "Name of the team to delete.",
|
|
1962
|
-
"name": "name",
|
|
1963
|
-
"required": true,
|
|
1964
|
-
"hasDynamicHelp": false,
|
|
1965
|
-
"multiple": false,
|
|
1966
|
-
"type": "option"
|
|
1967
|
-
},
|
|
1968
|
-
"projectId": {
|
|
1969
|
-
"char": "p",
|
|
1970
|
-
"description": "Forest project ID.",
|
|
1971
|
-
"name": "projectId",
|
|
1972
|
-
"hasDynamicHelp": false,
|
|
1973
|
-
"multiple": false,
|
|
1974
|
-
"type": "option"
|
|
1975
|
-
},
|
|
1976
|
-
"force": {
|
|
1977
|
-
"description": "Skip the confirmation prompt.",
|
|
1978
|
-
"name": "force",
|
|
1979
|
-
"allowNo": false,
|
|
1980
|
-
"type": "boolean"
|
|
1981
|
-
}
|
|
1982
|
-
},
|
|
1983
|
-
"hasDynamicHelp": false,
|
|
1984
|
-
"hiddenAliases": [],
|
|
1985
|
-
"id": "teams:delete",
|
|
1986
|
-
"pluginAlias": "forest-cli",
|
|
1987
|
-
"pluginName": "forest-cli",
|
|
1988
|
-
"pluginType": "core",
|
|
1989
|
-
"strict": true,
|
|
1990
|
-
"isESM": false,
|
|
1991
|
-
"relativePath": [
|
|
1992
|
-
"dist",
|
|
1993
|
-
"commands",
|
|
1994
|
-
"teams",
|
|
1995
|
-
"delete.js"
|
|
1996
|
-
]
|
|
1997
|
-
},
|
|
1998
1998
|
"workflow:apply": {
|
|
1999
1999
|
"aliases": [],
|
|
2000
2000
|
"args": {
|
|
@@ -3736,5 +3736,5 @@
|
|
|
3736
3736
|
]
|
|
3737
3737
|
}
|
|
3738
3738
|
},
|
|
3739
|
-
"version": "5.
|
|
3739
|
+
"version": "5.25.1"
|
|
3740
3740
|
}
|
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.25.1",
|
|
5
5
|
"author": "Sandro Munda",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Arnaud Valensi <arnaud.valensi@gmail.com>",
|
|
@@ -143,6 +143,10 @@
|
|
|
143
143
|
"mongodb/mongodb-connection-string-url": "^3.0.2",
|
|
144
144
|
"filelist": "^2.0.2",
|
|
145
145
|
"fast-xml-parser": "^5.7.0",
|
|
146
|
-
"
|
|
146
|
+
"undici": "^6.29.1",
|
|
147
|
+
"superagent/qs": "^6.16.1",
|
|
148
|
+
"fast-uri": "^3.1.9",
|
|
149
|
+
"ip-address": "^10.7.4",
|
|
150
|
+
"npm": "^11.21.2"
|
|
147
151
|
}
|
|
148
152
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
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>
|
|
@@ -1,2 +0,0 @@
|
|
|
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>
|
|
@@ -1,2 +0,0 @@
|
|
|
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>
|
|
@@ -1,2 +0,0 @@
|
|
|
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>
|
|
@@ -1,2 +0,0 @@
|
|
|
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>
|