You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(showcase): nested-pause example — approval inside a subflow
Adds the worked example for nested durable pause (linked runs, #1693):
- showcase_closure_signoff: reusable approval subflow (manager sign-off,
approve/reject branches recorded into its `decision` output)
- showcase_project_closure: on project completion, invokes the sign-off
subflow — the child suspends on its approval node, suspending the parent
at the subflow node too; the decision bubbles back up and the owner is
notified with the outcome
Also gates showcase_budget_approval on the budget actually CHANGING
(`budget != previous.budget`) — it previously fired on every update of a
large-budget project, colliding with any other approval flow on the same
record (approvals dedupe pending requests per record), which broke the new
example and was wrong on its own terms.
Verified live in the browser: complete a project → parent run paused at
`signoff` (correlation subflow:<child>) + child paused at `ask_signoff` →
approve via /api/v1/approvals → child completes down the approve edge and
bubbles: parent resumes, notify_owner runs, both runs completed; the Studio
Runs panel shows the same run transitioning paused → completed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments