Table of Contents

Introduction

Book Target Audience

How This Book Is Organized

Hour Summary

Part I The Basics

HOUR 1 Understanding Windows Workflow Foundation

Describing Workflow and Workflow Systems

A Conceptual Description of Workflow

A Sample Expense Report Workflow

Workflow Segmentations

What Is a Business Process Management System?

.NET Framework 3.0 and 3.5

Overview of WF

Standard Modeling Activities

Multiple Workflow Styles

Hosting

Tracking

Rule Capabilities

Conditional Rules

RuleSets

Custom Activities

Reason for Custom Activities

Types of Custom Activities

XAML Workflows and Serialization

Dynamic Update

WF and WCF

WF and WCF: Conceptual Overview

WF and WCF: Integration Specifics

SharePoint Workflow

SharePoint Workflow Overview

SharePoint Workflow Visual Studio

SharePoint Workflow SharePoint Designer

Designer Rehosting and External Modeling

Summary

Installation Instructions

Visual Studio 2005 and .NET Framework 3.0 Installation Directions

Visual Studio 2008 and .NET Framework 3.5 Installation Requirements/Directions

HOUR 2 A Spin Around Windows Workflow Foundation

Creating a Basic Workflow

Creating a Workflow Project

Building and Running a Workflow

Enhancing the Workflow

Improving Workflow Transparency

Passing Parameters to the Workflow

Using Declarative Rules

Adding New Activities

Creating the Declarative Rule

Examining the Project Files

Creating a XAML + Code Workflow

Adding and Configuring Activities

Examining the XAML Workflow

Running the XAML + Code Workflow

Creating a XAML-Only Workflow

Modeling and Preparing the XAML-Only Workflow for Execution

Call XAML-Only Workflow from Host

Summary

Workshop

Quiz

Answers

HOUR 3 Learning Basic Hosting

Overview of Hosting

Building a Host from Scratch

Creating Solution and Projects

Create a Simple Workflow

Creating the Host

Adding the Persistence Service

Adding Monitoring Events

Creating the Persistence and Tracking Databases

Running the Workflow

Updating the Host via Configuration

Summary

Workshop

Quiz

Answers

HOUR 4 Learning Host-Workflow Data Exchange

Host-Workflow Data Exchange

Creating the Solution and Projects

Creating the Solution

Creating the Local Service Project

Creating the Workflow Project

Creating the Windows Forms Project

Step 1: Creating the Local Service Interface

Step 2: Creating the Payload (EventArgs) Class

Step 3: Creating the Workflow

Adding the DependencyProperty Type

Step 3A: Creating a HandleExternalMethod Activity

Handle External Event Activity Property Window

Adding an IfElse Activity and Rules

Adding CallExternalMethod Activities

Creating the Windows Forms Host

Adding Controls to the Form

Adding the WF Runtime to the Form/Host

Step 4A: Creating the Workflow Instance and Raising the Initial Event

Step 4B: Implementing the Local Service

Building and Running the Project

Summary

Workshop

Quiz

Answers

HOUR 5 Creating an Escalation Workflow

Updating the Local Services

Updating the Basic Local Service Interface

Creating the Escalation Local Service

Extending the Workflow

Adding the Activities

Configuring CheckCredit’s Activities

Updating the Workflow Code-Beside File

Update the Forms (Hosts)

Implement New Interface Members in the Escalation Form

Implement the MoreInfo Method in the Basic Order Form

Configure Hosts to Track and Persist

Add Tracking to Basic and Escalation Forms

Add Persistence to Both Forms

Retrieve Tracking Data

Retrieve the Workflow from Persistence

Running the Solution

First-Level Approval or Rejection

Second-Level Approval or Rejection

Second Level Approval and Tracking

Running the WorkflowMonitor SDK Sample

Downloading and Installing WorkflowMonitor

Summary

Workshop

Quiz

Answers

Part II State Machined Workflows and Advanced Control Flow Activities

HOUR 6 Creating Basic State Machine Workflows

Explaining State Machine Workflows

Investigating State Machine Workflow Components

Creating the Project

Creating the Workflow

Preparatory Work

Adding State and EventDriven Activities

Updating the EventDriven Activities

Running the Basic Workflow

Hierarchical States and State Introspection

Modifying the Workflow

StateMachineWorkflowInstance and State Introspection

Run the Enhanced State Machine Workflow

Summary

Workshop

Quiz

Answers

HOUR 7 Creating Advanced State Machine Workflows

Updating the Form and Adding Member Variables

Updating the Form Code-Behind Logic to Work with StateMachineWorkflowInstance Members

Extract “In Scope” Events

SetState Combo Box

Historical States

Possible State Transitions

Override the Current State

Update the UI When Workflow Idles

Update the UI when Workflow Completes

Update the UI When Workflow Terminates

Running the Workflow

Summary

Workshop

Quiz

Answers

HOUR 8 Working with Parallel Activities and Correlation

Creating the Solution and First Project

Create the Parallel Activity Tester Project

Creating the Workflow

Standard Parallel Activity Execution

Running the Parallel Workflow

Synchronized Parallel Execution

Parallel Approval and Correlation

Opening the Solution and Adding the Projects

Local Service with Correlation

Create the Event Payload (EventArgs)

Concurrent Approver Workflow

Summary

Workshop

Quiz

Answers

HOUR 9 Working with the Replicator and While Activities

Creating Solutions and Projects

Creating the Replicator Workflow

Adding Member Variables to the Workflow

Placing the Activities on the Workflow

Configuring the Activities

Updating the Host Form

Running the Replicator Sequentially

Using the While Activity for Sequential Processing

Modeling the Workflow

Adding Code-Beside for the While Activity

Updating the Replicator Workflow to Run in Parallel

Adding Parallel Support to the Replicator

Running the Parallel Replicator

Summary

Workshop

Quiz

Answers

HOUR 10 Working with EventHandlingScope and Strongly Typed Activities

Learning Basic EventHandlingScope Activity Solution and Project Setup

Creating the Basic EventHandlingScope Workflow

Placing the Activities on the EventHandlingScope Sequential Section

Placing the Activities on the EventHandlingScope Event Handlers Section

Configuring the Event Handling Scope Sequential Activities

Configuring the EventHandlingScope Event Handling Activities

Running the Basic EventHandlingScope Workflow

Looking at the EventHandlingScope Activity in XAML

Creating a More Advanced EventHandlingScope Workflow

Setting up the Advanced EventHandlingScope Activity Solution

Add the Activities to the Workflow

Running the Advanced EventHandlingScope Workflow

Using WCA.exe to Build the Strongly Typed Activities

Use Strongly Typed Activities on a Workflow

Summary

Workshop

Quiz

Answers

Part III Data-Driven Workflows and Rules

HOUR 11 Creating Data-Driven Workflows

Describing the CAG

Exploring the CAG and Data-Driven Workflows

CAG Approval Sample

Creating the Project

Adding Variable Declarations

Add the CAG to the Workflow

Configuring the Approver1Lane of the CAG

Configuring the Approver2Lane of the CAG

Running the Workflow with Two Lanes

Configuring the Approver3Lane of the CAG

Run the Workflow with Three Lanes

Summary

Workshop

Quiz

Answers

HOUR 12 Working with the WF RuleSet

Creating the RuleSet

RuleSet Terminology and Project Ruleset

Creating the Project

Creating the RuleSet via the Policy Activity

Monitoring the RuleSet

Adding RuleSet Tracing

Evaluating Pre-Execution Results

Evaluating Post-Execution Results

Calling Methods from Rules

Attributing Methods to Detect Dependency

Using the External RuleSet Application

Downloading the External RuleSet Application

Running the Sample Workflow

Uploading Rules to the External Database

Adding the Custom Policy Activity to the Toolbox

Preparing the Workflow to Use External Rules

Configuring the Workflow to Use External Rules

Running the Workflow with External Rules

Summary

Workshop

Quiz

Answers

Part IV Intermediate and Advanced Features

HOUR 13 Learning to Track Workflows

Tracking Architecture

Tracking and Business Activity Monitoring

TrackingProfileDesigner SDK Sample

Reviewing the TrackingSolution

Opening the TrackingProfileDesigner and Loading a Workflow

Tracking Workflow Level Events

Tracking Activity Level Executed and Completed Events

Uploading and Examining the Profile and Running the Workflow

Additional Tracking Functionality

Manually Updating Tracking Profile and UserTrackingRecords

Adding User Tracking Data

Retrieving and Saving the TrackingProfile to a File

Manually Modifying and Uploading a Tracking Profile

Workshop

Quiz

Answers

HOUR 14 Working with Roles

Explaining Roles

Describing the Role Solution

Setting up an ASP.NET Role Provider

Updating the Host

Updating the Workflow

Adding Level2Role Support

Adding Level2Role Support to the Workflow

Adding Level2Role Support to the Code-Beside

Running the Solution with Level 2 Support

Summary

Workshop

Quiz

Answers

HOUR 15 Working with Dynamic Update

Applying Dynamic Update: Outside and Inside

Applying Dynamic Update from the Inside

Applying Dynamic Update from the Outside Unplanned

Explaining Dynamic Update from the Outside Planned

Updating Rules Dynamically

Selecting Which Version to Run

Changing Declarative Rule Conditions with Dynamic Update

Changing a RuleSet Rule via the CodeDom

Dynamic Update: Exploring Workflow Changes Sample

Summary

Workshop

Quiz

Answers

HOUR 16 Working with Exceptions, Compensation, and Transactions

Creating the Project

Basic Exception Handling

Modeling the ExceptionWorkflow

Adding a Workflow-Level FaultHandlers Activity

Handling the Exception

Configuring Visual Studio Debugger to Not Trap CLR Exceptions

Hierarchical Exception Handling and the Throw Activity

Updating the Exception Workflow

Catching Exceptions in the IfElse Activity

Handling Exceptions in the IfElse Activity

Use the Throw Activity

Reconfiguring the Throw Activity

Activity Handlers Elements and Views

Cancellation Handlers

Performing Preliminary Setup

Modeling the CancellationWorkflow

Adding the Cancellation Handler

Compensation Overview

Performing Preliminary Setup

Registering the SQL Persistence Service

Modeling the CompensationWorkflow

Adding the Compensation Handler

Adding a FaultHandlers Activity to the Workflow and Rerunning the Workflow

Adding a Compensate Activity to the Fault Handler

Moving the Throw Activity into the CompensatableSequence Activity

Transactions

Performing Preliminary Setup

Model and Configure the TransactionWorkflow

Running the SQL Script to Create the TestTransaction Database

Running the Workflow

Summary

Workshop

Quiz

Answers

HOUR 17 Learning Advanced Hosting

Exploring WorkflowRuntime Events

Workflow Events Sample Application

Running the AdvancedHostingForms Project

Runtime Services

Loading Service

Workflow Queuing Service

Building the Scheduling Service Project

Modeling and Configuring the Workflow

Updating the Host to Run Three Workflows

Running the Workflow with the DefaultWorkflowScheduler Service

Updating the Host to Use the ManualWorkflowSchedulerService

Running the Workflow with the ManualWorkflowSchedulerService

Modifying the Workflow to Use Delay Activities

InvokeWorkflow Activity

InvokeWorkflow Project: Host Prematurely Exits

InvokeWorkflow Project: Host Waits

InvokeWorkflow Project: Synchronous Calls and Parameters

Summary

Workshop

Quiz

Answers

HOUR 18 Working with Web Services and ASP.NET Hosting

Creating the Solution and Projects

Creating a Workflow and Publishing It as a Web Service

Creating Dependency Properties

Modeling and Publishing the Workflow

Creating the Interface to Produce the WSDL

Configure the WebServiceInput Activity

Configuring the IfElse Activity

Configuring the WebServiceOutput Activity

Publishing the Workflow as a Web Service

Calling a Web Service from a Workflow

Creating Dependency Properties

Modeling the Workflow

Finishing Configuring the InvokeWebService Activity

Running the Basic Workflow Solution

Additional Workflow Topics

Working with SOAP Faults

Exploring Generated Project and Cookie Usage

Exploring the WebServiceInvokeActivity .WebServiceProxy Property

Learning ASP.NET Hosting

Opening the Existing Solution and Creating the ASP.NET Project

Instantiating the WorkflowRuntime

Creating the ASP.NET Web Form

Starting the Workflow Instance

Running the ASP.Net Hosted Workflow

Summary

Workshop

Quiz

Answers

HOUR 19 Learning WF-WCF Integration

Overview of Windows Communication Foundation

WF and WCF Overview

Hosting a Workflow in WCF Using Existing Interface and Receive Activity

Creating the Solution and Projects

ABCs of WCF and WF Specific Bindings

Exploring the ContractsAndWorkflows Project and Bindings

Creating the WCF Endpoint and Host

Creating the Console Application Client

Hosting a Workflow in WCF: Configuring Receive Activity and Updating Interface

Modifying the Interface

Configuring the Receive Activity

Rebuilding the Client

Accessing WorkflowRuntime from WorkflowServiceHost

Performing Preparatory Work

Retrieving the WorkflowRuntime

Running the Project

Connecting to a WCF Endpoint from WF

Updating the Workflow

Summary

Workshop

Quiz

Answers

Part V Custom Activities

HOUR 20 Creating Basic Custom Activities

Custom Activity Conceptual Overview

Improve on Out-of-the-Box Activities

Create Domain-Specific Activities

Custom Control Flow Patterns

Custom Activity Technical Overview

Basic Custom Activity Overview

Creating the Solution and Projects

Creating the Solution and Projects

Creating the Customer Custom Activity

Setting the Base Activity

Overriding the Execute Method

Adding the Custom Activity to a Workflow

Updating the Customer Activity to Receive Input

Updating the Customer Activity to Retrieve Information from a Database

Adding Existing Custom CreditCheck Activity

Adding Event Handlers to Activities

Creating Compound Activities

Creating and Modeling the Compound Activity

Configure the IfElse Activity

Configuring the CheckCredit Activity in the CompoundCreditCheck Activity

Configuring the Customer Activity in the CompoundCreditCheck Activity

Creating a New Sequential Workflow

Modeling the Workflow with the CompoundCreditCheck Activity

Activity Programming Model

Designer Components

Creating an Activity Designer Theme

ToolboxBitMap Class

Adding Graphic as Image and Associating Class

Adding the Activity to the Toolbox Across Projects

Creating the VSContent File

Creating the VSI file

Workshop

Quiz

Answers

HOUR 21 Creating Queued Activities

Exploring Activity Life Cycle Topics

WorkflowQueue

ActivityExecutionContext

Overview of Samples

Creating the Solution and Projects

Creating a Basic Custom Queued Activity

Performing Preliminary Custom Activity Setup

Override the Initialize Method

Override the Execute Method

Adding Code to the QueueItemAvailable Handler

Override the Uninitialize Method

Updating Host to Send Data to the Queue

Running the Workflow

Custom Activity Queued from Service

Creating the CustomerQueuedFromService Service

Creating the CustomerQueuedFromServiceActivity Custom Activity

Updating the Host to Use the New Service

Summary

Workshop

Quiz

Answers

HOUR 22 Creating Typed Queued and EventDriven-Enabled Activities

Creating a Custom Activity that Accesses a Typed Service

Preliminary Project Setup

Adding the CustomerEventArgs File

Modifying the CustomerQueuedFromTypedServiceActivity Custom Activity

Modifying the CustomerQueuedFromTypedService Service

Updating the Host to Use the Typed Service

Creating an EventDriven Activity

Creating the CustomerEventDrivenActivity Custom Activity

Workshop

Quiz

Answers

HOUR 23 Creating Control Flow Activities Session 1

Control Flow Activity Conceptual Overview

Creating the Solution and Projects

Creating the Control Flow Activity

Creating Nonexecuting Control Flow Activity

Adding Single Child Activity Execution

Executing All Child Activities

Designer Hierarchy Overview

Adding Parallel Execution Option

Adding Cancellation and Early Completion

Creating GeneralControlFlowBranch and Adding a Condition

Summary

Workshop

Quiz

Answers

HOUR 24 Creating Control Flow Activities Session 2

Enhancing the GeneralControlFlow Activity

Adding a Custom Designer

Adding ToolBoxItem

Adding Custom Validation

Adding Attached Properties and the ActivityCondition Type

Reviewing Activity Life Cycle Artifacts

Implementing Compensation

Summary

Workshop

Quiz

Answers

Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.28.116