Download presentation
Presentation is loading. Please wait.
Published byRegina Parks Modified over 8 years ago
1
Windows Workflow Foundation Guy Burstein Senior Consultant Advantech – Microsoft Division http://blogs.microsoft.co.il/blogs/bursteg
2
ConceptsWorkflowActivitiesHostComponents Base Activity Library Runtime Engine Runtime Services Visual Designer Host Process Windows Workflow Foundation WF - Basic Concepts Workflow Runtime Engine Runtime Services Visual Studio Designer Base Activity Library A Workflow Activity
3
Building a Simple Workflow
4
Recruitment Workflow Challenges “Recruitment may take several weeks and even months…” Long Running & Stateful “Recruiting one applicant may be very different from the other…” Flexible “What is the status of this applicant and what its the next step?” Transparency
5
Long Running Processes Candidate Recruitment Manager Technical Interviewers Manager CV
6
By Default – Workflows run without persistence Plug in the persistence service using code or configuration. Out of the Box SqlPersistenceService Create your custom persistence services Database Windows Workflow Foundation Runtime Engine Runtime Services Persistence Service Workflow
7
Long-Running Processes
8
Workflow (Custom) Activities Activities are the building blocks of workflows The unit of execution and re-use Out of the box Activities get you started… Write custom activities for modeling advanced control flows modeling various workflow styles integrating with technologies aligning with standards
9
Building Customs Activities
10
Fault Handling Many causes for exceptions during run-time Fault Handling used to cleanup partial and unsuccessful work. WF Fault Handling consists:WF Fault Handling consists: Fault Handlers TransactionsCompensation
11
Transactions and Fault Handling
12
State Machine Workflows Driven by external events Unpredictable sequence of events Many alternative business paths Composed of States, Events, Actions and Transitions Infrastructure to query and interact with a workflows instance Skip And Rework S1 S2 S3 S4
13
Example: Recruitment State Machine On On Sent to Customer Active Waiting for Manager On Approved Waiting For CV Completed Waiting for Customer On Sent to Manager On Approved On CV Received On Evaluated
14
State Machine Workflow
15
Tracking Service Provide consistent and reliable reporting Past, Present and Future Key Indicators Auditing / Monitoring Specify, capture, store, and query Track workflow, activity, user events and data Use OOTB SqlTrackingService or a custom tracking service
16
Providing Application Transparency
17
Business Rules and Conditions Added Value Modeling Power, Approachability, Ease of Change Terminology Conditions, Rules, RuleSet Rule-Driven Activities IF-Else, While, Custom Activities. PolicyActivity Can use Rules API outside Workflow Step2 Step1Rule1Rule2 Data
18
Apply Policy to Validate CV Use Conditions to Decide how to Handle Policy to determine CV Routing
19
Workflow Rules!
20
Dynamic Update Respond to unforeseen events, circumstances. Apply changes to running instances: Add / Remove activities Change conditions (only if declarative). Workflow Changes must be Valid Must be validated by all activities Dynamic Update Condition on Root Activity Step1 Step2 Step3 Step5 Step4 Step6
21
Making Changes to Running Workflow Instances
22
WF vs. Biztalk Server Biztalk Server is a product for BPM and EAI. WF is a framework for developers Ask yourselves: Do I have to change the message schema? Do I have to integrate with another systems / platforms? Do I need the ability scale out? Do I need monitoring and administration? Can use both in same solution.
23
WF in Application Layers Validation Rules Page Flow CommunicationWorkflows Custom Activities Runtime Services
25
Summary More than a Drag & Drop technology A Picture’s worth more than 1000 words… Lets you focus on the business processes Use Windows Workflow Today!
26
Resources WF Dev. Center http://msdn2.microsoft.com/en- us/netframework/aa663328.aspx http://msdn2.microsoft.com/en- us/netframework/aa663328.aspx WF Community Site http://wf.netfx3.com WF MSDN Forum http://forums.microsoft.com/MSDN/ShowFo rum.aspx?ForumID=122&SiteID=1 http://forums.microsoft.com/MSDN/ShowFo rum.aspx?ForumID=122&SiteID=1 My Blog http://blogs.microsoft.co.il/blogs/bursteg
27
Guy Burstein Senior Consultant Advantech – Microsoft Division http://blogs.microsoft.co.il/blogs/bursteg
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.