Try Catch can be used to handle errors for a group of steps in a workflow eliminating the need to appy individual error handling hop to each step.
Try and Catch steps are added in pairs in an AutomationEdge Process Studio’s workflow. On adding a ‘Try’ step onto the canvas, a ‘Catch’ step is automatically added on the canvas.
Validations:
Any other cases result in validation errors on save workflow operation.
‘Try’ step acts as the starting point of the Try-Catch feature to handle the errors. ‘Try’ step can also be the first step in a workflow.
No.
Field Name
Description
1
Step Name
Name of the step. This name has to be unique in a single workflow.
Catch is the main step in the Try-Catch pair that handles all the unhandled errors that would potentially occur between Try – Catch steps in a workflow.
On Process Studio UI while joining output hops from Catch step the following options are shown,
The Catch step has an error handling hop, to handle any errors that might occur in the step. Following are the possibilities of errors.
In the following screenshot, there is an entry in the Catch table, hence you can see an additional outgoing hop “The case target for value ‘Input File Missing’”.
No.
Field Name
Description
1
Step Name
Name of the step. This name has to be unique in a single workflow.
Configuration Tab
No.
Field Name
Description
1
Enable Partial Mapping
Enable checkbox to compare the errors partially with the error received,
2
Catch Table:
This table contains the details of how the errors have to be routed. The priority depends on the sequence.
The fields in this table are not mandatory.
i
Error_Description
Specify a full or partial error description to handle.
ii
Error_Code
Specific plugin error code to handle.
If the Error description and Error Code are specified in a single entry, both will be verified before forwarding to the target step.
iii
Target_Step
The target step to move to or traverse when the error occurs.
3
Default Success Step
If there aren't any errors in between Try - Catch, the row will be forwarded to the step specified here. This field is not mandatory.
4
Default Error Step
If the error occurred does not match any entries in the ‘Error Handling’ table, the row will be forwarded to the step specified here. This field is not mandatory.
In case this field is empty, the workflow terminates at the 'Catch' step with the error which is received by the 'Catch' step.
Open Step error handling settings for any step with Error handling option enabled in the popup navigation, between Try-Catch steps as seen below. The various Error Handling field names are pre-populated (and disabled) by Try-Catch as seen below.
These Error Handling field names are generated by Try-Catch. These field names can be changed by configuring with user defined names in the Fields tab.
Fields Tab:
No.
Field Name
Description
Error Handling Fields:
These fields may be configured to be used further in the workflow. If any field is not specified it will be lost after the Catch step.
1
Number of Errors
Specify a field name to hold No of errors ocurred step with error.
2
Error Description
Specify a field name to hold Error Description.
3
Error Field
Specify a field name to capture the error fields.
4
Error Code
Specify a field name to store error codes.
5
Error Step Name
Specify a field name to hold Step name on which errors occurred.
Tabular Fields:
Choose the fields to be forwarded by Catch step
1
Field Name
You may populate previous step fields by clicking on the get Fields button.
You may remove fields you do not want to forward by the Catch step.
2
Default Values
Specify field values to be assigned in case of errors.
Common Buttons:
No.
Field Name
Description
Buttons:
1
Get Fields
Click Get Fields button to get previous step fields.
2
OK
On click of this button. It will check the field values. If any required field values are missing then it will display validation error message.
If all the required field values are provided then it will save the field values.
3
Cancel
On click of this button, it will cancel the window and does not save any values.