On-error mapping
The on-error mapping defines how the flow responds when an activity fails.
On-error mapping improves orchestration resilience by routing flows to error-handling states and providing visual cues for error paths.
With on-error mapping, you can:
- Define an alternate execution path when an activity encounters an error.
- Route the flow to a designated error-handling state.
- Enhance orchestration resilience and monitoring visibility.
Best practices
Follow these best practices when configuring on-error mapping:
- Use dedicated error-handling states to isolate recovery logic and simplify maintenance.
- Avoid routing multiple error paths into a single state unless centralized handling is intentional.
- Test error scenarios to ensure routing behaves as expected and does not affect downstream dependencies.