Skip to Content
Microsoft Windows Workflow Foundation 4.0 Cookbook
book

Microsoft Windows Workflow Foundation 4.0 Cookbook

by Andrew Zhu
September 2010
Intermediate to advanced content levelIntermediate to advanced
272 pages
5h 16m
English
Packt Publishing
Content preview from Microsoft Windows Workflow Foundation 4.0 Cookbook

Performing confirmation by using Confirm activity

Like performing compensation, we can also perform confirmation by explicitly using a Confirm activity. Confirmation will also be triggered when workflow is successfully finished.

How to do it...

  1. Create a Workflow Console Application project:

    Create a new Workflow Console Application project and name it UseConfirmActivity.

  2. Create workflow code:

    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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Essential Windows Workflow Foundation

Essential Windows Workflow Foundation

Dharma Shukla, Bob Schmidt

Publisher Resources

ISBN: 9781849680783Other