Workflow Compensation Sample

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

Create an activity of type CompensableActivity add CompensationHandler and ConfirmationHandler:

image

Then create a variable of type CompensationToken . For example with name ‘token’ as shown below.

image
Select MyActivity and enter the name of CompensationToken variable:

image

Then you can use (out of CompensableActivity)  Compensate and/or Confirm Activities. Booth need a proper Target property set on the CompensableToken value:

image   image

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
Filed under: ,
developers.de is a .Net Community Blog powered by daenet GmbH.