<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> の名前。
最大 255 文字の文字列を指定します。
<annotation> 要素
"一般的な属性と要素" を参照してください。
説明
<compensate> 要素から <compensationhandler> ブロックを呼び出すときは、ターゲットとしてその名前を指定します。
<compensate target="general"/>
<compensate> は、<catch> または <catchall> 内にのみ配置できます。その target 値は、同じ BPL ビジネス・プロセス内の <compensationhandler> の name と一致している必要があります。
詳細は、"BPL のエラー処理" を参照してください。