skip to content
Sams teach yourself Windows workflow foundation in 24 hours Preview this item
ClosePreview this item

Sams teach yourself Windows workflow foundation in 24 hours

Author: Rob Eisenberg
Publisher: Indianapolis, Ind. : Sams, ©2009.
Series: Sams teach yourself.
Edition/Format:   eBook : Document : EnglishView all editions and formats
In just 24 sessions of about an hour, you'll learn how to build robust, efficient business workflows with Windows Workflow Foundation (WF). Using a straightforward, step-by-step approach, each lesson builds the real-world foundation you need to succeed with WF from the ground up.

(not yet rated) 0 with reviews - Be the first.

More like this


Find a copy online

Links to this item

Find a copy in the library

&AllPage.SpinnerRetrieving; Finding libraries that hold this item...


Genre/Form: Electronic books
Material Type: Document, Internet resource
Document Type: Internet Resource, Computer File
All Authors / Contributors: Rob Eisenberg
ISBN: 9780768687842 0768687845 0768687861 9780768687866 0321486994 9780321486998
OCLC Number: 319430692
Notes: Includes index.
Description: 1 online resource (xxii, 573 pages) : illustrations.
Contents: Introduction 1Book Target Audience 2How This Book Is Organized 2Hour Summary 3 Part I The BasicsHOUR 1 Understanding Windows Workflow Foundation 9Describing Workflow and Workflow Systems 9A Conceptual Description of Workflow 9A Sample Expense Report Workflow 10Workflow Segmentations 12What Is a Business Process Management System? 13.NET Framework 3.0 and 3.5 13Overview of WF 14Standard Modeling Activities 16Multiple Workflow Styles 19Hosting 23Tracking 24Rule Capabilities 26Conditional Rules 26RuleSets 27Custom Activities 29Reason for Custom Activities 29Types of Custom Activities 30XAML Workflows and Serialization 33Dynamic Update 34WF and WCF 36WF and WCF: Conceptual Overview 36WF and WCF: Integration Specifics 37SharePoint Workflow 38SharePoint Workflow Overview 38SharePoint Workflow Visual Studio 40SharePoint Workflow SharePoint Designer 40Designer Rehosting and External Modeling 41Summary 43Installation Instructions 44Visual Studio 2005 and .NET Framework 3.0 Installation Directions 44Visual Studio 2008 and .NET Framework 3.5 Installation Requirements/Directions 45 HOUR 2 A Spin Around Windows Workflow Foundation 47Creating a Basic Workflow 47Creating a Workflow Project 47Building and Running a Workflow 49Enhancing the Workflow 53Improving Workflow Transparency 57Passing Parameters to the Workflow 58Using Declarative Rules 60Adding New Activities 60Creating the Declarative Rule 61Examining the Project Files 63Creating a XAML + Code Workflow 64Adding and Configuring Activities 64Examining the XAML Workflow 65Running the XAML + Code Workflow 66Creating a XAML-Only Workflow 66Modeling and Preparing the XAML-Only Workflow for Execution 67Call XAML-Only Workflow from Host 68Summary 69Workshop 69Quiz 69Answers 70 HOUR 3 Learning Basic Hosting 71Overview of Hosting 72Building a Host from Scratch 72Creating Solution and Projects 73Create a Simple Workflow 75Creating the Host 75Adding the Persistence Service 80Adding Monitoring Events 83Creating the Persistence and Tracking Databases 85Running the Workflow 86Updating the Host via Configuration 87Summary 89Workshop 90Quiz 90Answers 90 HOUR 4 Learning Host-Workflow Data Exchange 91Host-Workflow Data Exchange 91Creating the Solution and Projects 93Creating the Solution 94Creating the Local Service Project 94Creating the Workflow Project 95Creating the Windows Forms Project 95Step 1: Creating the Local Service Interface 96Step 2: Creating the Payload (EventArgs) Class 97Step 3: Creating the Workflow 99Adding the DependencyProperty Type 99Step 3A: Creating a HandleExternalMethod Activity 101Handle External Event Activity Property Window 102Adding an IfElse Activity and Rules 103Adding CallExternalMethod Activities 103Creating the Windows Forms Host 108Adding Controls to the Form 109Adding the WF Runtime to the Form/Host 109Step 4A: Creating the Workflow Instance and Raising the Initial Event 112Step 4B: Implementing the Local Service 113Building and Running the Project 116Summary 116Workshop 117Quiz 117Answers 118 HOUR 5 Creating an Escalation Workflow 119Updating the Local Services 120Updating the Basic Local Service Interface 120Creating the Escalation Local Service 121Extending the Workflow 122Adding the Activities 122Configuring CheckCredit's Activities 125Updating the Workflow Code-Beside File 127Update the Forms (Hosts) 128Implement New Interface Members in the Escalation Form 128Implement the MoreInfo Method in the Basic Order Form 129Configure Hosts to Track and Persist 130Add Tracking to Basic and Escalation Forms 130Add Persistence to Both Forms 131Retrieve Tracking Data 132Retrieve the Workflow from Persistence 135Running the Solution 137First-Level Approval or Rejection 137Second-Level Approval or Rejection 138Second Level Approval and Tracking 139Running the WorkflowMonitor SDK Sample 141Downloading and Installing WorkflowMonitor 141Summary 143Workshop 144Quiz 144Answers 144 Part II State Machined Workflows and Advanced Control Flow ActivitiesHOUR 6 Creating Basic State Machine Workflows 147Explaining State Machine Workflows 147Investigating State Machine Workflow Components 149Creating the Project 150Creating the Workflow 150Preparatory Work 151Adding State and EventDriven Activities 151Updating the EventDriven Activities 153Running the Basic Workflow 159Hierarchical States and State Introspection 159Modifying the Workflow 160StateMachineWorkflowInstance and State Introspection 165Run the Enhanced State Machine Workflow 165Summary 166Workshop 166Quiz 166Answers 167 HOUR 7 Creating Advanced State Machine Workflows 169Updating the Form and Adding Member Variables 170Updating the Form Code-Behind Logic to Work with StateMachineWorkflowInstance Members 170Extract "In Scope" Events 171SetState Combo Box 174Historical States 175Possible State Transitions 176Override the Current State 176Update the UI When Workflow Idles 177Update the UI when Workflow Completes 177Update the UI When Workflow Terminates 178Running the Workflow 178Summary 180Workshop 180Quiz 180Answers 180 HOUR 8 Working with Parallel Activities and Correlation 181Creating the Solution and First Project 181Create the Parallel Activity Tester Project 182Creating the Workflow 182Standard Parallel Activity Execution 182Running the Parallel Workflow 183Synchronized Parallel Execution 185Parallel Approval and Correlation 187Opening the Solution and Adding the Projects 188Local Service with Correlation 188Create the Event Payload (EventArgs) 190Concurrent Approver Workflow 191Summary 200Workshop 201Quiz 201Answers 201 HOUR 9 Working with the Replicator and While Activities 203Creating Solutions and Projects 204Creating the Replicator Workflow 204Adding Member Variables to the Workflow 204Placing the Activities on the Workflow 205Configuring the Activities 206Updating the Host Form 210Running the Replicator Sequentially 212Using the While Activity for Sequential Processing 213Modeling the Workflow 213Adding Code-Beside for the While Activity 213Updating the Replicator Workflow to Run in Parallel 215Adding Parallel Support to the Replicator 215Running the Parallel Replicator 216Summary 217Workshop 217Quiz 217Answers 218 HOUR 10 Working with EventHandlingScope and Strongly Typed Activities 219Learning Basic EventHandlingScope Activity Solution and Project Setup 220Creating the Basic EventHandlingScope Workflow 220Placing the Activities on the EventHandlingScope Sequential Section 220Placing the Activities on the EventHandlingScope Event Handlers Section 221Configuring the Event Handling Scope Sequential Activities 223Configuring the EventHandlingScope Event Handling Activities 224Running the Basic EventHandlingScope Workflow 225Looking at the EventHandlingScope Activity in XAML 225Creating a More Advanced EventHandlingScope Workflow 226Setting up the Advanced EventHandlingScope Activity Solution 226Add the Activities to the Workflow 227Running the Advanced EventHandlingScope Workflow 232Using WCA.exe to Build the Strongly Typed Activities 233Use Strongly Typed Activities on a Workflow 234Summary 237Workshop 238Quiz 238Answers 238 Part III Data-Driven Workflows and RulesHOUR 11 Creating Data-Driven Workflows 241Describing the CAG 241Exploring the CAG and Data-Driven Workflows 243CAG Approval Sample 243Creating the Project 244Adding Variable Declarations 244Add the CAG to the Workflow 245Configuring the Approver1Lane of the CAG 246Configuring the Approver2Lane of the CAG 249Running the Workflow with Two Lanes 251Configuring the Approver3Lane of the CAG 252Run the Workflow with Three Lanes 254Summary 254Workshop 255Quiz 255Answers 255 HOUR 12 Working with the WF RuleSet 257Creating the RuleSet 258RuleSet Terminology and Project Ruleset 258Creating the Project 260Creating the RuleSet via the Policy Activity 260Monitoring the RuleSet 264Adding RuleSet Tracing 265Evaluating Pre-Execution Results 265Evaluating Post-Execution Results 267Calling Methods from Rules 267Attributing Methods to Detect Dependency 269Using the External RuleSet Application 271Downloading the External RuleSet Application 271Running the Sample Workflow 272Uploading Rules to the External Database 273Adding the Custom Policy Activity to the Toolbox 275Preparing the Workflow to Use External Rules 275Configuring the Workflow to Use External Rules 276Running the Workflow with External Rules 277Summary 278Workshop 278Quiz 278Answers 279 Part IV Intermediate and Advanced FeaturesHOUR 13 Learning to Track Workflows 283Tracking Architecture 284Tracking and Business Activity Monitoring 285TrackingProfileDesigner SDK Sample 286Reviewing the TrackingSolution 286Opening the TrackingProfileDesigner and Loading a Workflow 288Tracking Workflow Level Events 289Tracking Activity Level Executed and Completed Events 290Uploading and Examining the Profile and Running the Workflow 292Additional Tracking Functionality 294Manually Updating Tracking Profile and UserTrackingRecords 298Adding User Tracking Data 299Retrieving and Saving the TrackingProfile to a File 299Manually Modifying and Uploading a Tracking Profile 300Workshop 304Quiz 304Answers 305 HOUR 14 Working with Roles 307Explaining Roles 307Describing the Role Solution 308Setting up an ASP.NET Role Provider 308Updating the Host 311Updating the Workflow 312Adding Level2Role Support 315Adding Level2Role Support to the Workflow 315Adding Level2Role Support to the Code-Beside 315Running the Solution with Level 2 Support 316Summary 317Workshop 317Quiz 317Answers 317 HOUR 15 Working with Dynamic Update 319Applying Dynamic Update: Outside and Inside 320Applying Dynamic Update from the Inside 321Applying Dynamic Update from the Outside Unplanned 324Explaining Dynamic Update from the Outside Planned 326Updating Rules Dynamically 327Selecting Which Version to Run 329Changing Declarative Rule Conditions with Dynamic Update 329Changing a RuleSet Rule via the CodeDom 332Dynamic Update: Exploring Workflow Changes Sample 337Summary 340Workshop 341Quiz 341Answers 341 HOUR 16 Working with Exceptions, Compensation, and Transactions 343Creating the Project 344Basic Exception Handling 344Modeling the ExceptionWorkflow 345Adding a Workflow-Level FaultHandlers Activity 345Handling the Exception 348Configuring Visual Studio Debugger to Not Trap CLR Exceptions 349Hierarchical Exception Handling and the Throw Activity 350Updating the Exception Workflow 350Catching Exceptions in the IfElse Activity 351Handling Exceptions in the IfElse Activity 352Use the Throw Activity 353Reconfiguring the Throw Activity 353Activity Handlers Elements and Views 354Cancellation Handlers 355Performing Preliminary Setup 355Modeling the CancellationWorkflow 356Adding the Cancellation Handler 356Compensation Overview 357Performing Preliminary Setup 358Registering the SQL Persistence Service 358Modeling the CompensationWorkflow 359Adding the Compensation Handler 359Adding a FaultHandlers Activity to the Workflow and Rerunning the Workflow 361Adding a Compensate Activity to the Fault Handler 361Moving the Throw Activity into the CompensatableSequence Activity 362Transactions 363Performing Preliminary Setup 363Model and Configure the TransactionWorkflow 364Running the SQL Script to Create the TestTransaction Database 365Running the Workflow 365Summary 366Workshop 367Quiz 367Answers 368 HOUR 17 Learning Advanced Hosting 369Exploring WorkflowRuntime Events 370Workflow Events Sample Application 371Running the AdvancedHostingForms Project 372Runtime Services 375Loading Service 377Workflow Queuing Service 378Building the Scheduling Service Project 379Modeling and Configuring the Workflow 379Updating the Host to Run Three Workflows 380Running the Workflow with the DefaultWorkflowScheduler Service 381Updating the Host to Use the ManualWorkflowSchedulerService 381Running the Workflow with the ManualWorkflowSchedulerService 382Modifying the Workflow to Use Delay Activities 383InvokeWorkflow Activity 384InvokeWorkflow Project: Host Prematurely Exits 385InvokeWorkflow Project: Host Waits 387InvokeWorkflow Project: Synchronous Calls and Parameters 387Summary 394Workshop 394Quiz 394Answers 395 HOUR 18 Working with Web Services and ASP.NET Hosting 397Creating the Solution and Projects 398Creating a Workflow and Publishing It as a Web Service 398Creating Dependency Properties 398Modeling and Publishing the Workflow 399Creating the Interface to Produce the WSDL 399Configure the WebServiceInput Activity 400Configuring the IfElse Activity 401Configuring the WebServiceOutput Activity 402Publishing the Workflow as a Web Service 403Calling a Web Service from a Workflow 404Creating Dependency Properties 404Modeling the Workflow 404Finishing Configuring the InvokeWebService Activity 405Running the Basic Workflow Solution 406Additional Workflow Topics 407Working with SOAP Faults 407Exploring Generated Project and Cookie Usage 410Exploring the WebServiceInvokeActivity.WebServiceProxy Property 412Learning ASP.NET Hosting 413Opening the Existing Solution and Creating the ASP.NET Project 413Instantiating the WorkflowRuntime 414Creating the ASP.NET Web Form 415Starting the Workflow Instance 416Running the ASP.Net Hosted Workflow 418Summary 418Workshop 418Quiz 418Answers 419 HOUR 19 Learning WF-WCF Integration 421Overview of Windows Communication Foundation 421WF and WCF Overview 422Hosting a Workflow in WCF Using Existing Interface and Receive Activity 424Creating the Solution and Projects 425ABCs of WCF and WF Specific Bindings 426Exploring the ContractsAndWorkflows Project and Bindings 427Creating the WCF Endpoint and Host 431Creating the Console Application Client 434Hosting a Workflow in WCF: Configuring Receive Activity and Updating Interface 437Modifying the Interface 438Configuring the Receive Activity 438Rebuilding the Client 441Accessing WorkflowRuntime from WorkflowServiceHost 442Performing Preparatory Work 443Retrieving the WorkflowRuntime 443Running the Project 444Connecting to a WCF Endpoint from WF 445Updating the Workflow 445Summary 448Workshop 449Quiz 449Answers 449 Part V Custom ActivitiesHOUR 20 Creating Basic Custom Activities 453Custom Activity Conceptual Overview 453Improve on Out-of-the-Box Activities 454Create Domain-Specific Activities 454Custom Control Flow Patterns 454Custom Activity Technical Overview 455Basic Custom Activity Overview 456Creating the Solution and Projects 456Creating the Solution and Projects 457Creating the Customer Custom Activity 457Setting the Base Activity 457Overriding the Execute Method 458Adding the Custom Activity to a Workflow 459Updating the Customer Activity to Receive Input 460Updating the Customer Activity to Retrieve Information from a Database 462Adding Existing Custom CreditCheck Activity 465Adding Event Handlers to Activities 469Creating Compound Activities 470Creating and Modeling the Compound Activity 470Configure the IfElse Activit 471Configuring the CheckCredit Activity in the CompoundCreditCheck Activity 472Configuring the Customer Activity in the CompoundCreditCheck Activity 472Creating a New Sequential Workflow 473Modeling the Workflow with the CompoundCreditCheck Activity 473Activity Programming Model 475Designer Components 475Creating an Activity Designer Theme 476ToolboxBitMap Class 478Adding Graphic as Image and Associating Class 479Adding the Activity to the Toolbox Across Projects 480Creating the VSContent File 480Creating the VSI file 480Workshop 482Quiz 482Answers 482 HOUR 21 Creating Queued Activities 483Exploring Activity Life Cycle Topics 484WorkflowQueue 484ActivityExecutionContext 485Overview of Samples 486Creating the Solution and Projects 486Creating a Basic Custom Queued Activity 487Performing Preliminary Custom Activity Setup 487Override the Initialize Method 487Override the Execute Method 489Adding Code to the QueueItemAvailable Handler 490Override the Uninitialize Method 492Updating Host to Send Data to the Queue 492Running the Workflow 493Custom Activity Queued from Service 493Creating the CustomerQueuedFromService Service 494Creating the CustomerQueuedFromServiceActivity Custom Activity 498Updating the Host to Use the New Service 503Summary 504Workshop 505Quiz 505Answers 505 HOUR 22 Creating Typed Queued and EventDriven-Enabled Activities 507Creating a Custom Activity that Accesses a Typed Service 507Preliminary Project Setup 508Adding the CustomerEventArgs File 508Modifying the CustomerQueuedFromTypedServiceActivity Custom Activity 09Modifying the CustomerQueuedFromTypedService Service 510Updating the Host to Use the Typed Service 513Creating an EventDriven Activity 513Creating the CustomerEventDrivenActivity Custom Activity 514Workshop 522Quiz 522Answers 523 HOUR 23 Creating Control Flow Activities Session 1 525Control Flow Activity Conceptual Overview 525Creating the Solution and Projects 527Creating the Control Flow Activity 527Creating Nonexecuting Control Flow Activity 527Adding Single Child Activity Execution 529Executing All Child Activities 532Designer Hierarchy Overview 535Adding Parallel Execution Option 536Adding Cancellation and Early Completion 542Creating GeneralControlFlowBranch and Adding a Condition 545Summary 549Workshop 549Quiz 549Answers 549 HOUR 24 Creating Control Flow Activities Session 2 551Enhancing the GeneralControlFlow Activity 551Adding a Custom Designer 552Adding ToolBoxItem 554Adding Custom Validation 556Adding Attached Properties and the ActivityCondition Type 561Reviewing Activity Life Cycle Artifacts 568Implementing Compensation 570Summary 572Workshop 572Quiz 572Answers 572 Index 575
Series Title: Sams teach yourself.
Other Titles: Windows workflow foundation
Responsibility: Robert Eisenberg.


Windows Workflow Foundation is an important new set of tools from Microsoft introduced in version 3.0 of .NET and expanded in version 3.5. This text breaks the topic down into smaller lessons,  Read more...


User-contributed reviews
Retrieving GoodReads reviews...
Retrieving DOGObooks reviews...


Be the first.
Confirm this request

You may have already requested this item. Please select Ok if you would like to proceed with this request anyway.

Linked Data

Primary Entity

<> # Sams teach yourself Windows workflow foundation in 24 hours
    a schema:MediaObject, schema:CreativeWork, schema:Book ;
   library:oclcnum "319430692" ;
   library:placeOfPublication <> ;
   library:placeOfPublication <> ; # Indianapolis, Ind.
   rdfs:comment "Warning: This malformed URI has been treated as a string - '{5246FA94-D207-4D12-A8B4-14434CF23D4F}Img100.jpg'" ;
   schema:about <> ;
   schema:about <> ; # Microsoft .NET Framework.
   schema:about <> ; # Application software--Development
   schema:about <> ; # Windows workflow foundation.
   schema:about <> ; # Application software--Development
   schema:about <> ; # Windows workflow foundation.
   schema:about <> ; # Microsoft .NET
   schema:about <> ; # Microsoft .NET Framework
   schema:alternateName "Windows workflow foundation" ;
   schema:bookFormat schema:EBook ;
   schema:copyrightYear "2009" ;
   schema:creator <> ; # Rob Eisenberg
   schema:datePublished "2009" ;
   schema:description "In just 24 sessions of about an hour, you'll learn how to build robust, efficient business workflows with Windows Workflow Foundation (WF). Using a straightforward, step-by-step approach, each lesson builds the real-world foundation you need to succeed with WF from the ground up."@en ;
   schema:exampleOfWork <> ;
   schema:genre "Electronic books"@en ;
   schema:inLanguage "en" ;
   schema:isPartOf <> ; # Sams teach yourself.
   schema:isSimilarTo <> ;
   schema:name "Sams teach yourself Windows workflow foundation in 24 hours"@en ;
   schema:productID "319430692" ;
   schema:publication <> ;
   schema:publisher <> ; # Sams
   schema:url <> ;
   schema:url "{5246FA94-D207-4D12-A8B4-14434CF23D4F}Img100.jpg" ;
   schema:url <> ;
   schema:url <> ;
   schema:url <> ;
   schema:url <> ;
   schema:workExample <> ;
   schema:workExample <> ;
   schema:workExample <> ;
   wdrs:describedby <> ;

Related Entities

<> # Microsoft .NET Framework.
    a schema:CreativeWork ;
   schema:name "Microsoft .NET Framework." ;

<> # Windows workflow foundation.
    a schema:CreativeWork ;
   schema:name "Windows workflow foundation." ;

<> # Indianapolis, Ind.
    a schema:Place ;
   schema:name "Indianapolis, Ind." ;

<> # Sams teach yourself.
    a bgn:PublicationSeries ;
   schema:hasPart <> ; # Sams teach yourself Windows workflow foundation in 24 hours
   schema:name "Sams teach yourself." ;
   schema:name "Sams teach yourself" ;

<> # Application software--Development
    a schema:Intangible ;
   schema:name "Application software--Development"@en ;

<> # Windows workflow foundation.
    a schema:CreativeWork ;
   schema:name "Windows workflow foundation." ;

<> # Microsoft .NET Framework
    a schema:Intangible ;
   schema:name "Microsoft .NET Framework"@en ;

<> # Rob Eisenberg
    a schema:Person ;
   schema:familyName "Eisenberg" ;
   schema:givenName "Rob" ;
   schema:name "Rob Eisenberg" ;

    a schema:CreativeWork ;
   schema:isSimilarTo <> ; # Sams teach yourself Windows workflow foundation in 24 hours

    a schema:ProductModel ;
   schema:isbn "0321486994" ;
   schema:isbn "9780321486998" ;

    a schema:ProductModel ;
   schema:isbn "0768687845" ;
   schema:isbn "9780768687842" ;

    a schema:ProductModel ;
   schema:isbn "0768687861" ;
   schema:isbn "9780768687866" ;

Content-negotiable representations

Close Window

Please sign in to WorldCat 

Don't have an account? You can easily create a free account.