Examples
A curated set of examples that demonstrate common Zigflow patterns.
Beginner
| Example | Description | Key concepts |
|---|---|---|
| Hello World | Minimal single-task workflow | set, output.as |
| HTTP Call | External HTTP request | call: http, retries |
Intermediate
| Example | Description | Key concepts |
|---|---|---|
| Error Handling | Catch errors and recover | try, catch, raise |
| Parallel Tasks | Run branches concurrently | fork, compete |
| Signal-Driven Workflow | Pause for an external signal | listen, signal |
Repository examples
The examples directory in the repository contains additional patterns:
basic— combined set, wait, fork and HTTP in one workflowfor-loop— iterating over arrays, maps and numberschild-workflows— calling one workflow from anotherquery— exposing workflow state via Temporal queriesupdate— read/write handlers for running workflowsschedule— scheduled workflow triggersmoney-transfer— compensating transaction logicexternal-calls— HTTP and gRPC in a single fork
Related pages
- Quickstart — your first workflow
- DSL reference — full workflow YAML reference
- Concepts — overview — mental model