Examining the Initial Workflow Code
Before we add activities to represent our business process, let’s take a look at how this initial dia-
gram is represented internally. If you examine the ProcessUsernameWorkflow.cs file using Solution
Explorer, you will notice that much like other designer-maintained files (forms, windows, web
pages), a WF diagram consists of partial class definitions. When you open the core *.cs file, you will
find a class type that extends the SequentialWorkflowActivity type and a default constructor that
makes a call to the InitializeComponent() method:
public sealed partial class ProcessUsernameWorkflow : SequentialWorkflowActivity
{
public ProcessUsernameWorkflow()
{
InitializeComponent();
}
}
Do'stlaringiz bilan baham: |