変数間でのコピー方法

次の例は、2つの割当ての実行を示しています。最初に同じタイプの2つの変数の間でコピーを実行し、次に変数パートをそのパートと同じタイプの別の変数にコピーします。

<assign>
   <copy>
      <from variable="c1"/>
      <to variable="c2"/>
   </copy>
   <copy>
      <from variable="c1" part = "address"/>
      <to variable="c3"/>
   </copy>
</assign>

次の例に示すように、BPELファイルは変数を定義します。

<variable name="c1" messageType="x:person"/>
<variable name="c2" messageType="x:person"/>
<variable name="c3" element="y:address"/>

次の例に示すように、WSDLファイルはpersonメッセージ・タイプを定義します。

<message name="person" xmlns:x="http://tempuri.org/bpws/example">
   <part name="full-name" type="xsd:string"/>
   <part name="address" element="x:address"/>
</message>

このコード例の詳細は、「Business Process Execution Language for Web Services Specification」の第9.3.2項を参照してください。BPEL 2.0の場合は、「Web Services Business Process Execution Language Specification Version 2.0」の第8.4.4項の類似した例を参照してください。

詳細は、「Assignアクティビティ」を参照してください。