Practical Workflow
Services
Peter Goodman
Agenda
 Why Workflow?
 The Workflow Runtime
 Workflow Services
 Windows Server AppFabric
 Demo
Why Workflow?
 Visual programming model
 Declarative
 Highly Customizable
 Long running processes
 Human based
 Time...
The Workflow Runtime
Activity Model
 An Activity is the atomic unit of composition in a workflow
 Pass data into an acti...
 Each activity is scheduled by the runtime
 Each activity execution produces an instance
 Bookmarks pause execution and...
 Persistence stores the state of the workflow
 Tracking raises message events from workflow activities
 Custom extensio...
 Send and Receive activities
 WCF Infrastructure
 Each workflow definition is hosted as a WCF service
 Correlation is ...
 IIS administration console UI
 Workflow Management Service
 Wakes up instances
 Handles instance control requests
 E...
Demo
The Approval Workflow
Questions?
 http://blog.petegoo.com
 pete@petegoo.com
Feedback
Upcoming SlideShare
Loading in …5
×

Practical Workflow Services

1,078 views

Published on

An overview of using Workflow 4 Services to create long-running stateful services

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,078
On SlideShare
0
From Embeds
0
Number of Embeds
16
Actions
Shares
0
Downloads
19
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • About me
    ADERANT
    TAP – 18 months of WF
    Gave talks at Tech-Ed NZ 2010
  • Declarative – Focus on the WHAT rather than HOW

    Asynchronous – Value proposition somewhat compromised by the async feature in C#/VB vNext
  • Highly composable activity “tree”
  • Activity “Instances” are not usually dealt with but Workflow instances are

    Bookmarks are not really necessary to manipulate directly in WF services but is the mechanism by which the WCF runtime can interop with the WF

    Single “Scheduler” thread at any one time. This is the reason why async activities are so important. You want to keep the scheduler thread free.
  • Persistence provider for Sql server comes out of the box. Supports Sql Express and up.
  • No contract first in current release

    Host is the WorkflowServiceHost derived from the standard ServiceHost used in WCF

    Different types of correlation are possible though content-based correlation, introduced in WCF4, is the simplest.
  • Adds a new section to the IIS dashboard

    Allows control of instances and visibility of running instances as well as standard WCF services

    Event collection service forwards to a staging tables which is then normalised by some SQL jobs

    Powershell commands
  • About me
    ADERANT
    TAP – 18 months of WF
    Gave talks at Tech-Ed NZ 2010
  • Adds a new section to the IIS dashboard

    Allows control of instances and visibility of running instances as well as standard WCF services

    Event collection service forwards to a staging tables which is then normalised by some SQL jobs

    Powershell commands
  • Adds a new section to the IIS dashboard

    Allows control of instances and visibility of running instances as well as standard WCF services

    Event collection service forwards to a staging tables which is then normalised by some SQL jobs

    Powershell commands
  • Practical Workflow Services

    1. 1. Practical Workflow Services Peter Goodman
    2. 2. Agenda  Why Workflow?  The Workflow Runtime  Workflow Services  Windows Server AppFabric  Demo
    3. 3. Why Workflow?  Visual programming model  Declarative  Highly Customizable  Long running processes  Human based  Time based  Asynchronous
    4. 4. The Workflow Runtime Activity Model  An Activity is the atomic unit of composition in a workflow  Pass data into an activity via Arguments  Store data in Variables  An activity with no parent is a Workflow
    5. 5.  Each activity is scheduled by the runtime  Each activity execution produces an instance  Bookmarks pause execution and await some external influence  Thread, process, machine agile The Workflow Runtime Activity Execution
    6. 6.  Persistence stores the state of the workflow  Tracking raises message events from workflow activities  Custom extensions The Workflow Runtime Extensions
    7. 7.  Send and Receive activities  WCF Infrastructure  Each workflow definition is hosted as a WCF service  Correlation is used to find an instance of a workflow definition and the appropriate bookmark Workflow Services
    8. 8.  IIS administration console UI  Workflow Management Service  Wakes up instances  Handles instance control requests  Event Collection Service  Forwards tracking events to Monitoring Store Windows Server AppFabric
    9. 9. Demo The Approval Workflow
    10. 10. Questions?
    11. 11.  http://blog.petegoo.com  pete@petegoo.com Feedback

    ×