-
Notifications
You must be signed in to change notification settings - Fork 180
Expand file tree
/
Copy pathexample-workflow.json
More file actions
141 lines (141 loc) · 2.88 KB
/
example-workflow.json
File metadata and controls
141 lines (141 loc) · 2.88 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"nodes": [
{
"id": "trigger-1",
"type": "trigger",
"position": {
"x": 100,
"y": 200
},
"data": {
"label": "Webhook Trigger",
"description": "Receives incoming webhook",
"type": "trigger",
"config": {
"triggerType": "Webhook"
},
"status": "idle"
}
},
{
"id": "action-1",
"type": "action",
"position": {
"x": 400,
"y": 200
},
"data": {
"label": "Fetch User Data",
"description": "Get user information from API",
"type": "action",
"config": {
"actionType": "HTTP Request",
"endpoint": "https://api.example.com/users"
},
"status": "idle"
}
},
{
"id": "condition-1",
"type": "condition",
"position": {
"x": 700,
"y": 200
},
"data": {
"label": "Check Status",
"description": "Verify response status",
"type": "condition",
"config": {
"condition": "status === 200"
},
"status": "idle"
}
},
{
"id": "transform-1",
"type": "transform",
"position": {
"x": 1000,
"y": 150
},
"data": {
"label": "Format Data",
"description": "Transform user data",
"type": "transform",
"config": {
"transformType": "Map Data"
},
"status": "idle"
}
},
{
"id": "action-2",
"type": "action",
"position": {
"x": 1000,
"y": 300
},
"data": {
"label": "Send Error Notification",
"description": "Alert on failure",
"type": "action",
"config": {
"actionType": "HTTP Request",
"endpoint": "https://api.example.com/notify"
},
"status": "idle"
}
},
{
"id": "action-3",
"type": "action",
"position": {
"x": 1300,
"y": 150
},
"data": {
"label": "Save to Database",
"description": "Store processed data",
"type": "action",
"config": {
"actionType": "Database Query",
"endpoint": "postgresql://localhost/mydb"
},
"status": "idle"
}
}
],
"edges": [
{
"id": "edge-1",
"source": "trigger-1",
"target": "action-1",
"type": "default"
},
{
"id": "edge-2",
"source": "action-1",
"target": "condition-1",
"type": "default"
},
{
"id": "edge-3",
"source": "condition-1",
"target": "transform-1",
"type": "default"
},
{
"id": "edge-4",
"source": "condition-1",
"target": "action-2",
"type": "default"
},
{
"id": "edge-5",
"source": "transform-1",
"target": "action-3",
"type": "default"
}
]
}