Date post: | 01-Apr-2015 |
Category: |
Documents |
Upload: | maura-terrill |
View: | 217 times |
Download: | 1 times |
WF 4.0: Extending Workflow With Custom Activities
matt winklerprogram manager
[email protected]://blogs.msdn.com/mwinkle
Matt WinklerProgram ManagerMicrosoft corporation
http://blogs.msdn.com/mwinkle
TL21
Workflow overview Activity overview Basic activity authoring Advanced activity authoring Activity designers
Agenda
Host (.exe, IIS, "Dublin", .NET Services, …)
WF Runtime Extensions
Tracking
Persistence
…
What Is Workflow?
Workflow programs coordinate work with minimal ceremony
Activities Runtime Tooling
ToolingVS
DesignerVS
DebuggerRehosted Designer
WorkflowActivity Library
Activity
Work
Data
Activity model and runtime
Control Flow activities
Flowchart Sequential State machine Rules
Activity LibraryCustom activities
Base Activity library
WCF messaging
Database PowerShell
Error handlingExpressions
Interop
Utilities
WF primitives
BPEL
Sharepoint Dynamics Systems center HPC Team Foundation
server<YOUR CODE HERE>
Compose and configure the vocabulary Unit of work not available out of the box Model custom control flow
Why Custom Activities?
Creating A Custom Activity Demo
demo
Activity Overview
CollectVotes
InArgument<string> Polling Place
InArgument<DateTime> ElectionDate
OutArgument<List<Vote>> Votes
Activities = Data
Sequence
CollectVotes
Polling Place
ElectionDate
Votes
AnalyzeVotes
Votes
Results
Variable<List<Votes>> Votes
Activities = Data
Calculate PiInArgument<Int64> DecimalPlaces
OutArgument<string> PiAsString
Execute
Completed
Atomic execution
Activities = Work
Prompt
InArgument<string> Question
OutArgument<string> Response
Execute
Completed
Bookmark Resume
Continuation, Long Running, or Reactive Execution
yield
Activities = Work
Call 2 friends
Call Ed Call Kenny
Execute
Completed
Composite execution
Schedule activity
Child completed
yield
Activities = Work
Executing Closed
Canceled
Faulted
Activity Lifecycle
Composing New Activities
demo
Advanced Activity Authoring Activity Data driven
Declares managed state (arguments, variables)
Execution logic is activities
WorkflowElement Declares managed state (arguments, variables)
Execution logic is opaque code
Interact directly with runtime
Activity Execution Context
Scheduling and control Bookmarks Resolving data Execution properties (Tx, Identity, etc) Host access Asynchronous I/O
Custom Execution Patterns
demo
Long Running Activities
demo
Creating Activity Designers
Customize developer experience Strongly leverage WPF data binding Loose coupling between runtime
and design time
Infrastructure
XAML
Model instance
Model item tree
WorkflowViewElement
WorkflowItemPresenter
WorkflowItemsPresenter
ExpressionTextBox
Creating Activity Designers
demo
Activities are the atoms of Workflow Activity = Data + Work Wide range of control over execution
Write activities!
Summary
One More Thing…
Resources
Breakout sessions TL17 – WF 4.0: A First Look TL06 – WCF 4.0: Building WCF Services With WF BB18 – “Dublin”: Hosting And Managing
Workflows And Services BB27 – .NET Services: Orchestrating Services And
Business Processes Using Cloud-Based Workflow BB57 – Dynamics AX: Building Business Process
Into Your Application http://msdn.microsoft.com/wf/future/ http://msdn.microsoft.com/wcf/future/ http://blogs.msdn.com/endpoint
Evals & Recordings
Please fill
out your
evaluation for
this session at:
This session will be available as a recording at:
www.microsoftpdc.com
Please use the microphones provided
Q&A
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market
conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.