-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkflow.json
More file actions
77 lines (77 loc) · 2.25 KB
/
workflow.json
File metadata and controls
77 lines (77 loc) · 2.25 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
{
"Name": "ImageProcessingPipeline",
"Description": "Load a local image, convert it to grayscale, apply a watermark, and then upload it to Google Cloud Storage",
"Configuration": {
"DegreeOfParallelism": 3,
"Timeout": 900000,
"ErrorHandling": {
"Strategy": "Abort"
}
},
"Tasks": [
{
"Name": "LoadImage",
"Type": "",
"Parameters": {
"Operation": "read",
"Path": "text_image.png"
},
"Position": { "X": 80, "Y": 40 }
},
{
"Name": "GrayscaleImage",
"Type": {
"Plugin": "FlowSynx.Media.ImageProcessing",
"Version": "1.1.0"
},
"Dependencies": ["LoadImage"],
"Parameters": {
"Operation": "grayscale",
"Data": "$[Outputs('LoadImage')]"
},
"Position": { "X": 120, "Y": 40 }
},
{
"Name": "WatermarkImage",
"Type": {
"Plugin": "FlowSynx.Media.ImageProcessing",
"Version": "1.1.0"
},
"Dependencies": ["GrayscaleImage"],
"Parameters": {
"Operation": "watermark",
"Data": "$[Outputs('GrayscaleImage')]",
"Text": "Sample watermark",
"FontName": "Arial",
"FontSize": 32,
"FontColor": "#FF0000",
"Top": 5,
"Left": 5
},
"Position": { "X": 160, "Y": 40 }
},
{
"Name": "SaveProcessedImage",
"Type": {
"Plugin": "FlowSynx.Cloud.Google.Storage",
"Version": "1.0.0",
"Specifications": {
"ProjectId": "my-gcp-project",
"PrivateKeyId": "abc123xyz456",
"PrivateKey": "-----BEGIN PRIVATE KEY-----\nMIIEv...\n-----END PRIVATE KEY-----\n",
"ClientEmail": "service-account@my-gcp-project.iam.gserviceaccount.com",
"ClientId": "1234567890",
"BucketName": "flowfiles"
}
},
"Dependencies": ["WatermarkImage"],
"Parameters": {
"Operation": "write",
"Path": "images/processed_image_01.png",
"Data": "$[Outputs('WatermarkImage')]",
"Overwrite": true
},
"Position": { "X": 200, "Y": 40 }
}
]
}