condition_workflow

command
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package main demonstrates condition nodes in dureq workflows — runtime branching based on handler return values.

Scenario: Order amount verification with conditional routing:

validate → check_amount(condition) ─┬─ route 0 → manual_review ─┬─ finalize
                                    └─ route 1 → auto_approve  ─┘

Orders above $100 go through manual review (route 0), while smaller orders are auto-approved (route 1). The condition handler returns a route index that the orchestrator uses to pick the next branch.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL