← Files Flows by plugin.spaceARCHIVED FILE
examples/background.flows.json
1.63 KB · Nov 30, 2026 · 00:17 UTC
{
"version": 1,
"id": "background-work",
"name": "One path, with background work",
"description": "An illustrative proposal demonstrating mutually exclusive outcomes alongside a background activity log.",
"startNode": "submit",
"nodes": [
{ "id": "submit", "type": "action", "title": "Send request", "position": { "x": 0, "y": 0 }, "source": { "kind": "proposed" } },
{ "id": "review", "type": "decision", "title": "Review the response", "position": { "x": 400, "y": 0 }, "source": { "kind": "proposed" } },
{ "id": "retry", "type": "state", "title": "Try again", "position": { "x": 400, "y": 300 }, "source": { "kind": "proposed" } },
{ "id": "done", "type": "state", "title": "Request complete", "position": { "x": 800, "y": 0 }, "source": { "kind": "proposed" } },
{ "id": "log", "type": "action", "title": "Save activity in the background", "position": { "x": 400, "y": 400 }, "source": { "kind": "proposed" } },
{ "id": "saved", "type": "state", "title": "Activity saved", "position": { "x": 800, "y": 400 }, "source": { "kind": "proposed" } }
],
"edges": [
{ "id": "received", "source": "submit", "target": "review", "label": "Response received" },
{ "id": "failed", "source": "submit", "target": "retry", "label": "Request failed" },
{ "id": "record", "source": "submit", "target": "log", "label": "Record activity", "parallel": true },
{ "id": "accept", "source": "review", "target": "done", "label": "Accept response" },
{ "id": "repeat", "source": "retry", "target": "submit", "label": "Retry request" },
{ "id": "saved", "source": "log", "target": "saved", "label": "Write complete" }
]
}
SHA-256: 70bb3a3b28f0a26792af52f8d087ce76fcbaa9533bc4cd8fa332e5b6033915b1