BPELプロセスのアクティビティのアサーションの概要

BPELプロセスのアクティビティに対して、変数アサーションおよびフォルト・アサーションを作成できます。次の例では、BPELプロセスでtextVarおよびcrOutputのコンテンツが指定されたコンテンツと必ず一致するように指示しています。

 <bpelTest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns="http://xmlns.oracle.com/sca/2006/test"
               componentName="LoanBroker">
 <activityActions activityName="elementAssign">
    <assert comparisonMethod="number">
      <description>Some other assertion.</description>
      <expected>
        <location key="textVar"
                  xmlns:loan="http://www.autoloan.com/ns/autoloan"/>
        <simple>111222333</simple>
      </expected>
    </assert>
  </activityActions>
 <activityActions activityName="invokeCR">
    <assert comparisonMethod="number">
      <description>Make sure we got the output.</description>
      <expected>
        <location key="crOutput" partName="payload" xpath="/tns:rating"
 xmlns:tns="http://services.otn.com"/>
        <simple>560</simple>
      </expected>
    </assert>
  </activityActions>
</bpelTest>

BPELプロセスのアクティビティに対するアサーションの作成の詳細は、「アサーションの作成方法」を参照してください。