News

Webinars from Spindustry on SharePoint, MS Teams, and Power BI

Spindustry offers a variety of ways to learn more about solutions to benefit your business. Below is a list of upcoming webinars or pre-recorded sessions that we hope you find helpful.

Five Benefits of Live Instructor Led Training

Five Benefits of Live Instructor Led Training

Experts still agree that there are no viable replacements for having a live professional in the room during training sessions.

Spindustry Training Offers SharePoint Governance Consulting

Avoid costly, time consuming mistakes with your SharePoint installation.


CONTACT US
Training partners

Spindustry Training

spindustrytraining.com - (515) 334-9556

Bookmark and Share

Windows Workflow Foundation Using C#

Course Code: ITC-WWF
Length: 4 Days
Tuition: $2,495.00

Schedule for this Course

There are no dates scheduled for this course.
If you would like to be added to the wait list for this class Click Here

Course Description:

Microsoft’s Windows Workflow Foundation (WF) provides a framework for creating scalable applications consisting of independent program units called activities. WF 4 was a major rewrite of this technology, offering significantly higher performance andmaking it easier to create and execute workflow applications. WF 4.5 contains new activities, designer capabilities, and a new workflow development model (state machines). It also supports the use of C# expressions in C# workflows. This four-day course covers WF 4.5 and uses Visual Studio 2015, which provides a visual designer for creating workflows.The course begins with an overview of the concepts of workflow and the programming model provided by WF. The essentials of WF programming are then covered followed by a systematic treatment of the major features of WF, including the Built-In Activity Library. Primitive and control flow activities are discussed, and the alternatives to hosting workflows are covered. Collection and parallel activities are covered. The creation of custom activities, both using the designer and code, is explained. Flowchart and state machine activities are covered. Persistence and bookmarks are discussed. Workflow Services, using Windows Communication Foundation (WCF) is covered. The course concludes with a discussion of debugging, error handling, transactions and compensation

Audience: Experienced application developers and architects responsible for Windows applications in a Microsoft environment.

Prerequisites

Experience programmingin the .NET framework, C# , and be familiar with the Visual Studio development environment.

Course Outline:

Workflow Foundation Conceptual Overview

  • What is Workflow?
  • Windows Workflow Foundation
  • Workflows
  • Activities
  • Standard Activities
  • Runtime Services
  • Workflow Business Scenario
  • High Level Workflow
  • Details of While Activity
  • Structure of the Solution
  • Orders Folder
  • Manual Step in the Verification
  • Main Console Display
  • Issues Folder
  • Invoices Folder
  • Learning Microsoft’s WF
  • Windows Workflow Foundation 3
  • Orders Workflow in WF 3
  • Windows Workflow Foundation

Getting Started with WF 4.5

  • Workflow Structure
  • Minimal Workflow Program
  • Sequence Activity
  • Visual Studio Workflow Projects
  • Workflow Designer Demo
  • Variables
  • Assign Activity
  • HelloAssign Workflow
  • C# and Visual Basic Expressions
  • Arguments
  • Control Flow Activities
  • While Activity

Primitive and Control Flow Activities

  • Built-In Primitive Activities
  • InvokeMethod (Static)
  • Workflow (Static InvokeMethod)
  • Variables in the Workflow
  • InvokeMethod (Instance)
  • Workflow (Instance InvokeMethod)
  • Invoking .NET Framework Library
  • Input in Workflows
  • Delay Activity
  • Control Flow Activities
  • Parallel
  • If
  • If... Else
  • While
  • DoWhile
  • Switch

Custom Activities

  • Why Custom Activities?
  • Authoring Custom Activities
  • Arguments in Custom Activities
  • Activity Class Hierarchy
  • CodeActivity
  • CodeActivityContext
  • CodeActivity
  • Composing Existing Activities

Workflow Hosting

  • WorkflowInvoker
  • Specifying Input to a Workflow
  • Using Dictionaries
  • Output Argument
  • Invoking a Generic Activity
  • Result Output Argument
  • Reusing a Workflow
  • Workflow Timeout
  • Timeout with Idle Time
  • Long Computation without Idle Time
  • Invoking the Long Computation
  • Long Computation with Timeout
  • Hosting a Workflow in Windows
  • Windows Host Code
  • WorkflowInvoker Instance Methods
  • WorkflowInvoker AsynchronousMethods
  • HelloAsync Code (Invoker)
  • Effect of Sleep
  • Workflow Application
  • Thread Synchronization
  • Arguments
  • HelloAsync Code (Application)
  • WorkflowApplication Delegates
  • Manual Control of Workflows
  • Stopping Workflow Execution
  • Enqueue Workflow
  • Dequeue Workflow
  • Host Code for Enqueue Workflow
  • Host Code for Dequeue Workflow
  • Hosting a Workflow in ASP.NET
  • ASP.NET Workflow Host

Collection and Parallel Activities

  • Collection Activities
  • Top-Level Workflow
  • Process Command Activity
  • Add and Show
  • Remove and Clear
  • ForEach Activity
  • ParallelForEach
  • Using ForEach
  • Using ParallelForEach
  • Using AsyncCodeActivity Host Code
  • Asynchronous Activities in WF
  • Factor.cs
  • FactorNumber.cs
  • Async Coding: Begin Execute
  • Async Coding: End Execute

More about Custom Activities

  • Waiting for Input
  • Bookmarks
  • NativeActivity
  • GetTwoInt Custom Activity
  • Host Program
  • Passing Data on Resume
  • Bookmark Options
  • Bookmarks and Threads
  • Threads in Host Code
  • Threads in Workflow
  • A Compute Intensive Workflow
  • EnqueueLoop
  • DequeueLoop
  • FactorConsoleWF
  • More Experiments
  • Pick Activity
  • Get Check and Answer
  • Set Timer

Flowchart and State Machine

  • Workflow Modeling Styles
  • Flowchart Activities
  • Flowchart Acitivity Designer
  • Auto-Connect
  • Using FlowDecision
  • Flowchart and Custom Activities
  • State Machine Workflows in WF4.5
  • State Machine Workflow Modeling
  • Power On Transition
  • TransitionCommand Trigger
  • Warming State
  • Heated TransitionHost Program
  • State Machine Activity Designer
  • Timer in the Math Game
  • Do Problem StateTime
  • Up Transition
  • Time Out State
  • Complete Transaction
  • Threading Issue
  • Threading Issue Resolved
  • Shared Trigger
  • Echo Transition
  • Quit Transition

Persistence

  • Long Running Workflows
  • Persistence and Bookmarks
  • Workflow Persistence in WF 4.5
  • SQL Server Persistence Database
  • Host Code to Enable Persistence
  • AutoResetEvent
  • PersistableIdle Event
  • How to Persist a Workflow
  • Loading a Persisted Workflow
  • StartAndUnloadInstance()
  • LoadAndCompleteInstance()
  • Stopping and Starting the Host
  • StartWorkflow
  • Loading After Data Available
  • InitNames
  • GetString
  • String Commands
  • Host Program

Workflow Services

  • What is WCF?
  • WCF Services
  • WCF = ABC Address, Binding, Contract
  • Workflow Services
  • Messaging Activities
  • Messaging Activity Templates
  • IIS Express Hosting
  • WCF Test Client
  • Configuration Manager
  • Workflow Services (Cont’d)
  • Multiple Operations
  • Multiple Operations via Parallel
  • Hosting a Workflow Service

Debugging and Error Handling

  • Debugging Workflows
  • Control Flow and Flowchart
  • Breakpoint in XAMLExceptions
  • Account and Bank Classes
  • Use of Dictionary
  • Deposit and Withdraw
  • Code Activities
  • Composite Activities
  • Top-Level Workflow
  • Host Program
  • Unhandled Exceptions
  • Using WorkflowApplication
  • TryCatch Activity
  • Transactions
  • Compensation
  • No Compensation
  • Using CompensationTransfer.xaml
  • Compensable Withdrawal
  • Compensation Token
  • Canceling the Workflow
  • Exceptions and Compensation
  • Compensation Not Performed

back to top