|
@@ -0,0 +1,30 @@
|
|
|
|
|
+{
|
|
|
|
|
+ "name": "verify-loop-disabled-back-edge",
|
|
|
|
|
+ "nodes": [
|
|
|
|
|
+ {"id": "n1", "name": "Trigger", "type": "click-trigger", "position": {"x": 0, "y": 0}, "config": {}},
|
|
|
|
|
+ {"id": "items", "name": "Items", "type": "code", "position": {"x": 0, "y": 100},
|
|
|
|
|
+ "config": {"code": "return { items: ['a', 'b', 'c'] };"}},
|
|
|
|
|
+ {"id": "loop", "name": "Loop", "type": "loop", "position": {"x": 0, "y": 200},
|
|
|
|
|
+ "config": {"inputField": "data.result.items", "continueOnError": true}},
|
|
|
|
|
+ {"id": "work", "name": "Work", "type": "set-fields", "position": {"x": 0, "y": 300},
|
|
|
|
|
+ "config": {"mode": "only-set", "fields": [{"name": "seen", "value": "{{data.loop.item}}"}]}},
|
|
|
|
|
+ {"id": "notify", "name": "Notify", "type": "set-fields", "position": {"x": 0, "y": 400},
|
|
|
|
|
+ "disabled": true,
|
|
|
|
|
+ "config": {"mode": "only-set", "fields": [{"name": "told", "value": "yes"}]}},
|
|
|
|
|
+ {"id": "after", "name": "After", "type": "code", "position": {"x": 0, "y": 520},
|
|
|
|
|
+ "config": {"code": "return { done: true };"}}
|
|
|
|
|
+ ],
|
|
|
|
|
+ "connections": [
|
|
|
|
|
+ {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "items", "targetInput": "data"},
|
|
|
|
|
+ {"sourceNodeId": "items", "sourceOutput": "main", "targetNodeId": "loop", "targetInput": "data"},
|
|
|
|
|
+ {"sourceNodeId": "loop", "sourceOutput": "loop", "targetNodeId": "work", "targetInput": "data"},
|
|
|
|
|
+ {"sourceNodeId": "work", "sourceOutput": "main", "targetNodeId": "notify", "targetInput": "data"},
|
|
|
|
|
+ {"sourceNodeId": "notify", "sourceOutput": "main", "targetNodeId": "loop", "targetInput": "data"},
|
|
|
|
|
+ {"sourceNodeId": "loop", "sourceOutput": "done", "targetNodeId": "after", "targetInput": "data"}
|
|
|
|
|
+ ],
|
|
|
|
|
+ "expectStatus": "completed",
|
|
|
|
|
+ "expect": {
|
|
|
|
|
+ "after": {"status": "completed"},
|
|
|
|
|
+ "loop": {"status": "completed", "output": {"done": {"totalProcessed": 3}}}
|
|
|
|
|
+ }
|
|
|
|
|
+}
|