September 2010
Intermediate to advanced
272 pages
5h 16m
English
Like performing compensation, we can also perform confirmation by explicitly using a Confirm activity. Confirmation will also be triggered when workflow is successfully finished.
Create a new Workflow Console Application project and name it UseConfirmActivity.
Add a new class file to the project and name it ConfirmationWorkflow.cs. Then fill the file with the following code:
using System; using System.Activities; using System.Activities.Statements; namespace UseConfirmActivity { class ConfirmationWorkflow { public Activity GetInstance() { Variable<CompensationToken> token = new Variable<CompensationToken>(); Activity ...