Here is the start of a workflow defined using only XAML.
<SequentialWorkflowActivity xmlns="http://schemas.microsoft.com/winfx/2006/xaml/workflow" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="MyWorkflow" > <WhileActivity> <CodeActivity /> </WhileActivity> </SequentialWorkflowActivity>
The root element is a SequentialWorkflowActivity
. WF provides the SequentialWorkflowActivity
and StateMachineWorkflowActivity
classes primarily to serve as root level activities. These classes manage the execution of their children using different styles. The SequentialWorkflowActivity
serially executes its children until the last activity completes. The order of activities inside a sequential workflow is important, as the order will determine when the activity executes. We'll look at the StateMachineWorkflowActivity
in detail when we reach Chapter 7.
Our workflow consists of...