| 12345678910111213141516171819202122 |
- {
- "name": "verify-form-immediate",
- "nodes": [
- {"id": "n1", "name": "Form", "type": "form-trigger", "position": {"x": 0, "y": 0},
- "config": {"title": "Slow job", "responseMode": "immediate",
- "responseMessage": "Started, check back later.",
- "fields": [{"name": "note", "label": "Note", "type": "text"}]}},
- {"id": "n2", "name": "Slow", "type": "code", "position": {"x": 0, "y": 100},
- "config": {"code": "const end = Date.now() + 40000; while (Date.now() < end) {} return { done: true };",
- "timeout": 60}}
- ],
- "connections": [
- {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "n2", "targetInput": "data"}
- ],
- "http": {
- "method": "POST",
- "path": "/webhook/{workflowId}",
- "multipart": {"fields": {"note": "hello"}, "files": {}},
- "expectStatus": 200,
- "expectBodyContains": ["Started, check back later."]
- }
- }
|