Skip to content

Commit 6378080

Browse files
committed
feat: added for each test with sub flo
1 parent e8f8747 commit 6378080

1 file changed

Lines changed: 114 additions & 0 deletions

File tree

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
{
2+
"name": "12_for_each_function_subflow",
3+
"description": "This flow validates for_each execution result reporting for function identifier sub_flow callbacks",
4+
"inputs": [
5+
{
6+
"input": null,
7+
"expected_result": {
8+
"http_status_code": 200,
9+
"headers": {},
10+
"payload": "20"
11+
}
12+
}
13+
],
14+
"flow": {
15+
"flowId": "1",
16+
"projectId": "1",
17+
"startingNodeId": "2",
18+
"nodeFunctions": [
19+
{
20+
"databaseId": "1",
21+
"runtimeFunctionId": "rest::control::respond",
22+
"parameters": [
23+
{
24+
"databaseId": "1",
25+
"runtimeParameterId": "http_status_code",
26+
"value": {
27+
"literalValue": {
28+
"numberValue": {
29+
"integer": "200"
30+
}
31+
}
32+
}
33+
},
34+
{
35+
"databaseId": "2",
36+
"runtimeParameterId": "headers",
37+
"value": {
38+
"literalValue": {
39+
"structValue": {
40+
"fields": {}
41+
}
42+
}
43+
}
44+
},
45+
{
46+
"databaseId": "3",
47+
"runtimeParameterId": "payload",
48+
"value": {
49+
"literalValue": {
50+
"stringValue": "20"
51+
}
52+
}
53+
}
54+
],
55+
"definitionSource": "draco-draco-cron"
56+
},
57+
{
58+
"databaseId": "2",
59+
"runtimeFunctionId": "std::list::for_each",
60+
"parameters": [
61+
{
62+
"databaseId": "4",
63+
"runtimeParameterId": "list",
64+
"value": {
65+
"literalValue": {
66+
"listValue": {
67+
"values": [
68+
{
69+
"numberValue": {
70+
"integer": "1"
71+
}
72+
},
73+
{
74+
"numberValue": {
75+
"integer": "2"
76+
}
77+
},
78+
{
79+
"numberValue": {
80+
"integer": "3"
81+
}
82+
}
83+
]
84+
}
85+
}
86+
}
87+
},
88+
{
89+
"databaseId": "5",
90+
"runtimeParameterId": "consumer",
91+
"value": {
92+
"subFlow": {
93+
"signature": "(value: NUMBER): BOOLEAN",
94+
"settings": [
95+
{
96+
"identifier": "value",
97+
"defaultValue": {
98+
"nullValue": "NULL_VALUE"
99+
},
100+
"optional": false,
101+
"hidden": false
102+
}
103+
],
104+
"functionIdentifier": "std::boolean::from_number"
105+
}
106+
}
107+
}
108+
],
109+
"nextNodeId": "1",
110+
"definitionSource": "draco-draco-cron"
111+
}
112+
]
113+
}
114+
}

0 commit comments

Comments
 (0)