- Module dossiers: attestor, authority, cli, graph, scanner - Policy assistant parameters guide - UI v2-rewire navigation rendering policy - Test suite overview update - Workflow engine requirements and tutorial series (01-08) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
910 B
910 B
Tutorial 3: Decisions
Branch workflow logic based on conditions — state values, payload answers, or complex expressions.
Concepts Introduced
.WhenExpression()— branch on any boolean expression.WhenStateFlag()— shorthand for checking a boolean state value.WhenPayloadEquals()— shorthand for checking a task completion payload value- Nested decisions — decisions inside decisions for complex routing
Decision Types
| Method | Use When |
|---|---|
WhenExpression |
Complex conditions (comparisons, boolean logic, function calls) |
WhenStateFlag |
Checking a boolean state key against true/false |
WhenPayloadEquals |
Checking a task completion answer (inside OnComplete) |
Variants
Next
Tutorial 4: Human Tasks — approve/reject patterns with OnComplete flows.