form-immediate.json 917 B

12345678910111213141516171819202122
  1. {
  2. "name": "verify-form-immediate",
  3. "nodes": [
  4. {"id": "n1", "name": "Form", "type": "form-trigger", "position": {"x": 0, "y": 0},
  5. "config": {"title": "Slow job", "responseMode": "immediate",
  6. "responseMessage": "Started, check back later.",
  7. "fields": [{"name": "note", "label": "Note", "type": "text"}]}},
  8. {"id": "n2", "name": "Slow", "type": "code", "position": {"x": 0, "y": 100},
  9. "config": {"code": "const end = Date.now() + 40000; while (Date.now() < end) {} return { done: true };",
  10. "timeout": 60}}
  11. ],
  12. "connections": [
  13. {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "n2", "targetInput": "data"}
  14. ],
  15. "http": {
  16. "method": "POST",
  17. "path": "/webhook/{workflowId}",
  18. "multipart": {"fields": {"note": "hello"}, "files": {}},
  19. "expectStatus": 200,
  20. "expectBodyContains": ["Started, check back later."]
  21. }
  22. }