Exceptions Tab Page
Use
You can define exceptions and corresponding exception handlers in Workflow to react to particular error situations. If you define an exception in a block, the exception is valid for this block and all embedded blocks. However, if you want an exception to apply to the whole Workflow, define it in the version-specific basic data for the Workflow (see also: Version-Specific Basic Data of a Workflow).
Exception Handler
You define the exception handler in the block. If the exception is triggered at runtime, processing within the block is canceled and continued in the exception handler branch instead. Once exception handling processing is complete, the block is completed and processing continues in the steps after the block. Any work items within the block that are not complete are given the status Logically Deleted. If the block does not have an exception handler defined for it, the system searches for an exception handler in the superordinate block. If no exception handler is found, the Workflow is given the status ERROR.
Activities
Defining or Specifying Exceptions
In the table on the Exceptions tab page you can specify an exception that you have defined in the version-specific basic data of the Workflow or in a subordinate block. You can also specify a new exception by entering its name in the table.
Defining Exception Handlers
Once you have specified an exception, a branch with the name of the exception as its label is entered in the Workflow definition. You can now insert the required steps in this branch. To activate the exception handler, select the Exception tab page and click the icon in the left table column so that it turns green, or select Activate or Deactivate Exception (
).
Removing an Exception Handler
To remove the exception handler and all steps from the Workflow definition, select the Exception tab page and click the icon in the left table column so that it turns gray, or select Activate or Deactivate Exception (
).
Deleting or Renaming an Exception
You can only delete or rename an exception if it is not assigned an exception handler in a superordinate block.
Raising an exception
To raise an exception, insert a step of type process control at the required position in the Workflow.