Create an activity of type CompensableActivity add CompensationHandler and ConfirmationHandler:
Then create a variable of type CompensationToken . For example with name ‘token’ as shown below.
Select MyActivity and enter the name of CompensationToken variable:
Then you can use (out of CompensableActivity) Compensate and/or Confirm Activities. Booth need a proper Target property set on the CompensableToken value:
Note that example shows both Confirm and Compensate. In a real world only one of them can be used!
Posted
Dec 14 2010, 10:34 AM
by
Damir Dobric