Validate
Select variables for the validate activity's variable list.
The validate activity validates the values of process variables against their associated XML and WSDL data definitions. You can add a list of variables to this activity for validation, regardless of whether or how they are used within a BPEL process.
During simulation, if a variable is found to contain an invalid value, the process terminates with a bpel:invalidVariables fault.
Note that you can also validate the specific variables used within an assign activity. See
Assign for details.
Note also that if the Keep Source Element Name attribute is enabled on a copy operation, it can cause the target variable to be invalid.
For an overview of WS-BPEL validation features, see
Validating Variables.
Required Properties | Optional Properties |
---|
Variables | |
| |
| |
| |
| |
| |
| |
To add a validate activity to the process:
- 1. Drag a Validate task to the Process Editor canvas.
You can add a background color to the validate task.
- 2. Double-click the validate to open the Select Variable dialog.
Alternately, in the Properties view, click in the Variables field and click Dialog (...).
- 3. In the Select Variable dialog, select one or more process variables for validation against their XML or WSDL definition.
The following illustration shows a simple example of using a validate activity to check the values of variables after an assign activity.
XML Syntax
<validate variables="BPELVariableName-list"
standard-attributes>
standard-elements
</validate>