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

Your Passions & Your Profession
Your Passions & Your ProfessionYour Passions & Your Profession
Your Passions & Your ProfessionJullien Gordon
 
Como fazer cocada simples
Como fazer cocada simplesComo fazer cocada simples
Como fazer cocada simplesIsabela Silva
 
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 10edvie online
 
JILIOW ASSIGNMENT
JILIOW ASSIGNMENTJILIOW ASSIGNMENT
JILIOW ASSIGNMENTAli jili'ow
 
A Study of Advertising Effectiveness Final
A Study of Advertising Effectiveness FinalA Study of Advertising Effectiveness Final
A Study of Advertising Effectiveness Finalkrishna bhatt
 
Ankur research report marketing
Ankur  research report marketingAnkur  research report marketing
Ankur research report marketingAnkur 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-leerstoelevofenedex
 
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...Rio Afdhala
 
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.54Subhash Mahla
 
Testimonial Letter for Angi Baleta
Testimonial Letter for Angi BaletaTestimonial Letter for Angi Baleta
Testimonial Letter for Angi BaletaAngi Baleta
 
ОСОБЕННОСТИ ОРГАНИЗАЦИИ СПОРТИВНЫХ МЕРОПРИЯТИЙ НА ПРИМЕРЕ ЭСТАФЕТЫ ОЛИМПИЙСКО...
ОСОБЕННОСТИ ОРГАНИЗАЦИИ СПОРТИВНЫХ МЕРОПРИЯТИЙ НА ПРИМЕРЕ ЭСТАФЕТЫ ОЛИМПИЙСКО...ОСОБЕННОСТИ ОРГАНИЗАЦИИ СПОРТИВНЫХ МЕРОПРИЯТИЙ НА ПРИМЕРЕ ЭСТАФЕТЫ ОЛИМПИЙСКО...
ОСОБЕННОСТИ ОРГАНИЗАЦИИ СПОРТИВНЫХ МЕРОПРИЯТИЙ НА ПРИМЕРЕ ЭСТАФЕТЫ ОЛИМПИЙСКО...GEF.FUTURE
 
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...CA Technologies
 
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)Eval Wari
 
Ji Ohsong – Skills for Economic Development
Ji Ohsong – Skills for Economic DevelopmentJi Ohsong – Skills for Economic Development
Ji Ohsong – Skills for Economic DevelopmentGlobal Education Futures
 
A Tour of Ruby On Rails
A Tour of Ruby On RailsA Tour of Ruby On Rails
A Tour of Ruby On RailsDavid Keener
 

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

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 ProcessEran Stiller
 
Application Evolution Strategy
Application Evolution StrategyApplication Evolution Strategy
Application Evolution StrategyEran Stiller
 
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 TyeEran Stiller
 
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 2020Eran Stiller
 
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)Eran Stiller
 
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 AppsEran Stiller
 
Modern Microservices Architecture with Docker
Modern Microservices Architecture with DockerModern Microservices Architecture with Docker
Modern Microservices Architecture with DockerEran Stiller
 
Windows Containers - Microsoft Ignite The Tour
Windows Containers - Microsoft Ignite The TourWindows Containers - Microsoft Ignite The Tour
Windows Containers - Microsoft Ignite The TourEran Stiller
 
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 ...Eran Stiller
 
Bot Framework - Microsoft Ignite The Tour
Bot Framework - Microsoft Ignite The TourBot Framework - Microsoft Ignite The Tour
Bot Framework - Microsoft Ignite The TourEran Stiller
 
It's a Serverless World
It's a Serverless WorldIt's a Serverless World
It's a Serverless WorldEran Stiller
 
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 WorldEran Stiller
 
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 CloudEran Stiller
 
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 MicroservicesEran Stiller
 
IoT in Action Keynote - CodeValue
IoT in Action Keynote - CodeValueIoT in Action Keynote - CodeValue
IoT in Action Keynote - CodeValueEran Stiller
 
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...Eran Stiller
 
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 VaultEran Stiller
 
Cloud Native Development on Azure
Cloud Native Development on AzureCloud Native Development on Azure
Cloud Native Development on AzureEran Stiller
 
Today, the Cloud Is Your Advantage
Today, the Cloud Is Your AdvantageToday, the Cloud Is Your Advantage
Today, the Cloud Is Your AdvantageEran 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

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 

Recently uploaded (20)

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 

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