To easily implement error handling, it is recommended to use executable BPMN.
A best practice that works for most scenarios is to have an automated retry of error objects from error state to a history state.
This automatically fixes technically errors like network down, system temporarily down, etc.
The tasks must be atomic - meaning, all actions within this task can be executed again. |
Instead of having complicated error handling in the flow, implement dedicated validation task(s). Check if fields are filled resp. correctly formatted etc. This prevents that, later in the process, you have to check values before using functions like concat, substring etc.
Do not misuse exceptions for validation checks but use constraints for validation instead.
Use the Monitoring Service With UI for a dedicated reaction on errors.