What happens when a task fails: fail-forward, retry, cancel, or compensate.
In full
Four answers, and a workflow needs one for every task that can fail. Fail-forward: the case continues and the failure becomes data a later step reads. Retry: a handler re-runs the task; unrolled it is a Structured Loop with a failure guard. Cancel: withdraw work at a chosen scope, one task, a region, all instances, or the whole case. Compensate: run a reverse-ordered chain of undo tasks over work already completed.
Boundary rule Undo: withdrawing work not yet done is cancellation, undoing work already done is compensation. Both are control flow. Who performs the undo is a resource question, and whether the chain is driven by a coordinator or by peers is a coordination one.
Open it in the explorerWorkflow Topologies, at this entry