Introducing WF

Document Sample
Introducing WF Powered By Docstoc
					Introduction to
Windows Workflow Foundation

                    Keith Pijanowski
                       Platform Strategy Advisor
                  Developer Platform Evangelism
                           Microsoft Corporation
Agenda

•   What is Workflow Foundation?
•   Introduction to the WF Development Environment
•   WF Activities
•   BizTalk and WF
•   Questions
Windows Workflow Foundation

              The workflow platform
            for Microsoft products and
           partner/customer ecosystem

  Single workflow technology for Microsoft
  A framework for building workflow into apps
    Part of .NET Framework 3.0 (formerly WinFX)
  Makes declarative workflow a mainstream paradigm



  Abbreviation: WF
What is a Workflow?

   A program declared as set of activities
      Coordinates people and software
      Has real-world control flow
      Runs durably and transparently
      Tolerates dynamic change


Like a flowchart…. or a state diagram…. or based on rules.
Visual Studio 2008
           and WF
Activity Basics

Activities are the building blocks of workflows

         The unit of execution, re-use and composition

         Basic activities are steps within a workflow

         Composite activities contains other activities

         Base Activity Library provides out-of-the-box activity set

         Partners and customers author custom activities
Summary Windows Workflow Foundation
    What is Workflow?         Visual Studio Designer

 Workflow is the software
 implementation of business   A Workflow
 process or business logic
                                  Activity
   What’s the value of
      Workflow?                  Activity Library
 Transparency
                               Workflow Runtime
 Flexibility                        Engine
 Extensibility
                                Runtime Services

                                Host Process
Building A Workflow
Categorizing the WF Activities

  Execution                  Coordination                    Events
  Code                       TransactionScope                EventDriven
  Sequence                   CompensatableTransactionScope   Listen
  Parallel                   Compensate                      HandleExternalEvent
  InvokeWorkflow             CompensatableSequence           EventHandlingScope
  CallExternalMethod         SynchronizationScope            Delay



                                                             State
  Flow                       Web Services
                                                             State
  IfElse                     InvokeWebService
                                                             StateInitialization
  While                      WebServiceInput
                                                             StateFinalization
  ConditionedActivityGroup   WebServiceOutput
                                                             SetState
  Policy                     WebServiceFault
  Replicator                 Send (.NET 3.5 only)
  Throw                      Receive (.NET 3.5 only)
  Suspend
  Terminate
  FaultHandler
Authoring Modes

Markup Only   Markup + Code       Code only

   XAML        XAML C#/VB          C#/VB




                                              Markup Only
              Workflow Compiler

                                                 XAML

               C#/VB Compiler




              NET Assembly              Workflow
                                        Instance

                                    Workflow Runtime
Workflow Execution


        Idle!                    Workflow Runtime

                    Workflow Instance


                                 Runtime Services

                        Loader                     Persistence


 XAML           Host Application



                                        Workflow
                                        Instance
Workflow and BizTalk Server
BizTalk Server                          Premium BPM server
                                          Distinct server product
            Accelerators
                             Business     Use in B2B, EAI, BPM scenarios
             Workflow
            Orchestration    Activity     Deployable solutions
Design                       Monitor
                                          Manageability, Scale-out
Tools       Messaging        And
                             Admin        Future version will migrate to
            Transformation   Tools        Windows Workflow Foundation for
            Adapters                      orchestration

                                        Workflow framework
                                          Future technology exposed via .NET
  Visual Studio Designer                  3.0
                                          Broad set of scenarios
                                          Used to build solutions
   Windows Workflow
   Foundation                             Enables manageability and scale-out
                                          in solutions
 .NET 3.0                                 Use for building workflow into apps
                                          or workflow enabled servers
                                                                           12
How to Choose?
BizTalk Server or Workflow Foundation
                 BizTalk Server provides workflow across
                 existing applications and between trading
                 partners as part of its business process and
                 integration feature set
BizTalk Server       “If you are integrating multiple applications with
EAI, B2B & BPM       some interaction that involves system workflow you
                     should use BizTalk Server”
                     “If you want runtime scalability, fault tolerance and
                     administration tools you should use BizTalk Server”




                 Windows Workflow Foundation is a
Windows          framework for adding workflow inside a
                 custom application
Workflow             “If you are building a complete application
Foundation           that includes workflow you should use
                     Windows Workflow Foundation”

                                                                             13
For More Information …

•   .NET Framework Technology Samples
•   WF on the Microsoft Developer Network
•   Microsoft .NET Framework Community
•   Windows Vista Technologies
Workflow Web Sites
                     MSDN® Workflow Page
                           Download the Microsoft®
                           Visual Studio® Extensions
                           Download 10 Hands-on
                           Labs
                           msdn.microsoft.com/workflow
                     Forums
                           Ask questions in the
                           forums
                           www.WindowsWorkflow.net/
                           Forums
                     Community Site
                           Download samples, tools,
                           and runtime service
                           components
                           wf.netfx3.com
                     MSDN Virtual Labs
                           msdn.microsoft.com/virtuallabs/N
                           ETFramework

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:6
posted:12/18/2011
language:
pages:16