-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathvariable_operations_counter.json
More file actions
70 lines (70 loc) · 1.77 KB
/
variable_operations_counter.json
File metadata and controls
70 lines (70 loc) · 1.77 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
{
"id": "variable-operations-counter",
"name": "Variable Operations Counter",
"description": "Demonstrates setVariable and modifyVariable operations: creates a counter, increments it, and builds a status string",
"nodes": [
{
"id": "1",
"type": "automationStep",
"data": {
"step": {
"id": "1",
"type": "setVariable",
"description": "Initialize counter to 0",
"variableName": "counter",
"value": "0"
}
},
"position": { "x": 250, "y": 50 }
},
{
"id": "2",
"type": "automationStep",
"data": {
"step": {
"id": "2",
"type": "modifyVariable",
"description": "Increment counter by 1",
"variableName": "counter",
"operation": "increment",
"value": "1"
}
},
"position": { "x": 250, "y": 170 }
},
{
"id": "3",
"type": "automationStep",
"data": {
"step": {
"id": "3",
"type": "modifyVariable",
"description": "Increment counter by 1 again",
"variableName": "counter",
"operation": "increment",
"value": "1"
}
},
"position": { "x": 250, "y": 290 }
},
{
"id": "4",
"type": "automationStep",
"data": {
"step": {
"id": "4",
"type": "setVariable",
"description": "Build status message using counter",
"variableName": "status",
"value": "Count is {{counter}}"
}
},
"position": { "x": 250, "y": 410 }
}
],
"edges": [
{ "id": "e1-2", "source": "1", "target": "2" },
{ "id": "e2-3", "source": "2", "target": "3" },
{ "id": "e3-4", "source": "3", "target": "4" }
]
}