<compensate>
<catch> または <catchall> から <compensationhandler> を呼び出します。
Synopsis
<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 エラー処理規則” を参照してください。