Skip to main content

This documentation is for an older version of this product. See the latest version of this content.Opens in a new tab

<compensate>

<catch> または <catchall> から <compensationhandler> を呼び出します。

構文

<scope>
   <throw fault='"BuyersRegret"'/>
   <faulthandlers>
     <catch fault='"BuyersRegret"'>
       <compensate target="RestoreBalance"/>
     </catch>
   </faulthandlers>
   <compensationhandlers>
     <compensationhandler name="RestoreBalance">
       <assign property='context.MyBalance' value='context.MyBalance+1'/>
     </compensationhandler>
   </compensationhandlers> 
</scope>

詳細

属性または要素 説明
target 属性 必須項目。以前のアクションを取り消す一連のアクティビティを表す <compensationhandler> の名前。 0 ~ 255 文字の文字列。
<annotation> 要素 一般的な属性と要素” を参照してください。  

説明

<compensate> 要素から <compensationhandler> ブロックを呼び出すときは、ターゲットとしてその名前を指定します。

<compensate target="general"/>

<compensate> は、<catch> または <catchall> 内にのみ配置できます。その target 値は、同じ BPL ビジネス・プロセス内の <compensationhandler>name と一致している必要があります。

詳細は、"BPL プロセスの開発" の “BPL のエラー処理” を参照してください。

FeedbackOpens in a new tab