Exception handling catches any errors that occur when a schema element runs. Exception handling defines how the schema element behaves when the error occurs.
All elements in a workflow, except for decisions and start and end elements, contain a specific output parameter type that serves only for handling exceptions. If an element encounters an error during its run, it can send an error signal to an exception handler. Exception handlers catch the error and react according to the errors they receive. If the exception handlers you define cannot handle a certain error, you can bind an element's exception output parameter to an Exception element, which ends the workflow run in the failed state.
Exceptions act as a try and catch sequence within a workflow element. If you do not need to handle a given exception in an element, you do not have to bind that element's exception output parameter.
The output parameter type for exceptions is always an errorCode object.
Create Exception Bindings
Elements can set bindings that define how the workflow behaves when it encounters an error in that element.
Prerequisites
Verify that the Schema tab of the workflow editor contains elements.
Procedure
- Log in to the Automation Orchestrator Client.
- Navigate to , and select your workflow.
- Select the element for which you want to define exception binding.
- On the General tab, expand the Exception Handling option.
- Select a workflow variable you want to use for exception handling.
- To finish editing the workflow, click Save.
Results
You defined how the element handles exceptions.