Throw

See Also

The Throw activity is used when a business process needs to explicitly signal an internal fault. For a Throw activity, you can specify a fault name and a fault variable. These details can then be passed to a fault handler that is configured to deal with this kind of fault.

To use the Throw element:

  1. In the Design view, drag the Throw element from the Palette to the diagram.
  2. Select the Throw element on the diagram.
    The Properties window shows the Throw properties (Ctrl-Shift-7).
  3. (Optional) In the Properties window, enter an arbitrary name for the Throw element.
    You can also double-click the name on the diagram and enter the new name.
  4. For the Fault Name property, click the ellipsis button (...) and select a fault from the list, which includes faults defined in the WSDL files.
    You can use the WSDL Editor to add fault definitions to the .wsdl file. See Configuring Port Types Using the WSDL View for details.
  5. In this dialog box, clear the Show Imported Files Only checkbox to view the contents of non-imported WSDL and XML schema files.
  6. For the Fault Variable property, click the ellipsis button (...) and select a variable that will store the fault message. This should be the name of an already defined variable, and it should be of the proper type to hold the fault message.
See Also
BPEL Designer Palette: Basic Activities
About the Design View of the BPEL Designer

Legal Notices