Throw
BPMN Implementation: Error throw event
The throw activity provides one way to handle errors in a BPEL process by generating a fault. You can set link conditions from an activity and then connect one link to a throw. For a discussion of error handling, see Fault Handling.
The throw activity provides one way to handle errors in a BPEL process by generating a fault. You can set link conditions from an activity and then connect one link to a throw.
For a list of faults described in the BPEL specification, see BPEL Standard Faults elsewhere in this help.
Required Properties | Optional Properties |
---|
Fault Name | Name. See Selecting Activity Labels |
| Fault Variable |
| Join Condition. See Creating a Join Condition for an Incoming Link |
| Suppress Join Failure. See Process Properties |
| Comment. See Adding Comments to a Process |
| Documentation. See Adding Documentation to a Process |
| Setting Visual Properties and Using Your Own Library of Images |
| Execution State. See Viewing the Execution State of an Activity or Link |
| Extension Attributes and Extension Elements. See Declaring Extension Elements and Attributes. |
To build a throw activity:
- 1. Drag an Error throw event to the Process Editor canvas.
- 2. In Properties view, specify a fault to throw.
The following illustration shows an example of using a throw activity.
XML Syntax
<throw faultName="QName"
faultVariable="BPELVariableName"? standard-attributes
standard-elements
</throw>
Example:
<throw xmlns:FLT="http://example.com/faults"
faultName="FLT:OutofStock"/>