1 Developing Rules Driven Workflows in Windows Workflow Foundation Jurgen Willis COM318 Program Manager Microsoft Corporation.

Slides:



Advertisements
Similar presentations
The Microsoft Technical Roadshow 2006 Windows Workflow Foundation Mike Taulty Developer & Platform Group Microsoft Ltd
Advertisements

Windows Workflow Foundation
Developing Event Driven State Machine Workflows S1 S2 S3 S4 Adam Calderon Principal Engineer - Interknowlogy Microsoft MVP – C#
Microsoft Office SharePoint Portal Server 2007 Introduction to InfoPath Forms Services Daryl L. Rudolph.
Designing, Deploying and Managing Workflow in SharePoint Sites Steve Heaney Product Development Manager OBS
 Matt Winkler Program Manager Microsoft corporation TL21.
Introduction to Windows Workflow Foundation (WF) Keith Elder Microsoft MVP Blog: Quicken Loans –
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
Windows Vista for Syndication and Workflow Mike Ormond Developer & Platform Group, Microsoft Ltd
DEV365 Visual Studio Team Edition for Software Architects: Overview Alex Torone Lead Program Manager Enterprise Tools Microsoft Corporation.
Introducing Windows Workflow Foundation. Understanding Windows Workflow Foundation Janakiram MSV Developer Evangelist Microsoft Corporation Introducing.
SharePoint Collaboration Features & Workflow
Using Microsoft SharePoint to Develop Workflow and Business Process Automation Ted Perrotte National Practice Manager, Quilogy, Microsoft Office SharePoint.
Matt Winkler – Technical Evangelist WF Microsoft Corporation CON312.
Future Directions for Leveraging Advanced XML Tools and Building Custom XML Solutions Denise Draper DAT321 Microsoft Corporation.
Case Study: Revolutionizing Microsoft Axapta Mike Ehrenberg COML01 Architect, Microsoft Business Solutions Microsoft Corporation.
Introduction to Windows Workflow Foundation Adam Calderon Principal Engineer - Interknowlogy Microsoft MVP – C#
Wrestling with Windows Workflow Foundation Simon Thurman Jeremy Stimson.
Larry Mead Microsoft Corp. Jon Flanders Session Code: INT203.
Creating Business Workflow Using SharePoint Designer 2007 Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server MVP Microsoft SQL Server.
Future Directions: Building Customizable Applications using.NET Eric Schnepp TLN205 Lead Program Manager Microsoft Corporation.
Developing Workflows with SharePoint Designer David Coe Application Development Consultant Microsoft Corporation.
D402 Extending your LOB Solution with Microsoft EPM Larry Duff Senior Consultant Microsoft Corporation.
WEB 304 An Overview of ASP.NET and Windows Workflow Foundation Kashif Alam Program Manager Developer Division Microsoft Corporation.
SEC303 Assessing and Managing Privacy in the Enterprise JC Cannon Privacy Strategist.
Auckland Connected Systems User Group November 19th 2009 Jeffrey Chilberto BizTalk Consultant
Windows Workflow Foundation Mike Taulty Developer & Platform Group Microsoft Ltd
Exploiting New Capabilities for Search And Organization Kerem Karatal DAT307 Lead Program Manager Microsoft Corporation.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Workflow Development Overview Architecture Requirements Types of workflows Stages of workflow.
DEV325 Deploying Visual Studio.NET Applications Billy Hollis Author / Consultant.
A Deep Dive into Best Practices with the Windows Communication Foundation John Justice COM415 Program Manager Microsoft Corporation.
James Akrigg Microsoft Ltd Integrating InfoPath Forms Into Workflow Solutions And Business Processes.
Daniel van Wyk – 3fifteen – SA Developer.Net – Information Worker Group.
Office Business Applications Workshop Defining Business Process and Workflows.
Welcome to the Twin Cities BizTalk User Group July 2006.
“ WinFS” Future Directions: Building Data-Centric Applications Using Windows Presentation Foundation “Avalon” and Windows Forms Ramesh Nagarajan DAT310.
Copyright ©2004 Virtusa Corporation | CONFIDENTIAL Windows Workflow Foundation Ruwan Wijesinghe.
DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp.
Lap Around Windows Presentation Foundation Rob Relyea PRS305 Lead Program Manager Windows Presentation Foundation
What’s New in Windows Forms 2.0 Stephen Turner Software Design Engineer
EBIZ302 Jupiter Business Process Automation and Web Services David Fong Program Manager.
Microsoft Visual Studio 2005 Tools for the Office System: Building Office Solutions Using Visual Studio 2005 Tools for Office Andrew Coates Developer Evangelist.
Windows Communications Foundation ("Indigo"): Writing Secure Distributed Applications Martin Gudgin COM312 Program Manager Microsoft Corporation.
Extending Workflow With Custom Activities Dennis Pilarinos COM328 Program Manager Microsoft Corporation.
Workflow in Microsoft Office SharePoint Server Jessica Gruber Consultant Microsoft Corporation.
Windows Workflow Foundation Guy Burstein Senior Consultant Advantech – Microsoft Division
Developing Custom ASP.NET Providers For Membership And Role Manager Stefan Schackow PRS404 Program Manager – Web Platform and Tools Microsoft Corporation.
Top 10 Entity Framework Features Every Developer Should Know
Joy Rathnayake Senior Architect – Virtusa Pvt. Ltd.
Building Enterprise Applications Using Visual Studio®
Mike Harsh PRSL001 Program Manager Microsoft Corporation
5/15/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
6/2/2018 3:37 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Managing the Solution Lifecycle for xRM Applications
Visual Studio Tools for Office 2005
COM210 Introduction to Workflow in Windows Applications
Transforming SharePoint Farm Solutions to the Add-in Model
INTEGRATE 2014 BizTalk Rules Anurag Dalmia Program Manager Microsoft.
Technology in Action! Windows Workflow Foundation Advanced Techniques
Building event-driven, long-running apps with Windows workflow
MIX 09 12/8/2018 4:33 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Introduction to Windows Workflow Foundation (WF)
DAT381 Team Development with SQL Server 2005
Microsoft SharePoint Conference 2009 Jon Flanders
Delivering great hardware solutions for Windows
Microsoft Office SharePoint 2007 Technical Enablement Tour
Office 365 Development July 2014.
Microsoft Dynamics.
Windows Forms in Visual Studio 2005: An in-depth look at key features
Presentation transcript:

1 Developing Rules Driven Workflows in Windows Workflow Foundation Jurgen Willis COM318 Program Manager Microsoft Corporation

2 Agenda Why Rules? Activity Conditions + Dynamic Update Conditioned Activity Group Policy

3 Windows Workflow Foundation Single workflow technology for Microsoft products, partners and customers A framework to build on – not a server or application Key features Enables long running workflows in any application or server Extensible activity framework Unified model for human and system workflow scenarios Visual designer for graphical and code-based authoring Availability Availability Exposed via WinFX – powers Office “12” workflow Extensible framework and tools for building workflow into Windows applications

4 Windows Workflow Foundation Key Concepts Host Process Windows Workflow Foundation Runtime Engine A Workflow An Activity Runtime Services Base Activity Library Custom Activity Library Visual Designer Visual Designer: Graphical and code- based construction Workflows are a set of Activities Workflows run within a Host Process: any application or server Developers can build their own Custom Activity Libraries Components Base Activity Library: Out-of-box activities and base for custom activities Runtime Engine: Workflow execution and state management Runtime Services: Hosting flexibility and communication

5 Why Rules? Modeling Power Approachability Ease of Change

6 Model-driven development Rules and Application Development Forms Data Applicationlogic Rules and policies Applicationcode Workflow model Services

7 Rules and Workflow Policy applied to validate order Condition determines how to handle errors Rules determine order routing

8 Terminology Condition Expression that evaluates to True or False Rule Modeled as: IF IF THEN THEN ELSE ELSE RuleSet Collection of Rules with a set of execution semantics

9 Workflow Rules Conditions on activities If-ElseWhileReplicator Conditioned Activity Group (CAG) Policy activity Contains and executes a RuleSet RuleSet execution provides priority-based, forward-chaining semantics

10 Rule Conditions

11 Dynamic Update Add / remove activities Modify rule conditions on running workflow instances Performed from code- beside or the host Can be disabled for a workflow instance

12 Dynamic Update

13 Conditioned Activity Group (CAG) Flexible, rule-driven activity execution Modeling of activity sets with numerous sequencing permutations Motivation Stage-Gate pattern Collaborative tasks Scenarios

14 CAG - Overview Child activity executes When(Condition1) CAG executes Until(Condition2) Default execution is a parallel When Executes activity once Until “All children quiescent”  Executing children complete and all When conditions == false Conceptually, an activity executes: IF When && !(Until) Child activities

15 CAG - Overview Reevaluation When immediate child moves to completed state Define custom Until condition to short-circuit CAG execution No new activities executed Blocked activities cancelled

16 Conditioned Activity Group

17 Policy Separation of business logic from application sequencing Declarative statements of business intent Execution semantics to support rich sets of business logic Motivation Scenarios Order validation Warranty claims management Discount calculation

18 What about the BizTalk BRE? BizTalk Business Rules Engine The next major version of BizTalk (post-BizTalk 2006) will be built on Windows Workflow Foundation Windows Workflow Foundation will provide the core rules engine evaluator and developer tools BizTalk will provide premium tooling and server infrastructure, e.g.: Business analyst tools RuleSet storage and management RuleSet analysis

19 Policy Overview “Policy” activity used as base type for custom activity RuleSet class contains a collection of Rules Rules are If-Then-Else expressions that evaluate and operate on activity properties Expressions are CodeDom based Priority value can be used to order rule evaluation

20 Policy

21 Amount = $25 Total = $80 Discount = 10% Rule 1 (P0) If Total > $50 & $50 & < $100 Then Discount = 10% Rule 2 (P0) If Total >= $100 Then Discount = 15% Rule 3 (P0) If Amount > $0 Then Total = Total + Amount Forward Chaining Example Rule 1 Rule 3 Rule 2 Execution Sequence $105 RuleSet 15%

22 RuleSet Chaining Chaining Mechanisms Implicit based on property usage Explicit using Update statement “Partially explicit” using method attributes Additional Points Maximum execution count property Halt statement

23 Policy Extensibility

24 Summary Integrated workflow and rules capability Flexible forward chaining rules engine Rules + dynamic update => flexible workflow definition and control

25 Workflow Sessions Extending Workflow Capabilities With Custom Activities (COM328) Wed 3:15 – 150/151 Hall E Developing Rules-Driven Workflows (COM318) Wed 5:00 – 152/153 Hall F Developing Event-Driven State Machine Workflows (COM322) Thurs 2:15 – 515 AB Hosting and Communications in Workflow Scenarios (COM327) Thurs 5:15 – 402 AB Workflow + Messaging + Services - Developing Dist’d Apps (COM325) Thurs 3:45 – 150/151 Hall E Host Process Windows Workflow Foundation Runtime Engine Runtime Services Base Activity Library My Custom Activity Library State Machine Workflows Rules-Driven Activities Communication Activities My Workflows Introduction to Workflow in Windows Applications (COM210) Wed 1:45 – 150/151 Hall E Windows Communication Foundation Windows SharePoint Services: Developing Custom Workflows (OFF415) Thurs 11:30 – 408 AB Hands-on Labs!

26 More Community Resources At PDC 12 Labs: COMHOL01-12 “Ask The Experts” tables – 4 tables and lots of experts COM Track Lounge Get your copy of the “Presenting Windows Workflow Foundation” book Keep your voucher from today’s keynote and redeem at the PDC bookstore After PDC If you missed a related session, watch it on the DVD MSDN dev center: MSDN dev center: Windows Workflow Foundation community site Channel 9 tag:

27 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.