{ "name": "verify-stop-and-error-stop-in-loop", "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: ['alpha', 'beta', 'gamma'] };"}}, {"id": "loop", "name": "Loop", "type": "loop", "position": {"x": 0, "y": 200}, "config": {"inputField": "data.result.items"}}, {"id": "stop", "name": "Stop", "type": "stop-and-error", "position": {"x": 0, "y": 300}, "config": {"mode": "stop", "message": "stopped from inside the loop"}}, {"id": "after", "name": "After", "type": "code", "position": {"x": 200, "y": 300}, "config": {"code": "return { marker: 'should not run' };"}} ], "connections": [ {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "items", "targetInput": "data"}, {"sourceNodeId": "items", "sourceOutput": "main", "targetNodeId": "loop", "targetInput": "data"}, {"sourceNodeId": "loop", "sourceOutput": "loop", "targetNodeId": "stop", "targetInput": "data"}, {"sourceNodeId": "loop", "sourceOutput": "done", "targetNodeId": "after", "targetInput": "data"} ], "expectStatus": "completed", "expectMissing": ["after"] }