This repository was archived by the owner on Jun 19, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkflow.json
More file actions
85 lines (85 loc) · 2.15 KB
/
Copy pathworkflow.json
File metadata and controls
85 lines (85 loc) · 2.15 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
{
"Name": "NightlyDatabaseBackup",
"Description": "Dump PostgreSQL database, compress, and archive to Azure Blob Storage",
"Configuration": {
"DegreeOfParallelism": 2,
"Timeout": 1800000,
"ErrorHandling": {
"Strategy": "Retry",
"RetryPolicy": {
"MaxRetries": 3,
"BackoffStrategy": "Exponential",
"InitialDelay": 5000,
"MaxDelay": 60000,
"BackoffCoefficient": 2
}
}
},
"Tasks": [
{
"Name": "PgDump",
"Type": {
"plugin": "FlowSynx.Database.PostgreSql",
"version": "1.1.1",
"Specifications": {
"ConnectionString": "Host=localhost;Port=5432;Username=postgres;Password=secret;Database=mydb"
}
},
"Parameters": {
"Operation": "query",
"Sql": "SELECT id, name, email FROM users WHERE country = @country",
"Parameters": {
"country": "Norway"
}
},
"Position": { "X": 100, "Y": 60 }
},
{
"Name": "CsvExport",
"Type": {
"plugin": "FlowSynx.Data.Csv",
"version": "1.2.0"
},
"Dependencies": ["PgDump"],
"Parameters": {
"Operation": "read",
"Delimiter": ",",
"Data": "$[Outputs('PgDump')]"
},
"Position": { "X": 300, "Y": 60 }
},
{
"Name": "Compress",
"Type": {
"plugin": "FlowSynx.Compression.Zip",
"version": "1.0.0"
},
"Dependencies": ["CsvExport"],
"Parameters": {
"Operation": "compress",
"Data": "$[Outputs('CsvExport')]"
},
"Position": { "X": 500, "Y": 60 }
},
{
"Name": "UploadToAzure",
"Type": {
"plugin": "FlowSynx.Cloud.Azure.Blobs",
"version": "1.1.0",
"Specifications": {
"AccountName": "myazureaccount",
"AccountKey": "abc123xyz456==",
"ContainerName": "flowfiles"
}
},
"Dependencies": ["Compress"],
"Parameters": {
"Operation": "write",
"Data": "$[Outputs('Compress')]",
"Path": "backups/postgresql.zip",
"Overwrite": true
},
"Position": { "X": 700, "Y": 60 }
}
]
}