DEV329
What’s New in WF4.5
Dave Cliffe
Program Manager
Microsoft Corporation
WF in WF4.* WF4.5
PULSE
.NET
Agenda
Why Workflow?
WF in .NET 4.5 & VS 2012
A Lap Around WF 4.5
Demos
Details about the features!
Q & A – throughout, if we don’t blab too much
Recap - Why Workflow?
Customizable
business
processes
Coordination of
long-running
work
Transparency
(*) screenshot from Aderant
Key Investments
WF 4.5
This session is
focused on
WF4.5 in VS
2012
AZR321 Building, Running, and
Managing Workflows in Windows
w Azure
By: Jurgen Willis
Thursday 6/14/2012 13:00 -
14:15
A Lap Around WF 4.5
Key new featuresAsk Feature
Expressions in the language of the project C# expressions D
Create workflow services based on an existing Contract-First D
contract
D
Authoring Better experience with Flowchart / State Machine
designer
Auto-connect, auto-insert,
pan D
Improvement Add comments to activities in the designer surface Annotations (designer) D
s Search integration in the workflow designer Search (designer)
Create state machine workflows State Machine D
Workflow
Basic activities
building blocksare
forshown in a tree-style
a versioning story outline WorkflowIdentity
Outline View
view D
Versioning Host several versions of a service side by side WFSH versioning support D
Update running instances to a new definition Dynamic Update D
Run my workflows in Partial Trust Partial Trust
Runtime Be able to plug my own expressions story Expressions Extensibility
Enhancement Better runtime performance VB expressions
performance
s
DEMO
Authoring
Improvements
pan, search, outline, annotations, auto-connect, auto-insert,
auto-surround with sequence, C# expressions
Contract-First Authoring
In WF 4 …
Contracts are inferred from the messaging activities
in the workflow
Contract-First Authoring
In WF 4.5 …
Implement your workflow from an existing contract
Validate that the contract is implemented
correctly/completely
DEMO
Contract-First
Authoring
Recap - WF 3.5 Persistence
Workflow Definition
(XOML)
Workflow Definition
(XOML)
Instance Data
Instance Data
Instance Store
WF 4 Persistence
Workflow Definition
(XAML)
Instance Data
Instance Data
Instance Store
WF 4 Persistence
Exception (?)
Workflow Definition
Workflow (v2)
(XAML)
Instance Data
Instance Data (v?)
Instance Store
WorkflowIdentity … to the rescue!
Associates an
Version Dynamiinstance with its
Side-by-
Mismatc c definition
Side
h UpdateRepresented by a
Name + Version
Persisted and
queryable as part
WorkflowIdentity of the instance
state
Enables
customizable
WF 4.5 Persistence
“My Workflow”
1.0.0.0
Instance Data
(1.0.0.0)
Instance Data for
“My Workflow”
1.0.0.0
Instance Store
Version Mismatch Exception
(Version
Mismatch)
“My Workflow”
1.0.0.0
2.0.0.0
Instance Data
(1.0.0.0)
Instance Data for
“My Workflow”
1.0.0.0
Instance Store
Side-by-Side Versioning Scenarios
PHASED-IN BUSINESS PROCESS CHANGE
Applications Started Before Applications Started After
12/31/2011 1/1/2012
Client
Receive
Application
Application Process
Receive
Side-by-Side Execution
Application Verify
Mortgage
Application
Income
Mortgage
Process
Approve
Application Approve
Application
Issue
Loan Issue
Loan
Side-by-Side
“My Workflow”
“My Workflow”
2.0.0.0
1.0.0.0
Instance Data
(1.0.0.0)
Instance Data for Instance Data
(2.0.0.0)
Instance Data for
“My Workflow”
“My Workflow”
1.0.0.0
2.0.0.0 Instance Store
DEMO
WorkflowServiceHost
Side-by-Side Versioning
Dynamic Update Scenarios
REQUIRED PROCESS CHANGE BUG FIX
Receive
Application
Application
Mortgage
Process
Approve
Application
Issue
Loan
Receive
Application Process
Application
Verify
Mortgage
Income
Approve
Application
Issue
Loan
Dynamic Update
CREATE UPDATE MAP
“My Workflow” “My Workflow”
1.0.0.0 2.0.0.0
Dynamic Update
APPLY UPDATE MAP
Instance Data for Instance Data for
“My Workflow” “My Workflow”
1.0.0.0 2.0.0.0
DEMO
Dynamic Update
Summary
WF4.5 addresses top customer painpoints!
Large workflow navigation
Designer productivity++
Contract-first authoring
Versioning, Versioning, Versioning
Workflow is a great platform for …
Customizable business processes
Coordinating long-running work
Authoring/managing transparent programs
Related Content
Breakout Sessions
AZR321 Building, Running, and Managing Workflows in Windows Azure
By: Jurgen Willis
Thursday 6/14/2012 13:00 - 14:15
Other Great Resources
• Samples: http://code.msdn.microsoft.com (keyword: WF 4.5)
• UserVoice: http://bit.ly/wfuservoice
• WF blog: http://blogs.msdn.com/workflowteam
• WF Dev Center: http://msdn.microsoft.com/wf
• Codeplex: http://wf.codeplex.com/
Find Me Later At… The Attendee Party!
DEV Track Resources
Visual Studio Home Page :: http
://www.microsoft.com/visualstudio/en-us
Somasegar’s Blog :: http://blogs.msdn.com/b/somasegar/
Jason Zander’s Blog :: http://blogs.msdn.com/b/jasonz/
Facebook :: http://www.facebook.com/visualstudio
Twitter :: http://twitter.com/#!/visualstudio
Resources
Learnin
g
Connect. Share. Discuss. Microsoft Certification & Training Resources
http://northamerica.msteched.com www.microsoft.com/learning
TechNe
t
Resources for IT Professionals Resources for Developers
http://microsoft.com/technet http://microsoft.com/msdn
Complete an evaluation on CommNet and enter to
win!
Please Complete an Evaluation
Your feedback is important!
Multiple
ways to
Evaluat
e Scan the
Session Tag
to evaluate
s this
session now
on
myTechEd
Mobile
© 2012 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.