Windows Workflow Foundation Using C# VS 2017

Course Description

This four-day course covers WF 4.5 and uses Visual Studio 2017, which provides a visual designer for creating workflows. Numerous programming examples and exercises are provided. Participants will receive a complete set of notes and all the programming examples.
4 Days
Contact us for pricing

Prerequisites

Participants should have programming experience in C# and the .NET Framework and be familiar with the Visual Studio development environment.

Learning Objectives

Understand the concept of workflow and the architecture of WF
Implement workflow applications using WF
Use standard activities from the Built-In Activity Library
Implement custom activities for workflow applications
Provide hosting for workflow applications
Implement persistence in workflow applications
Implement and consume workflow services
Debug workflow applications
Handle errors and perform compensation in workflow applications

Workflow Foundation Conceptual Overview

What is Workflow?
Windows Workflow Foundation
Workflows
Activities
A Workflow Business Scenario
Workflow Foundation 3
Workflow Foundation 4
Workflow Foundation 4.5

Getting Started with WF 4.5

Visual Studio Workflow Projects
Workflows in Code
Workflows in XAML
Workflow Designer
Sequence
Assign
Variables, Arguments and Expressions
WriteLine
Control Flow

Primitive and Control Flow Activities

InvokeMethod
Workflow Variables
Delay
Parallel
If
While and DoWhile
Switch

Custom Activities

Why Custom Activities?
Arguments
Activity Class Hierarchy
CodeActivity
Composing Activities

Workflow Hosting

WorkflowInvoker
WorkflowApplication
WorkflowApplication Delegates
Canceling and Aborting a Workflow
Terminating a Workflow
Workflows in a Windows Application
Workflows in ASP.NET

Collection and Parallel Activities

Collection Activities
ForEach
ParallelForEach
AsyncActivity

More about Custom Activities

Waiting for Input
Bookmarks
NativeActivity
Pick

Flowchart and State Machine

Flowcharts
Flowchart Activity Designers
State Machines
States and Transitions
State Machine Activity Designers
Threading Issues

Persistence

Long-lived Workflows
Persistence and Bookmarks
Persistence Store in SQL Server
PersistableIdle Event
Unloading and Loading
Serializing Instance Identification

Workflow Services

What is WCF?
Address, Binding and Contract
Workflow Services
Messaging Activities
Exposing a Workflow as a Service
Calling a Service from a Workflow
Multiple Operations

Debugging and Error Handling

Breakpoints in Activities
Handling Exceptions in the Host
Handling Exceptions in the Workflow
Transactions
Compensation

C#Visual StudioVisual Studio 2017VS2017Microsoft Visual Studio 2017Windows WorkflowWF 4.5Workflow Foundation