Datasheet

Chapter 1: Work ow Programming Principles
36
Note that the workflow instantiates an instance of our CustomCondition condition, initializes its
properties, and assigns it to the Condition property of the WhileActivity activity:
customcondition1.FieldName = “Title”;
customcondition1.ItemId = 1;
customcondition1.Keywords = “Document”;
customcondition1.ListName = “Documents”;
customcondition1.SiteUrl = “EnterSiteUrlHere”;
this.whileActivity1.Condition = customcondition1;
Also note that the WhileActivity activity contains an instance of our SequenceActivity custom activity,
which in turn contains two LogToHistoryListActivity activities.
The next chapter discusses in detail how to deploy your workflow for SharePoint. First you will learn
how to create a workflow with Visual Studio 2008. Start by launching Visual Studio 2008. Select
File
New Project to launch the New Project dialog shown in Figure 1 - 2 .
Figure 1-2
Enter Chapter1 as the name of the project and click OK. Visual Studio will automatically take you to the
dialog shown in Figure 1 - 3 .
c01.indd 36c01.indd 36 8/25/08 4:03:01 PM8/25/08 4:03:01 PM