Pattern 54 / WORKFLOW
Compensating Transaction
Use this when Undoing a multi-step workflow when one step fails.
- Pressure
- Undoing a multi-step workflow when one step fails
- Mechanism
- Define forward actions and semantic reversals rather than relying on database rollback
- Toll
- Compensation may be partial, delayed, or business-specific rather than a true undo