SlideShare a Scribd company logo
1 of 24
WF 4.5
   What’s New in Windows Workflow 4.5?

Eran Stiller
Senior Software Architect,
Founder
March 20, 2013
About Me
•   Software architect, consultant and instructor
•   Technology addict
•   10 years of experience
•   .NET and Native Windows Programming
•   Specializes in large-scale, server-side, highly-concurrent systems
•   Co-Founder at CodeValue Ltd.
•   http://stiller.co.il/blog
Agenda
• What is WF?
• New in WF 4.5
  – Workflow Identity & Versioning
  – Contract-First Workflow Service
  – Dynamic Update
  – C# Expressions
  – Activity Delegates
  – Misc.
• Code! Code!! Code!!!
What is WF?
What is a Workflow?



                                       http://bit.ly/mNv50R




                http://bit.ly/l3ghxT
What is a Workflow?
• A sequence of connected steps
• Often an abstraction of real work
• Can usually be depicted in a graphic manner

            Step 1


                          Step 2


                                         Step 3
Windows Workflow Foundation
• Microsoft technology released as part of the .NET Framework
  – WF 3 as part of .NET 3.0 (2007)
  – WF 3.5 as part of .NET 3.5 (2008)
  – WF 4 as part of .NET 4.0 (2009)
     • WF 4 Update as part of .NET 4.0 Platform Update 1 (2011)
  – WF 4.5 as part of .NET 4.5 (2012)
• Provides a way to model software workflows
  – API
  – Workflow Engine
  – Workflow Designer
The Challenge
New in WF 4.5
Workflow Identity & Versioning
• Workflows are long-running
• Workflows are dynamic
• What happens when workflows change?
  – Major caveat in WF 4.0
  – No built-in solution to handle any versioning scenario
  – Self made solutions are difficult
• WF 4.5 ships with a built-in way to handle versioning
  – WorkflowIdentity
Workflow Identity & Versioning
• New workflows are created with a new version
  – Older workflows keep using the old versions
  – Side-by-side
• Suitable for all hosting scenarios
  – Workflow Applications
  – Workflow Services
     • Self-Host
     • Web Applications
Workflow Identity & Versioning
Contract-First Workflows
• Workflow Services implement WCF service contracts
  – In WF 4.0 contracts are defined within the workflow itself
     • Receive & Send Activities
  – Implemented contracts must match existing service contracts for
    compatibility
• WF 4.5 provides a limited ability to implement existing contracts
  – Only from WCF Web Applications
     • Workaround available
Contract-First Workflows
Dynamic Update
• Workflow side-by-side versioning operates on new workflow
  instances
  – Old instances maintain old versions
• Dynamic updates allow us to transform active instances into a
  newer version
  – Step 1 – Prepare an update map
  – Step 2 – Apply update map on required instances
  – Step 3 – Load instances with new WF definition
Dynamic Update
C# Expressions
• WF 4 only allowed VB expressions
• WF 4.5 allows both VB and C# expressions
• By default:
  – VB projects use VB expressions
  – C# projects use C# expressions
• Loading dynamic workflows with expressions from XAML
  requires compilation
• The re-hosted designer does not support C# expressions
C# Expressions
Activity Delegates
• In WF 4 designing activities which take Activity Delegates took
  a lot of code
• WF 4.5 has built-in designer support
Activity Delegates
Miscellaneous Improvements
• Activities
   – NoPersist Scope
   – New Flowchart Capabilities
   – State machine workflows
• Designer
   –   Designer Search
   –   Auto surround with sequence
   –   Pan mode
   –   Multi-select
   –   Outline view
   –   Auto-connect and auto-insert in Flowchart and State-Machine
   –   Designer Annotations
• Design time background validation
• View State in separate location in XAML
Summary
• Workflow Foundation (WF) is Microsoft’s implementation of a
  workflow solution
• Targets authoring long-running, dynamic, scalable & unified
  applications
• WF 4.5 brings many improvements to the table
  –   Workflow Identity & Versioning
  –   Contract-First Workflow Service
  –   Dynamic Update
  –   C# Expressions
  –   Activity Delegates
  –   And more…
Resources
• My Blog
  – http://stiller.co.il/blog
• Workflow Foundation
  – http://msdn.microsoft.com/en-us/vstudio/jj684582.aspx
• What’s new in WF 4.5
  – http://msdn.microsoft.com/en-us/library/hh305677.aspx
Presenter contact details
c: +972-54-6160646
e: erans@codevalue.net
b: stiller.co.il/blog
w: www.codevalue.net

More Related Content

Viewers also liked

Edvie Online Live Classes for Class 6 to 10
Edvie Online Live Classes for Class 6 to 10Edvie Online Live Classes for Class 6 to 10
Edvie Online Live Classes for Class 6 to 10
edvie online
 
JILIOW ASSIGNMENT
JILIOW ASSIGNMENTJILIOW ASSIGNMENT
JILIOW ASSIGNMENT
Ali jili'ow
 
A Study of Advertising Effectiveness Final
A Study of Advertising Effectiveness FinalA Study of Advertising Effectiveness Final
A Study of Advertising Effectiveness Final
krishna bhatt
 
Ankur research report marketing
Ankur  research report marketingAnkur  research report marketing
Ankur research report marketing
Ankur pratap singh
 
Oratie Jack van der Veen voor de EVO-leerstoel
Oratie Jack van der Veen voor de EVO-leerstoelOratie Jack van der Veen voor de EVO-leerstoel
Oratie Jack van der Veen voor de EVO-leerstoel
evofenedex
 
Testimonial Letter for Angi Baleta
Testimonial Letter for Angi BaletaTestimonial Letter for Angi Baleta
Testimonial Letter for Angi Baleta
Angi Baleta
 

Viewers also liked (19)

Your Passions & Your Profession
Your Passions & Your ProfessionYour Passions & Your Profession
Your Passions & Your Profession
 
Resumen 1
Resumen 1Resumen 1
Resumen 1
 
Como fazer cocada simples
Como fazer cocada simplesComo fazer cocada simples
Como fazer cocada simples
 
Edvie Online Live Classes for Class 6 to 10
Edvie Online Live Classes for Class 6 to 10Edvie Online Live Classes for Class 6 to 10
Edvie Online Live Classes for Class 6 to 10
 
Verbs with adverbs and prepositions
Verbs with adverbs and prepositionsVerbs with adverbs and prepositions
Verbs with adverbs and prepositions
 
JILIOW ASSIGNMENT
JILIOW ASSIGNMENTJILIOW ASSIGNMENT
JILIOW ASSIGNMENT
 
A Study of Advertising Effectiveness Final
A Study of Advertising Effectiveness FinalA Study of Advertising Effectiveness Final
A Study of Advertising Effectiveness Final
 
Ankur research report marketing
Ankur  research report marketingAnkur  research report marketing
Ankur research report marketing
 
Oratie Jack van der Veen voor de EVO-leerstoel
Oratie Jack van der Veen voor de EVO-leerstoelOratie Jack van der Veen voor de EVO-leerstoel
Oratie Jack van der Veen voor de EVO-leerstoel
 
Tugas Kelompok 4 - Teknik Tegangan Tinggi - Prof.Ir. Syamsir Abduh , MM, Ph.D...
Tugas Kelompok 4 - Teknik Tegangan Tinggi - Prof.Ir. Syamsir Abduh , MM, Ph.D...Tugas Kelompok 4 - Teknik Tegangan Tinggi - Prof.Ir. Syamsir Abduh , MM, Ph.D...
Tugas Kelompok 4 - Teknik Tegangan Tinggi - Prof.Ir. Syamsir Abduh , MM, Ph.D...
 
NamSor for GEOINT
NamSor for GEOINTNamSor for GEOINT
NamSor for GEOINT
 
PLC (Programmable Logic Controller) S.M.54
PLC (Programmable Logic Controller) S.M.54PLC (Programmable Logic Controller) S.M.54
PLC (Programmable Logic Controller) S.M.54
 
Testimonial Letter for Angi Baleta
Testimonial Letter for Angi BaletaTestimonial Letter for Angi Baleta
Testimonial Letter for Angi Baleta
 
ОСОБЕННОСТИ ОРГАНИЗАЦИИ СПОРТИВНЫХ МЕРОПРИЯТИЙ НА ПРИМЕРЕ ЭСТАФЕТЫ ОЛИМПИЙСКО...
ОСОБЕННОСТИ ОРГАНИЗАЦИИ СПОРТИВНЫХ МЕРОПРИЯТИЙ НА ПРИМЕРЕ ЭСТАФЕТЫ ОЛИМПИЙСКО...ОСОБЕННОСТИ ОРГАНИЗАЦИИ СПОРТИВНЫХ МЕРОПРИЯТИЙ НА ПРИМЕРЕ ЭСТАФЕТЫ ОЛИМПИЙСКО...
ОСОБЕННОСТИ ОРГАНИЗАЦИИ СПОРТИВНЫХ МЕРОПРИЯТИЙ НА ПРИМЕРЕ ЭСТАФЕТЫ ОЛИМПИЙСКО...
 
Case Study: Al Jazeera Extends its Business and Consumer Reach With Robust, W...
Case Study: Al Jazeera Extends its Business and Consumer Reach With Robust, W...Case Study: Al Jazeera Extends its Business and Consumer Reach With Robust, W...
Case Study: Al Jazeera Extends its Business and Consumer Reach With Robust, W...
 
Free sex
Free sexFree sex
Free sex
 
Rasulullah SAW as A Role Model (Great Leader)
Rasulullah SAW as A Role Model (Great Leader)Rasulullah SAW as A Role Model (Great Leader)
Rasulullah SAW as A Role Model (Great Leader)
 
Ji Ohsong – Skills for Economic Development
Ji Ohsong – Skills for Economic DevelopmentJi Ohsong – Skills for Economic Development
Ji Ohsong – Skills for Economic Development
 
A Tour of Ruby On Rails
A Tour of Ruby On RailsA Tour of Ruby On Rails
A Tour of Ruby On Rails
 

More from Eran Stiller

More from Eran Stiller (20)

Architecting at Scale with the Advice Process
Architecting at Scale with the Advice ProcessArchitecting at Scale with the Advice Process
Architecting at Scale with the Advice Process
 
Application Evolution Strategy
Application Evolution StrategyApplication Evolution Strategy
Application Evolution Strategy
 
Developing and Deploying Microservices with Project Tye
Developing and Deploying Microservices with Project TyeDeveloping and Deploying Microservices with Project Tye
Developing and Deploying Microservices with Project Tye
 
API Design in the Modern Era - Architecture Next 2020
API Design in the Modern Era - Architecture Next 2020API Design in the Modern Era - Architecture Next 2020
API Design in the Modern Era - Architecture Next 2020
 
Bot-Tender: A Chat Bot Walks into a Bar (2020)
Bot-Tender: A Chat Bot Walks into a Bar (2020)Bot-Tender: A Chat Bot Walks into a Bar (2020)
Bot-Tender: A Chat Bot Walks into a Bar (2020)
 
Why Don’t You Understand Me? Build Intelligence into Your Apps
Why Don’t You Understand Me? Build Intelligence into Your AppsWhy Don’t You Understand Me? Build Intelligence into Your Apps
Why Don’t You Understand Me? Build Intelligence into Your Apps
 
Modern Microservices Architecture with Docker
Modern Microservices Architecture with DockerModern Microservices Architecture with Docker
Modern Microservices Architecture with Docker
 
Windows Containers - Microsoft Ignite The Tour
Windows Containers - Microsoft Ignite The TourWindows Containers - Microsoft Ignite The Tour
Windows Containers - Microsoft Ignite The Tour
 
Architecting Multitenant SaaS Applications with Azure - Microsoft Ignite The ...
Architecting Multitenant SaaS Applications with Azure - Microsoft Ignite The ...Architecting Multitenant SaaS Applications with Azure - Microsoft Ignite The ...
Architecting Multitenant SaaS Applications with Azure - Microsoft Ignite The ...
 
Bot Framework - Microsoft Ignite The Tour
Bot Framework - Microsoft Ignite The TourBot Framework - Microsoft Ignite The Tour
Bot Framework - Microsoft Ignite The Tour
 
It's a Serverless World
It's a Serverless WorldIt's a Serverless World
It's a Serverless World
 
Keynote - From Monolith to Microservices - Lessons Learned in the Real World
Keynote - From Monolith to Microservices - Lessons Learned in the Real WorldKeynote - From Monolith to Microservices - Lessons Learned in the Real World
Keynote - From Monolith to Microservices - Lessons Learned in the Real World
 
Architecting a Serverless IoT System in the Cloud
Architecting a Serverless IoT System in the CloudArchitecting a Serverless IoT System in the Cloud
Architecting a Serverless IoT System in the Cloud
 
6 Lessons I Learned on my Journey from Monolith to Microservices
6 Lessons I Learned on my Journey from Monolith to Microservices6 Lessons I Learned on my Journey from Monolith to Microservices
6 Lessons I Learned on my Journey from Monolith to Microservices
 
IoT in Action Keynote - CodeValue
IoT in Action Keynote - CodeValueIoT in Action Keynote - CodeValue
IoT in Action Keynote - CodeValue
 
Net Conf Israel - Intro & Building Cloud Native Apps with .NET Core 3.0 and K...
Net Conf Israel - Intro & Building Cloud Native Apps with .NET Core 3.0 and K...Net Conf Israel - Intro & Building Cloud Native Apps with .NET Core 3.0 and K...
Net Conf Israel - Intro & Building Cloud Native Apps with .NET Core 3.0 and K...
 
Create Your Own Serverless PKI with .NET & Azure Key Vault
Create Your Own Serverless PKI with .NET & Azure Key VaultCreate Your Own Serverless PKI with .NET & Azure Key Vault
Create Your Own Serverless PKI with .NET & Azure Key Vault
 
Cloud Native Development on Azure
Cloud Native Development on AzureCloud Native Development on Azure
Cloud Native Development on Azure
 
Today, the Cloud Is Your Advantage
Today, the Cloud Is Your AdvantageToday, the Cloud Is Your Advantage
Today, the Cloud Is Your Advantage
 
Build 2019 Recap
Build 2019 RecapBuild 2019 Recap
Build 2019 Recap
 

Recently uploaded

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 

Recently uploaded (20)

Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 

What’s New in Windows Workflow Foundation (WF) 4.5?

  • 1. WF 4.5 What’s New in Windows Workflow 4.5? Eran Stiller Senior Software Architect, Founder March 20, 2013
  • 2. About Me • Software architect, consultant and instructor • Technology addict • 10 years of experience • .NET and Native Windows Programming • Specializes in large-scale, server-side, highly-concurrent systems • Co-Founder at CodeValue Ltd. • http://stiller.co.il/blog
  • 3. Agenda • What is WF? • New in WF 4.5 – Workflow Identity & Versioning – Contract-First Workflow Service – Dynamic Update – C# Expressions – Activity Delegates – Misc. • Code! Code!! Code!!!
  • 5. What is a Workflow? http://bit.ly/mNv50R http://bit.ly/l3ghxT
  • 6. What is a Workflow? • A sequence of connected steps • Often an abstraction of real work • Can usually be depicted in a graphic manner Step 1 Step 2 Step 3
  • 7. Windows Workflow Foundation • Microsoft technology released as part of the .NET Framework – WF 3 as part of .NET 3.0 (2007) – WF 3.5 as part of .NET 3.5 (2008) – WF 4 as part of .NET 4.0 (2009) • WF 4 Update as part of .NET 4.0 Platform Update 1 (2011) – WF 4.5 as part of .NET 4.5 (2012) • Provides a way to model software workflows – API – Workflow Engine – Workflow Designer
  • 9. New in WF 4.5
  • 10. Workflow Identity & Versioning • Workflows are long-running • Workflows are dynamic • What happens when workflows change? – Major caveat in WF 4.0 – No built-in solution to handle any versioning scenario – Self made solutions are difficult • WF 4.5 ships with a built-in way to handle versioning – WorkflowIdentity
  • 11. Workflow Identity & Versioning • New workflows are created with a new version – Older workflows keep using the old versions – Side-by-side • Suitable for all hosting scenarios – Workflow Applications – Workflow Services • Self-Host • Web Applications
  • 12. Workflow Identity & Versioning
  • 13. Contract-First Workflows • Workflow Services implement WCF service contracts – In WF 4.0 contracts are defined within the workflow itself • Receive & Send Activities – Implemented contracts must match existing service contracts for compatibility • WF 4.5 provides a limited ability to implement existing contracts – Only from WCF Web Applications • Workaround available
  • 15. Dynamic Update • Workflow side-by-side versioning operates on new workflow instances – Old instances maintain old versions • Dynamic updates allow us to transform active instances into a newer version – Step 1 – Prepare an update map – Step 2 – Apply update map on required instances – Step 3 – Load instances with new WF definition
  • 17. C# Expressions • WF 4 only allowed VB expressions • WF 4.5 allows both VB and C# expressions • By default: – VB projects use VB expressions – C# projects use C# expressions • Loading dynamic workflows with expressions from XAML requires compilation • The re-hosted designer does not support C# expressions
  • 19. Activity Delegates • In WF 4 designing activities which take Activity Delegates took a lot of code • WF 4.5 has built-in designer support
  • 21. Miscellaneous Improvements • Activities – NoPersist Scope – New Flowchart Capabilities – State machine workflows • Designer – Designer Search – Auto surround with sequence – Pan mode – Multi-select – Outline view – Auto-connect and auto-insert in Flowchart and State-Machine – Designer Annotations • Design time background validation • View State in separate location in XAML
  • 22. Summary • Workflow Foundation (WF) is Microsoft’s implementation of a workflow solution • Targets authoring long-running, dynamic, scalable & unified applications • WF 4.5 brings many improvements to the table – Workflow Identity & Versioning – Contract-First Workflow Service – Dynamic Update – C# Expressions – Activity Delegates – And more…
  • 23. Resources • My Blog – http://stiller.co.il/blog • Workflow Foundation – http://msdn.microsoft.com/en-us/vstudio/jj684582.aspx • What’s new in WF 4.5 – http://msdn.microsoft.com/en-us/library/hh305677.aspx
  • 24. Presenter contact details c: +972-54-6160646 e: erans@codevalue.net b: stiller.co.il/blog w: www.codevalue.net

Editor's Notes

  1. Ask the crowd what do they think is the contract