SlideShare a Scribd company logo
1 of 20
Windows Workflow
Foundation

                                  Bruno Câmara
                      bruno.camara@agilior.pt
       http://www.agilior.pt/blogs/bruno.camara
           ISEL, Semana Informática 07 (2007)
.Net 3.0 Showcase
Agenda
What is Windows Workflow Foundation?
Architecture & Core concepts
Building Workflows
Introduction to Activities
Workflow Styles
Windows Workflow Foundation vision
 Windows Workflow Foundation is the programming
 model, engine and tools for quickly building workflow
         enabled applications on Windows.

  Single workflow technology for Windows
     Available to all customers of Windows
     Available for use across a broad range of scenarios
  Redefining workflow
     Extensible framework & API to build workflow centric products
     One technology for human and system workflow
  Take workflow mainstream
     Incremental learning for mainstream .NET developer
     Fundamental part of the Office 2007
     Strong workflow partner & solution ecosystem
.NET 3.0 and WF
Workflow Scenario Spectrum

                  Human Workflow                   System Workflow

 Participants: people, roles                        Participants: apps, services
 Flow style: flexible, dynamic                      Flow style: prescriptive, protocols
 Data: unstructured, documents                      Data: structured, transactional
       Information Worker
        Information Worker                                               m
                                                                         M
                                                                         …
                                                                         C
                                                                         h
                                                                         n
                                                                         u
                                                                         p
                                                                         p
                                                                         a
                                                                         y
                                                                         g
                                                                         S
                                                                         tm
                                                                          M
                                                                          …
                                                                          C
                                                                          h
                                                                          n
                                                                         iu
                                                                          p
                                                                          p
                                                                          a
                                                                          y
                                                                          g
                                                                         lS
                                                                          t
                                                                          i
                                                                          l   •
                                                                              •
       • Document Review…
       • Document Review…                                                     B
                                                                              n
                                                                              u
                                                                              B
                                                                              n
                                                                              u
                                                                              e
                                                                              e
                                                                              o
                                                                              s
                                                                              s
                                                                              s
                                                                              s
                                                                              s
                                                                              s
                                                                              tB
                                                                               n
                                                                               u
                                                                              iB
                                                                              iu
                                                                               n
                                                                               e
                                                                               e
                                                                               o
                                                                               s
                                                                               s
                                                                               s
                                                                               s
                                                                               s
                                                                               s
                                                                               t
                                                                               i
                                                                               i


                                 Line of Business Apps
                                 Line of Business Apps
            CRM   ERP     • Quote to Cash, Sales Automation…
                          • Quote to Cash, Sales Automation…
                                    IT Management
                                     IT Management
                        • New Hire Provisioning, Trouble Ticket,…
                        • New Hire Provisioning, Trouble Ticket,…
                                    .NET Developer
                                    .NET Developer
                           • Pageflow, Service Coordination…
                           • Pageflow, Service Coordination…

              Windows Workflow Foundation
Windows Workflow Foundation
                                                       Visual Designer
Key Concepts
  Workflows are a set of Activities
                                                   A Workflow
  Workflows run within a Host Process: any
  application or server
  Developers can build their own Custom            An Activity
  Activity Libraries
                                                 Custom Activity Library
Components
                                                        Windows
  Base Activity Library: Out-of-box activities
  and base for custom activities
                                                   Workflow Foundation
  Runtime Engine: Workflow execution and            Base Activity Library
  state management
  Runtime Services: Hosting flexibility and            Runtime Engine
  communication
  Visual Designer: Graphical and code-based           Runtime Services
  construction
                                                    Host Process
Workflow Basics
 A workflow is a class
using System.Workflow.Activities;

public class Workflow1 : SequentialWorkflow
{
}

  A workflow class may be defined in markup
<?Mapping XmlNamespace="Activities"
   ClrNamespace="System.Workflow.Activities"
   Assembly="System.Workflow.Activities" ?>

<SequentialWorkflow x:Class="MyWorkflow" xmlns="Activities"
   xmlns:x="Definition">
    …
</SequentialWorkflow>
Workflow Basics
    Workflow constructor configures contained
    activities (like forms & controls)
using System.Workflow.Activities;
public partial class Workflow1 : SequentialWorkflow {
   public Workflow1()
   {
        InitializeComponent();
   }
}

public sealed partial class Workflow1 : SequentialWorkflow {
   private Delay delay1;
   private void InitializeComponent()
       {
        this.delay1 = new System.Workflow.Activities.Delay();
        this.delay1.ID = “delay1";
        this.delay1.TimeoutDuration =
                               System.TimeSpan.Parse("00:00:05");
        this.Activities.Add(this.delay1);
        this.ID = "Workflow1";
   }
}
Workflow Authoring Modes
 Markup Only           Markup and            Code Only         Application
 “Declarative”         Code                                    Generated
                                                             App creates activity
     XAML             XAML C#/VB               C#/VB         tree and serializes

• XML defines         • XML defines         • Code creates
workflow structure    workflow              workflow
logic and data flow   • Code-beside         in constructor   XAML C#/VB
                      defines extra logic



                             Workflow Compiler
                                  wfc.exe
                                                               .NETassembly
                               C#/VB Compiler                 •   ctor defines
                                                                  workflow
Building a Workflow
What are Activities?
 An activity is a step in a workflow
   Has properties and events that are programmable within
   your workflow code
   Has methods (e.g. Execute) that are only invoked by the
   workflow runtime
 Think of Forms & Controls
   Activity == Controls
   Workflows == Forms
 Activities fall under two broad categories
   Basic – steps that “do work”
   Composite – manage a set of child activities
Activities: An Extensible Approach
      Base Activity               Custom Activity            Domain-Specific
                                     Libraries              Workflow Packages
        Library




                                                      Compliance
                                                                              CRM
                            Compose        Extend
                            activities     activity
   Base Activity
   Library                      Author new            RosettaNet
                                activity                                    IT Mgmt
OOB activities,
workflow types,                Create/Extend/
base types                     Compose activities         Vertical-specific
                                                          activities & workflows
General-purpose                App-specific
                               building blocks            Best-practice IP &
Activity libraries define                                 Knowledge
workflow constructs            First-class citizens
Expense Reporting
Workflow Application
Flexible Control Flow
Sequential Workflow                    State Machine Workflow
            Sequential                                  External
  Step1
            structure               Event      State1   events drive
            prescribes                                  processing
  Step2                              Event     State2   order
            processing order
• Prescriptive, formal                • Reactive, event-driven
• Automation scenarios                • Skip/re-work, exception
• Flowchart metaphor                    handling
                                      • Graph metaphor
                   Rules-driven Activities
               Rule1      Step1
                                  Rules + data state
            Data                  drive processing
               Rule2      Step2   order
               • Data-driven
               • Simple Conditions, complex Policies
               • Constrained Activity Group
A State Machine
Workflow
Availability & Packaging
   Microsoft .Net Framework 3.0
      Windows Communication Foundation (“Indigo”)
      Windows Presentation Foundation (“Avalon”)
      Windows Workflow Foundation (“WF”)
      Windows CardSpace
   Support for Windows XP & Windows Server 2003
   Licensed as part of Windows
Summary
 A single workflow technology for Windows
     Platform level workflow framework for use within Microsoft products &
     ISV applications
     Will be used by BizTalk Server, Office2007, MBS & other Microsoft
     client/server products
     Available to all Windows customers

 Microsoft is redefining workflow
    Unified technology for System & Human workflow
    Multiple styles: sequential, rules-based, state machine
    Supports dynamic interaction

 Microsoft is taking workflow mainstream
    Consistent and familiar programming model for reaching mainstream
    application developer
    Available to millions of end-users through Office 2007
    Extensible platform for ISVs
Windows Workflow Foundation
Resources     MSDN Workflow Page
                        ®

                  Microsoft® Visual Studio® Extensions
                  Download Hands-on Labs
                  http://msdn.microsoft.com/workflow
                Community Site
                  Subscribe to the RSS feed for news & updates
                  Find, download, & register Activities
                  Find blogs, screencasts, whitepapers, and other
                  resources
                  Download samples, tools, and runtime service
                  components
                  http://wf.netfx3.com/
                Forums
                  Ask questions in the forums
                  http://www.WindowsWorkflow.net/Forums
Q&A

More Related Content

What's hot

Plan601E Session 4 Presentation
Plan601E Session 4 PresentationPlan601E Session 4 Presentation
Plan601E Session 4 Presentation
Michael Haggerty
 
Conversation Clusters: Grouping Conversation Through Human Computer Dialog
Conversation Clusters: Grouping Conversation Through Human Computer DialogConversation Clusters: Grouping Conversation Through Human Computer Dialog
Conversation Clusters: Grouping Conversation Through Human Computer Dialog
Tony Bergstrom
 
2011美國創新事業規劃研修團分享
2011美國創新事業規劃研修團分享2011美國創新事業規劃研修團分享
2011美國創新事業規劃研修團分享
基欽 劉
 
Dental amalgam
Dental amalgamDental amalgam
Dental amalgam
Zirgi Rana
 
Egkekrimena sxedia comenius 2012
Egkekrimena sxedia comenius 2012Egkekrimena sxedia comenius 2012
Egkekrimena sxedia comenius 2012
sfikasp
 
Designing learning spaces to meet the changing needs and expectations of stud...
Designing learning spaces to meet the changing needs and expectations of stud...Designing learning spaces to meet the changing needs and expectations of stud...
Designing learning spaces to meet the changing needs and expectations of stud...
Dan Munnerley
 
5.1.3 poster researchin findings
5.1.3 poster researchin findings5.1.3 poster researchin findings
5.1.3 poster researchin findings
AbisolaCm
 

What's hot (20)

Poultry pen
Poultry penPoultry pen
Poultry pen
 
Dave Folio
Dave FolioDave Folio
Dave Folio
 
Plan601E Session 4 Presentation
Plan601E Session 4 PresentationPlan601E Session 4 Presentation
Plan601E Session 4 Presentation
 
Conversation Clusters: Grouping Conversation Through Human Computer Dialog
Conversation Clusters: Grouping Conversation Through Human Computer DialogConversation Clusters: Grouping Conversation Through Human Computer Dialog
Conversation Clusters: Grouping Conversation Through Human Computer Dialog
 
Transport and mobility
Transport and mobilityTransport and mobility
Transport and mobility
 
Design4 services HCDI Seminar Sangiorgi
Design4 services HCDI Seminar SangiorgiDesign4 services HCDI Seminar Sangiorgi
Design4 services HCDI Seminar Sangiorgi
 
Bas04 info
Bas04 infoBas04 info
Bas04 info
 
2011美國創新事業規劃研修團分享
2011美國創新事業規劃研修團分享2011美國創新事業規劃研修團分享
2011美國創新事業規劃研修團分享
 
Dental amalgam
Dental amalgamDental amalgam
Dental amalgam
 
OpenID Foundation Japan Chapter Announcement
OpenID Foundation Japan Chapter AnnouncementOpenID Foundation Japan Chapter Announcement
OpenID Foundation Japan Chapter Announcement
 
Siltation
SiltationSiltation
Siltation
 
Brocade Migration Example
Brocade Migration ExampleBrocade Migration Example
Brocade Migration Example
 
Egkekrimena sxedia comenius 2012
Egkekrimena sxedia comenius 2012Egkekrimena sxedia comenius 2012
Egkekrimena sxedia comenius 2012
 
Blackhawk Mines Corp. Marmajito Mining Sector
Blackhawk Mines Corp. Marmajito Mining SectorBlackhawk Mines Corp. Marmajito Mining Sector
Blackhawk Mines Corp. Marmajito Mining Sector
 
Domagoj Margetic
Domagoj MargeticDomagoj Margetic
Domagoj Margetic
 
Cold frame
Cold frameCold frame
Cold frame
 
Ed Burns @ FOWA 08
Ed Burns @ FOWA 08Ed Burns @ FOWA 08
Ed Burns @ FOWA 08
 
Pp booklet 2
Pp booklet 2Pp booklet 2
Pp booklet 2
 
Designing learning spaces to meet the changing needs and expectations of stud...
Designing learning spaces to meet the changing needs and expectations of stud...Designing learning spaces to meet the changing needs and expectations of stud...
Designing learning spaces to meet the changing needs and expectations of stud...
 
5.1.3 poster researchin findings
5.1.3 poster researchin findings5.1.3 poster researchin findings
5.1.3 poster researchin findings
 

Similar to Introduction to windows workflow foundation (2007)

Week4 presentaion
Week4 presentaionWeek4 presentaion
Week4 presentaion
UNSW
 
BernatC ScADS-2012
BernatC ScADS-2012BernatC ScADS-2012
BernatC ScADS-2012
wide_glide
 
Sarigiannis biological connectivity in cra
Sarigiannis biological connectivity in craSarigiannis biological connectivity in cra
Sarigiannis biological connectivity in cra
envelab
 
Dave Folio G D 8
Dave Folio  G D 8Dave Folio  G D 8
Dave Folio G D 8
Dave Lilly
 
5.1.3 poster researchin findings
5.1.3 poster researchin findings5.1.3 poster researchin findings
5.1.3 poster researchin findings
AbisolaCm
 
art of presentation Map of Jamies Yam
art of presentation Map of Jamies Yamart of presentation Map of Jamies Yam
art of presentation Map of Jamies Yam
Jamies Yam
 
Supplement Comparison chart
Supplement Comparison chartSupplement Comparison chart
Supplement Comparison chart
902sports
 
Exchange2010_HubTransportExtensibility
Exchange2010_HubTransportExtensibilityExchange2010_HubTransportExtensibility
Exchange2010_HubTransportExtensibility
Selva G Kumar
 
Re on farm survey outline results
Re on farm  survey outline resultsRe on farm  survey outline results
Re on farm survey outline results
Bioenergy Crops
 
Personas 2 0 (World Usability Day 2007)
Personas 2 0 (World Usability Day 2007)Personas 2 0 (World Usability Day 2007)
Personas 2 0 (World Usability Day 2007)
Raphael De Robiano
 

Similar to Introduction to windows workflow foundation (2007) (17)

Week4 presentaion
Week4 presentaionWeek4 presentaion
Week4 presentaion
 
BernatC ScADS-2012
BernatC ScADS-2012BernatC ScADS-2012
BernatC ScADS-2012
 
Sarigiannis biological connectivity in cra
Sarigiannis biological connectivity in craSarigiannis biological connectivity in cra
Sarigiannis biological connectivity in cra
 
Digital signature
Digital signatureDigital signature
Digital signature
 
Dave Folio G D 8
Dave Folio  G D 8Dave Folio  G D 8
Dave Folio G D 8
 
Wetland Mapping & Conservation Efforts in the Fort Nelson area
Wetland Mapping & Conservation Efforts in the Fort Nelson areaWetland Mapping & Conservation Efforts in the Fort Nelson area
Wetland Mapping & Conservation Efforts in the Fort Nelson area
 
5.1.3 poster researchin findings
5.1.3 poster researchin findings5.1.3 poster researchin findings
5.1.3 poster researchin findings
 
art of presentation Map of Jamies Yam
art of presentation Map of Jamies Yamart of presentation Map of Jamies Yam
art of presentation Map of Jamies Yam
 
Supplement Comparison chart
Supplement Comparison chartSupplement Comparison chart
Supplement Comparison chart
 
Bas03 seminar
Bas03 seminarBas03 seminar
Bas03 seminar
 
300
300300
300
 
Personal Branding for Corporate Success
Personal Branding for Corporate SuccessPersonal Branding for Corporate Success
Personal Branding for Corporate Success
 
Exchange2010_HubTransportExtensibility
Exchange2010_HubTransportExtensibilityExchange2010_HubTransportExtensibility
Exchange2010_HubTransportExtensibility
 
Social Media Branding by Dawn Jensen
Social Media Branding by Dawn JensenSocial Media Branding by Dawn Jensen
Social Media Branding by Dawn Jensen
 
Re on farm survey outline results
Re on farm  survey outline resultsRe on farm  survey outline results
Re on farm survey outline results
 
Re on farm survey outline results
Re on farm  survey outline resultsRe on farm  survey outline results
Re on farm survey outline results
 
Personas 2 0 (World Usability Day 2007)
Personas 2 0 (World Usability Day 2007)Personas 2 0 (World Usability Day 2007)
Personas 2 0 (World Usability Day 2007)
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 

Introduction to windows workflow foundation (2007)

  • 1. Windows Workflow Foundation Bruno Câmara bruno.camara@agilior.pt http://www.agilior.pt/blogs/bruno.camara ISEL, Semana Informática 07 (2007)
  • 3. Agenda What is Windows Workflow Foundation? Architecture & Core concepts Building Workflows Introduction to Activities Workflow Styles
  • 4. Windows Workflow Foundation vision Windows Workflow Foundation is the programming model, engine and tools for quickly building workflow enabled applications on Windows. Single workflow technology for Windows Available to all customers of Windows Available for use across a broad range of scenarios Redefining workflow Extensible framework & API to build workflow centric products One technology for human and system workflow Take workflow mainstream Incremental learning for mainstream .NET developer Fundamental part of the Office 2007 Strong workflow partner & solution ecosystem
  • 6. Workflow Scenario Spectrum Human Workflow System Workflow Participants: people, roles Participants: apps, services Flow style: flexible, dynamic Flow style: prescriptive, protocols Data: unstructured, documents Data: structured, transactional Information Worker Information Worker m M … C h n u p p a y g S tm M … C h n iu p p a y g lS t i l • • • Document Review… • Document Review… B n u B n u e e o s s s s s s tB n u iB iu n e e o s s s s s s t i i Line of Business Apps Line of Business Apps CRM ERP • Quote to Cash, Sales Automation… • Quote to Cash, Sales Automation… IT Management IT Management • New Hire Provisioning, Trouble Ticket,… • New Hire Provisioning, Trouble Ticket,… .NET Developer .NET Developer • Pageflow, Service Coordination… • Pageflow, Service Coordination… Windows Workflow Foundation
  • 7. Windows Workflow Foundation Visual Designer Key Concepts Workflows are a set of Activities A Workflow Workflows run within a Host Process: any application or server Developers can build their own Custom An Activity Activity Libraries Custom Activity Library Components Windows Base Activity Library: Out-of-box activities and base for custom activities Workflow Foundation Runtime Engine: Workflow execution and Base Activity Library state management Runtime Services: Hosting flexibility and Runtime Engine communication Visual Designer: Graphical and code-based Runtime Services construction Host Process
  • 8. Workflow Basics A workflow is a class using System.Workflow.Activities; public class Workflow1 : SequentialWorkflow { } A workflow class may be defined in markup <?Mapping XmlNamespace="Activities" ClrNamespace="System.Workflow.Activities" Assembly="System.Workflow.Activities" ?> <SequentialWorkflow x:Class="MyWorkflow" xmlns="Activities" xmlns:x="Definition"> … </SequentialWorkflow>
  • 9. Workflow Basics Workflow constructor configures contained activities (like forms & controls) using System.Workflow.Activities; public partial class Workflow1 : SequentialWorkflow { public Workflow1() { InitializeComponent(); } } public sealed partial class Workflow1 : SequentialWorkflow { private Delay delay1; private void InitializeComponent() { this.delay1 = new System.Workflow.Activities.Delay(); this.delay1.ID = “delay1"; this.delay1.TimeoutDuration = System.TimeSpan.Parse("00:00:05"); this.Activities.Add(this.delay1); this.ID = "Workflow1"; } }
  • 10. Workflow Authoring Modes Markup Only Markup and Code Only Application “Declarative” Code Generated App creates activity XAML XAML C#/VB C#/VB tree and serializes • XML defines • XML defines • Code creates workflow structure workflow workflow logic and data flow • Code-beside in constructor XAML C#/VB defines extra logic Workflow Compiler wfc.exe .NETassembly C#/VB Compiler • ctor defines workflow
  • 12. What are Activities? An activity is a step in a workflow Has properties and events that are programmable within your workflow code Has methods (e.g. Execute) that are only invoked by the workflow runtime Think of Forms & Controls Activity == Controls Workflows == Forms Activities fall under two broad categories Basic – steps that “do work” Composite – manage a set of child activities
  • 13. Activities: An Extensible Approach Base Activity Custom Activity Domain-Specific Libraries Workflow Packages Library Compliance CRM Compose Extend activities activity Base Activity Library Author new RosettaNet activity IT Mgmt OOB activities, workflow types, Create/Extend/ base types Compose activities Vertical-specific activities & workflows General-purpose App-specific building blocks Best-practice IP & Activity libraries define Knowledge workflow constructs First-class citizens
  • 15. Flexible Control Flow Sequential Workflow State Machine Workflow Sequential External Step1 structure Event State1 events drive prescribes processing Step2 Event State2 order processing order • Prescriptive, formal • Reactive, event-driven • Automation scenarios • Skip/re-work, exception • Flowchart metaphor handling • Graph metaphor Rules-driven Activities Rule1 Step1 Rules + data state Data drive processing Rule2 Step2 order • Data-driven • Simple Conditions, complex Policies • Constrained Activity Group
  • 17. Availability & Packaging Microsoft .Net Framework 3.0 Windows Communication Foundation (“Indigo”) Windows Presentation Foundation (“Avalon”) Windows Workflow Foundation (“WF”) Windows CardSpace Support for Windows XP & Windows Server 2003 Licensed as part of Windows
  • 18. Summary A single workflow technology for Windows Platform level workflow framework for use within Microsoft products & ISV applications Will be used by BizTalk Server, Office2007, MBS & other Microsoft client/server products Available to all Windows customers Microsoft is redefining workflow Unified technology for System & Human workflow Multiple styles: sequential, rules-based, state machine Supports dynamic interaction Microsoft is taking workflow mainstream Consistent and familiar programming model for reaching mainstream application developer Available to millions of end-users through Office 2007 Extensible platform for ISVs
  • 19. Windows Workflow Foundation Resources MSDN Workflow Page ® Microsoft® Visual Studio® Extensions Download Hands-on Labs http://msdn.microsoft.com/workflow Community Site Subscribe to the RSS feed for news & updates Find, download, & register Activities Find blogs, screencasts, whitepapers, and other resources Download samples, tools, and runtime service components http://wf.netfx3.com/ Forums Ask questions in the forums http://www.WindowsWorkflow.net/Forums
  • 20. Q&A