-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflows.json
376 lines (376 loc) · 10.3 KB
/
flows.json
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
[
{
"id": "9b89af2bcc070569",
"type": "tab",
"label": "Check URL",
"info": "**Description**\nThe flow checks whether a specific section exists in a document by sending a GET request to the /test1 endpoint. The flow requires the following parameters in the message body: the GitHub organisation name, the repository name, the file path, the file name, the section it has to contain, and the GitHub token.\n\n**Details**\n1. Http in: node to define the /test1 endpoint for testing the flow.\n2. Exists-section-in-doc node: checks if a specific section exists in a document. It requires parameters like the GitHub organisation name, repository name, file path, file name, section to check, and GitHub token.\n3. Http response: node to send HTTP responses back to incoming requests."
},
{
"id": "ce8fc522a364e5e3",
"type": "tab",
"label": "Check section prueba",
"info": "**Description**\nThis flow is designed to check if a specific section exists in a document. It listens for a GET request on the `/check` endpoint. The flow includes a custom node called `exists-section-in-doc` that will verify the presence of the specified section in the document.\n\n**Details**\n1. HTTP In: This node sets up the `/check` endpoint to trigger the flow.\n2. Exists-section-in-doc: Custom node that checks if the given section exists in the document.\n3. HTTP Response: This node sends an HTTP response based on the result of the section check."
},
{
"id": "bad76f2298009175",
"type": "tab",
"label": "Check priority section",
"info": "**Description:**\nThe flow is designed to check for the existence of a specific section within a document based on the priority attribute value. It exposes a GET endpoint \"/check\" where the flow can be triggered.\n\n**Details:**\n1. **Http in:** This node defines the \"/check\" endpoint for triggering the flow via a GET request.\n2. **Filter-by:** Filters objects based on the \"priority\" attribute with the filter value \"High\". It passes the filtered objects to the next node.\n3. **Exists-section-in-doc:** Checks if the document contains the specified section. It receives objects from the previous node and determines if the section exists.\n4. **Http response:** Sends an HTTP response once the check is complete. \n\nEach node in the flow performs a specific task sequentially to accomplish the goal of checking the priority section within the document."
},
{
"id": "06d0899c3d2b4d31",
"type": "tab",
"label": "Check section in document",
"info": "**Description**\nThis flow checks for the existence of a specific section (\"sección de prueba\") in a document. It can be triggered via a GET request on the /checkSectionInProject endpoint.\n\n**Details**\n1. _**Http in**_: This node defines the /checkSectionInProject endpoint to trigger the flow.\n2. _**Exists-section-in-doc**_: This node checks if the document contains the specified section (\"sección de prueba\").\n3. _**Http response**_: This node sends an HTTP response after processing the request. \n\nDo you need any further assistance with this flow?"
},
{
"id": "eabec9fac31e5201",
"type": "tab",
"label": "ExistsDocument",
"disabled": false,
"info": "Check if a section exists within the GitHub repository documents associated with cards on a trello board."
},
{
"id": "90075ea031ad30f3",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "756cd61b1d6d494a",
"type": "http in",
"z": "9b89af2bcc070569",
"name": "",
"url": "/test1",
"method": "get",
"upload": false,
"swaggerDoc": "",
"x": 300,
"y": 180,
"wires": [
[
"83bb073e9317828c"
]
]
},
{
"id": "72ec2a0a16690c2e",
"type": "http response",
"z": "9b89af2bcc070569",
"name": "",
"statusCode": "",
"headers": {},
"x": 730,
"y": 180,
"wires": []
},
{
"id": "83bb073e9317828c",
"type": "exists-section-in-doc",
"z": "9b89af2bcc070569",
"name": "",
"section": "",
"x": 500,
"y": 180,
"wires": [
[
"72ec2a0a16690c2e"
]
]
},
{
"id": "ae3e68b55384dc68",
"type": "http in",
"z": "ce8fc522a364e5e3",
"name": "",
"url": "/check",
"method": "get",
"upload": false,
"swaggerDoc": "",
"x": 150,
"y": 180,
"wires": [
[
"2c6bde120a767185"
]
]
},
{
"id": "dee8e1439d606ff6",
"type": "http response",
"z": "ce8fc522a364e5e3",
"name": "",
"statusCode": "",
"headers": {},
"x": 570,
"y": 180,
"wires": []
},
{
"id": "2c6bde120a767185",
"type": "exists-section-in-doc",
"z": "ce8fc522a364e5e3",
"name": "",
"section": "",
"x": 340,
"y": 180,
"wires": [
[
"dee8e1439d606ff6"
]
]
},
{
"id": "7b8ea985b0902dfa",
"type": "http in",
"z": "bad76f2298009175",
"name": "",
"url": "/check",
"method": "get",
"upload": false,
"swaggerDoc": "",
"x": 250,
"y": 180,
"wires": [
[
""
]
]
},
{
"id": "a1fd56b856576245",
"type": "http response",
"z": "bad76f2298009175",
"name": "",
"statusCode": "",
"headers": {},
"x": 870,
"y": 180,
"wires": []
},
{
"id": "ab67c712124ab092",
"type": "exists-section-in-doc",
"z": "bad76f2298009175",
"name": "",
"section": "",
"x": 640,
"y": 180,
"wires": [
[
"a1fd56b856576245"
]
]
},
{
"id": "",
"type": "filter-by",
"z": "bad76f2298009175",
"name": "",
"valueType": "Importance",
"attribute": "priority",
"value": "High",
"x": 420,
"y": 180,
"wires": [
[
"ab67c712124ab092"
]
]
},
{
"id": "dbc76a0ae0e876fb",
"type": "http in",
"z": "06d0899c3d2b4d31",
"name": "",
"url": "/checkSectionInProject",
"method": "get",
"upload": false,
"x": 240,
"y": 160,
"wires": [
[
"e621a920c9dae732"
]
]
},
{
"id": "0a959020b9bbf7c0",
"type": "http response",
"z": "06d0899c3d2b4d31",
"name": "",
"statusCode": "",
"headers": {},
"x": 690,
"y": 160,
"wires": []
},
{
"id": "e621a920c9dae732",
"type": "exists-section-in-doc",
"z": "06d0899c3d2b4d31",
"name": "",
"section": "sección de prueba",
"x": 500,
"y": 160,
"wires": [
[
"0a959020b9bbf7c0"
]
]
},
{
"id": "303a84db645ec710",
"type": "http response",
"z": "eabec9fac31e5201",
"name": "",
"statusCode": "",
"headers": {},
"x": 750,
"y": 140,
"wires": []
},
{
"id": "bf71fe40b7f70b3d",
"type": "http in",
"z": "eabec9fac31e5201",
"name": "",
"url": "/existsDocument",
"method": "get",
"upload": false,
"swaggerDoc": "",
"x": 380,
"y": 140,
"wires": [
[
"442435728c76ed17"
]
]
},
{
"id": "442435728c76ed17",
"type": "exists-url",
"z": "eabec9fac31e5201",
"name": "",
"x": 580,
"y": 140,
"wires": [
[
"303a84db645ec710"
]
]
},
{
"id": "ae697e6ac9c20124",
"type": "url-to-doc",
"z": "90075ea031ad30f3",
"name": "",
"x": 180,
"y": 200,
"wires": [
[]
]
},
{
"id": "423cfb9c97fdbddf",
"type": "exists-pipe",
"z": "90075ea031ad30f3",
"count": 0,
"x": 370,
"y": 260,
"wires": [
[]
]
},
{
"id": "c67bea0799e2c339",
"type": "exists-url",
"z": "90075ea031ad30f3",
"name": "",
"x": 400,
"y": 300,
"wires": [
[]
]
},
{
"id": "filterByDate",
"type": "filter-by-date",
"z": "90075ea031ad30f3",
"name": "",
"attribute": "",
"startDate": "",
"endDate": "",
"x": 430,
"y": 340,
"wires": [
[]
]
},
{
"id": "",
"type": "filter-by",
"z": "90075ea031ad30f3",
"name": "",
"valueType": "Clasification",
"attribute": "",
"value": "",
"x": 440,
"y": 400,
"wires": [
[]
]
},
{
"id": "08a485a042d4130f",
"type": "project-to-url",
"z": "90075ea031ad30f3",
"name": "",
"x": 330,
"y": 460,
"wires": [
[]
]
},
{
"id": "c89e80b0f663049a",
"type": "exists-section-in-doc",
"z": "90075ea031ad30f3",
"name": "",
"section": "",
"x": 280,
"y": 540,
"wires": [
[]
]
},
{
"id": "trello-collector",
"type": "trello-collector",
"z": "90075ea031ad30f3",
"boardId": "",
"key": "",
"token": "",
"x": 200,
"y": 80,
"wires": [
[]
]
},
{
"id": "github-collector",
"type": "github-collector",
"z": "90075ea031ad30f3",
"username": "",
"repoName": "",
"path": "",
"token": "",
"x": 640,
"y": 200,
"wires": [
[]
]
}
]