O'Reilly logo

Programming Windows Workflow Foundation: Practical WF Techniques and Examples using XAML and C# by K. Scott Allen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Activity Execution

Every activity in Windows Workflow must be in one of six states. These states are represented by the ActivityExecutionStatus enumeration: Initialized, Executing, Closed, Canceling, Compensating, and Faulting. All activities begin in the Initialized state, and all activities end in the Closed state. The possible state transitions are shown in the figure below:

Activity Execution

There are a couple of important comments to make about this diagram. First, the only way for an activity to transition to the Closed state is for the activity to announce to the workflow runtime that it is finished executing. An activity makes this announcement by returning ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required