Exception handling at the node level
Webex Connect offers the ability to log "Onerror", "Onpolicy failure" and/or "OnTimeOut" events at the node level to enhance visibility into the reasons behind execution failure within a flow. Here's how it works.
The below examples assume that the outcome at the occurrence of any of these exceptions is to stop the execution. However, there are cases when you may want to branch the flow i.e. transition to some other node in case of onError or other such events. E.g. if you send an SMS to a customer and that time outs, you may want to fall back to some other channel rather than ending the flow execution at the instant.
Here's how you configure the events when ending the execution at the occurrence of their events.
1. Configure "onError" event for a node
The 'onError' event is configured to record the instance when the flow fails due to any internal error.
To configure the onError event response: See the image below. Let us take the example of an SMS Node.
- Click & Drag the red dot next to Send SMS Node edge.
- You will see a dotted line appearing as in the below image. Release to end & open up the end configuration screen.
- Choose the onError from the Node event drop-down on the END FLOW - SETTINGS tab.
- Choose 102 – Flow completed with an error [Error] from the Custom flow result drop-down and click on OK.
2. Configure "onPolicyFail" event for a node
- Drag the red dot next to Call User Node edge similar to 1.1 & 1.2 mentioned in the onError configuration screen.
- Choose the onPolicyFail from the Node event drop-down on the END FLOW - SETTINGS tab.
- Choose 103 – Flow ended due to an interruption [ Incomplete ] from the Custom flow result drop-down and click on OK to save this setting.
3. Configure "onTimeOut" event for a node
The 'ontimeout' event occurs when the time (in seconds) mentioned in the Timeout field has been exceeded.
To configure the ontimeout event response:
- Drag and drop the orange dot on a node with timeout configuration ( for illustration receive node is shown in the below image )
- Choose ontimeout from the Node event drop-down on the [END FLOW - SETTINGS] tab.
- Choose 103 – Flow ended due to an interruption [Incomplete] from the Custom flow result drop-down.
- Click OK .
Updated 11 months ago