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:
- In the Design view, drag the Throw element from the Palette to the diagram.
- Select the Throw element on the diagram.
The
Properties window shows the Throw properties (Ctrl-Shift-7).
- (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.
- 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.
- In this dialog box, clear the Show Imported Files Only checkbox to view the contents of non-imported WSDL and XML schema files.
- By default, the Fault Name dialog box only shows those files that have already been referenced in the process. However, the project may contain other .wsdl and .xsd files which have not yet been imported into the process. If you select a type that is defined in a non-imported file, the IDE will automatically add the required import to the BPEL process.
- 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