Skip to content

Recipes

Practical patterns for common workflow scenarios.

Examples

RecipeUse Case
Order WorkflowE-commerce order lifecycle
Approval FlowDocument/request approval process

Development

RecipePurpose
ScaffoldingGenerate workflow code quickly
Testing WorkflowsTest strategies and examples

When to Use Each Pattern

Order Workflow

Best for:

  • E-commerce orders
  • Fulfillment pipelines
  • Any linear progression with payments

Approval Flow

Best for:

  • Document approvals
  • Request workflows
  • Sequential review processes

INFO

Both patterns use single-state workflows. For parallel approvals (e.g., "finance AND legal must approve"), you'd need a different architecture.

Released under the MIT License.