Error Handling and Exception Management
Covers strategies for managing errors and exceptions to maintain workflow stability.
Introduction
Autom Mate includes built-in error handling and exception management features to ensure robust and reliable automation. Users can define error handling rules, handle exceptions gracefully, and receive alerts for failed executions.
Overview of the Error Handling Feature
Autom Mate's error handling and exception management features are designed to ensure robust and reliable automation processes. Users can define custom error handling rules, manage exceptions gracefully, and receive alerts for any failed executions, providing a seamless and efficient workflow.
Key Features
Run Error Handling Autom
Allows the creation of an alternative flow if the main flow encounters an error.
Automatically runs the error handling flow when the main flow fails.
Continue & Assign
Enables continuation of the main flow despite errors.
Error information is assigned to a predefined object variable, preventing the main flow from stopping.
Stop & Response
Stops the main flow and provides a structured response.
Configurable response status code, error message, and response type.
Users can define the response body and use variables like ##sys_error_message## to display error details.
These features collectively ensure that users can manage errors efficiently, maintaining the integrity and reliability of their automation processes.
Automate Integration with the Error Handling Feature
Users have three options for utilizing error handling in Autom Mate. To access these features, navigate to the desired action where error handling is to be configured. In the Action Control Center on the right, scroll to the bottom of the section. Here, the Error Configuration switch can be found. Activating this switch will reveal the three error handling options available. The logic behind these options is: If an error in the action persists after retrying, then perform the specified action. Users should plan accordingly and choose the most suitable option for their needs.
Run Error Handling Autom
This feature allows users to create an alternative flow if the main flow encounters an error. To configure this, click the plus button to open and configure the error handling flow. A new tab will appear in the top bar, and the error handling flow will open automatically. Users can then create their alternative flow and save the Autom. When the main flow encounters an error, the error handling flow will run automatically.
Continue & Assign
When this option is selected, users do not need to create a new Autom. Instead, they must create a variable of the object type and select it from the drop-down menu. If an error occurs in the main flow, the flow will not stop. The error information will be assigned to the created object, allowing the main flow to continue working.
Stop & Response
Selecting this feature reveals three sections:
Response Status Code
This must be a 3-digit code (e.g., 200). The Autom will be considered failed if the response status is 400 or higher.
Error Message
Users should specify the message to be displayed for errors caused by the HTTP error code.
Response Type
Users can choose from options such as
No data
Application/Json
Application/XML
Text/Plain
Text/XML
Text/HTML
The response body can be written in the section below. The variable ##sys_error_message## can be used to display error details (e.g., message: ##sys_error_message##
By utilizing these error handling features, users can ensure their automation processes are resilient and capable of managing exceptions effectively.
Last updated