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.
Click to show internal directories.
Click to hide internal directories.