Error Handling in Subflow

If an exception occurs during execution, it will be propagated to the calling workflow if no global error handling is defined in the subflow.

If a global error transition is defined in the subflow, it will be executed on exception, and control will be returned back to the parent workflow to resume normal execution. To handle subflow exceptions in a parent workflow, an error flag can be set in the subflow and returned to the parent workflow. The parent workflow can execute an error transition based on this flag.