stop-and-error-stop-mode.json 876 B

12345678910111213141516171819
  1. {
  2. "name": "verify-stop-and-error-stop-mode",
  3. "nodes": [
  4. {"id": "n1", "name": "Trigger", "type": "click-trigger", "position": {"x": 0, "y": 0}, "config": {}},
  5. {"id": "n2", "name": "Stop", "type": "stop-and-error", "position": {"x": 0, "y": 100},
  6. "config": {"mode": "stop", "message": "nothing to do this poll"}},
  7. {"id": "n3", "name": "After", "type": "code", "position": {"x": 0, "y": 200},
  8. "config": {"code": "return { marker: 'should not run' };"}}
  9. ],
  10. "connections": [
  11. {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "n2", "targetInput": "data"},
  12. {"sourceNodeId": "n2", "sourceOutput": "main", "targetNodeId": "n3", "targetInput": "data"}
  13. ],
  14. "expectStatus": "completed",
  15. "expect": {
  16. "n2": {"status": "completed", "output": {"stopped": true, "reason": "nothing to do this poll"}}
  17. },
  18. "expectMissing": ["n3"]
  19. }