The outcome
Pause and resume a business process without duplicate actions, stale authorization, corrupted state, or abandoned executions.
Step by step
A workflow you can repeat.
- 01
Map deterministic steps, schemas, state, owners, approval rules, deadlines, retry and compensation policy, data retention, side effects, SLO, cost, and terminal states.
- 02
Implement typed steps with small state references, stable idempotency keys, bounded retries and timeouts, explicit failure paths, and no irreversible effect before its authorization gate.
- 03
Suspend with minimal metadata, encrypt and restrict snapshot storage, issue an authenticated approval request, and recheck approver role, workflow version, amount, expiry, and current business state on resume.
- 04
Test crash and restart, repeated resume, stale and forged payloads, denial, timeout, changed permissions, step failure, provider outage, compensation, cancellation, and snapshot deletion.
- 05
Trace every transition and approver, alert on stuck runs, canary workflow revisions, preserve compatible rollback, and expire or reconcile abandoned snapshots and pending effects.
Working standard
What good use looks like.
- Make every side effect idempotent.
- Reauthorize when resuming.
- Alert on suspended workflows.
Official references