Fault Name

bpel:invalidVariables – variable failed to validate against a schema

Description

This fault is thrown by the <assign> and <validate> activities if a variable contains data that is inconsistent with its schema.

ODE does not currently perform any variable data validation, hence this fault is never thrown.

Examples

The following BPEL will generate the fault in the <assign> activity:

<variable name="foo" type="xsd:string" />
<assign validate="yes">
  <copy>
    <to variable="foo">
    <from>
       <literal>
          <bar><baz>BarBaz</baz></bar>
       </literal>
    </from>
  </copy>
</assign>

The following BPEL will generate the fault in the <validate> activity:

<variable name="foo" type="xsd:string" />
<assign validate="no">
  <copy>
    <to variable="foo">
    <from>
       <literal>
          <bar><baz>BarBaz</baz></bar>
       </literal>
    </from>
  </copy>
</assign>

<validate variables="foo" />

See Also

<assign>, <validate>