Skip to content

Examples

Use the examples in flows/workflows/ as reference patterns.

Useful Starter Examples

  • minimal.yaml: smallest runnable workflow.
  • demo.yaml and demo_fast.yaml: general flow patterns.
  • if_demo.yaml, loop_demo.yaml, parallel_demo.yaml: control flow patterns.
  • retry_demo.yaml, compensation_demo.yaml: reliability patterns.
  • storage_*: storage read/write and trigger-driven patterns.
  • rabbitmq_*: event publication and messaging patterns.
  • positionstack_geocode_demo: forward geocoding via Positionstack (POST /v1/api/examples/positionstack-geocode).
  • weatherstack_current_demo: current weather via Weatherstack (POST /v1/api/examples/weatherstack-current).
  • joke_api_random_demo: random joke via Official Joke API (POST /v1/api/examples/joke-api-random).

Learning Path

  1. Start with minimal.yaml.
  2. Add one integration step (HTTP or storage).
  3. Add branching or retry behavior.
  4. Add observability and failure-path checks.

Production Readiness Checklist

  • Uses stable workflow naming.
  • Has policy and auth expectations documented.
  • Has at least one trace-based validation scenario.
  • Includes negative-path behavior (error/retry/compensation).