call-workflow.json 997 B

12345678910111213141516171819
  1. {
  2. "name": "verify-call-workflow",
  3. "nodes": [
  4. {"id": "n1", "name": "Trigger", "type": "click-trigger", "position": {"x": 0, "y": 0}, "config": {}},
  5. {"id": "call", "name": "Call", "type": "call-workflow", "position": {"x": 0, "y": 100},
  6. "config": {"workflowId": "wf_5cfe91eb-a7f0-4da8-aca9-2300ed40b399", "inputSource": "fields",
  7. "fields": [{"name": "n", "value": "21"}]}},
  8. {"id": "after", "name": "After", "type": "code", "position": {"x": 0, "y": 200},
  9. "config": {"code": "const d=input.data||input; return { got: d.result, status: d.status };"}}
  10. ],
  11. "connections": [
  12. {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "call", "targetInput": "data"},
  13. {"sourceNodeId": "call", "sourceOutput": "main", "targetNodeId": "after", "targetInput": "data"}
  14. ],
  15. "expectStatus": "completed",
  16. "expect": {
  17. "after": {"status": "completed", "output": {"result": {"status": "completed", "got": {"doubled": 42, "label": "unnamed"}}}}
  18. }
  19. }