forked from workato-devs/workato-platform-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbatch-processing-recipe.json
More file actions
115 lines (115 loc) · 3.16 KB
/
batch-processing-recipe.json
File metadata and controls
115 lines (115 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"name": "Daily Batch Data Processing",
"description": "Scheduled batch processing of customer data with error handling",
"version": 3,
"private": true,
"concurrency": 1,
"code": {
"number": 0,
"provider": "clock",
"name": "scheduled_trigger",
"as": "scheduler",
"keyword": "trigger",
"input": {
"interval": "daily",
"start_time": "02:00"
},
"block": [
{
"number": 1,
"provider": "postgresql",
"name": "select_rows",
"as": "get_customers",
"keyword": "action",
"uuid": "d3e4f5g6-h7i8-9012-defg-hi3456789012",
"input": {
"schema": "public",
"table": "customers",
"where": "updated_at > NOW() - INTERVAL '1 day'"
}
},
{
"number": 2,
"provider": "workato_utility",
"name": "repeat",
"as": "process_batch",
"keyword": "action",
"uuid": "e4f5g6h7-i8j9-0123-efgh-ij4567890123",
"input": {
"foreach": "=_('data.postgresql.get_customers')",
"actions": [
{
"number": 3,
"provider": "salesforce",
"name": "upsert_sobject",
"as": "sync_to_sf",
"keyword": "action",
"uuid": "f5g6h7i8-j9k0-1234-fghi-jk5678901234",
"input": {
"sobject": "Contact",
"external_id_field": "External_Id__c",
"upsert_criteria": {
"External_Id__c": "=_('data.postgresql.get_customers.id')"
},
"fields": {
"FirstName": "=_('data.postgresql.get_customers.first_name')",
"LastName": "=_('data.postgresql.get_customers.last_name')",
"Email": "=_('data.postgresql.get_customers.email')"
}
}
}
]
}
},
{
"number": 4,
"provider": "workato_utility",
"name": "email",
"as": "send_summary",
"keyword": "action",
"uuid": "g6h7i8j9-k0l1-2345-ghij-kl6789012345",
"input": {
"to": "admin@company.com",
"subject": "Daily Customer Sync Complete",
"body": "Processed =_('data.postgresql.get_customers.size') customer records at =_('job.started_at')"
}
}
],
"uuid": "23456789-01ab-cdef-2345-6789012abcdef",
"unfinished": false
},
"config": [
{
"keyword": "application",
"provider": "clock",
"skip_validation": false,
"account_id": null
},
{
"keyword": "application",
"provider": "postgresql",
"skip_validation": false,
"account_id": {
"zip_name": "postgresql.connection.json",
"name": "postgresql",
"folder": ""
}
},
{
"keyword": "application",
"provider": "salesforce",
"skip_validation": false,
"account_id": {
"zip_name": "salesforce.connection.json",
"name": "salesforce",
"folder": ""
}
},
{
"keyword": "application",
"provider": "workato_utility",
"skip_validation": false,
"account_id": null
}
]
}