This page provides information on WSO2 BPS's compliance to the final WS-BPEL 2.0 specification released by OASIS.
...
The following types of variants are available for in the <assign> activity.
...
From/To-Spec Variants
The <assign> activity copies a type-compatible value from the source ("from-spec") to the destination ("to-spec"), using <copy> element. The from-spec must be one of the following:
...
Empty variant exists for extensibility purposes. It is not supported by WSO2 BPS.
<from|to/>
Insert Variant (
...
Non-
...
Standard Extension)
Faults
- bpel:invalidVariables - A modified variable does not conform to its schema and the validate flag is set to yes.
- bpel:selectionFailure - The node(s) selected by a from/to-spec is (are) invalid. This includes cases when the to-spec returns a node that is not an lvalue, when multiple nodes are selected, or when no node is selected.
- bpel:subLanguageExecutionFault - Evaluating the expression (in the expression variant), or the query (in the variable variant) generates an error. For example, when a divide-by-zero is attempted.
- bpel:uninitializedVariable - The variable referenced in the from-spec is not initialized.
- bpel:mismatchedAssignmentFailure - The nodes selected by the to-spec and from-spec are not compatible. For example, this could occur if an attempt was made to assign a text node to an element variable, or an element variable was assigned to a message variable.
Examples
...
- The following assigns a childless element bar in namespace http://example.com to an element-typed variable myFooBarElemVar:
...