-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-flow.json.js
More file actions
86 lines (86 loc) · 3.05 KB
/
Copy pathexample-flow.json.js
File metadata and controls
86 lines (86 loc) · 3.05 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
const example = {
id: "string",
name: "string",
environment: {
// environment variables, key: value
string: "string",
},
blocks: [
// collection of one or more expressions
// one block can be used multiple times
// a block output can be used as input for another block or a fork
{
id: "string",
name: "string",
parentBlocks: ["string"], // or empty array for root blocks
expressions: [
// raw compute expressions
// can be reused multiple times by different blocks
// result is computed on every execution
// one or more per block
// a block with only one expression is referred to as an "inline" block
{
id: "string",
name: "string",
type: "string",
retry: "number",
parameters: [
// parameters, key: value
{
id: "string",
name: "string",
type: "string",
defaultValue: "string",
description: "string",
},
],
results: [
// one or more results
{
id: "string",
name: "string",
type: "string",
description: "string",
},
],
},
],
forks: [
// a fork is a conditional statements to be evaluated
// a block may have multiple forks
// statements are expressed as a string from the `illogical` library
{
id: "string",
name: "string",
block: "string",
branches: [
{
statement: "string",
// mapping of block ids to be invoked after each statement is evaluated
// the mappings are "true" and "false" for each statement
resultTrueBlocks: ["string"], // or empty array
resultFalseBlocks: ["string"], // or empty array
},
],
},
],
parameters: [
{
id: "string",
name: "string",
type: "string",
defaultValue: "string",
description: "string",
},
],
results: [
{
id: "string",
name: "string",
type: "string",
description: "string",
},
],
},
],
};