Throw

The Throw activity throws the specified fault and the control is passed to any error-handling routine defined to handle the error. This activity is useful in a group or in a called process. You can use this activity to catch and raise your own error conditions. The Throw activity is useful if an error in the business logic occurs during processing.

General

The General tab has the following fields.

Field Description
Name The name to be displayed as the label for the activity in the process.
Default Fault This field is displayed when you use the Throw activity in a service process or a service subprocess. Select this check box if you want the default message text and the error code for the error message.

This is reflected in the Input Editor and Input for this activity.

Fault Schema This field is displayed when you use the Throw activity in a direct subprocess.

Select a fault schema to send to the parent process. In a direct subprocess, fault schemas are defined on the Fault Editor tab of the End activity.

If you select the - Default - option, the $_error process variable is propagated.

Description

Provide a short description for the activity.

Input Editor

Selecting the Default Fault check box displays the message and the msgCode elements in the Input Editor.

Input

The following is the input for the activity.

Input Item Datatype Description
message string The text of the generated error message.
msgCode string The error code of the error message. This is used as an identifier for the error for the applications to test for an error.

Fault

This activity does not produce any fault. Click on this tab to view fault schemas specified on the Input tab.