Skip to content

Throw

A BPEL process can signal an internal fault using the Throw activity. Using the Throw activity you can provide a name for the fault and also further information about the fault. You can catch and handle the faults using fault handlers.

You can use a standard fault or specify a custom user-defined fault. For a list of faults described in the BPEL specification, see Standard BPEL Faults.

To build a Throw activity:

  1. From the Palette, drag a Throw activity to the BPEL Editor canvas.
  2. In Properties view, specify the type, name, and fault variable for the activity. The fault variable is optional.

Properties

Property Description Required?
Fault type Choose either Standard BPEL Fault or User-defined depending on if you are using a standard BPEL fault or User-defined Fault. Yes
Fault name Choose the fault name for the drop down list. This list is populated by standard available BPEL faults and any faults that are inherent in the Web service being used. Yes
Fault variable You can use a variable to provide further information about the fault. Click Browse to open the Select Fault Variable wizard. After you select the fault variable you want to use, it displays in the Fault Structure field. No

More Information