Introducing Windows Workflow Foundation. Building Basic Activities. Building Composite Activities. Activity Development Advanced Features



Similar documents
How To Build A Financial Messaging And Enterprise Service Bus (Esb)

Integration Architecture & (Hybrid) Cloud Scenarios on the Microsoft Business Platform. Gijs in t Veld CTO BizTalk Server MVP BTUG NL, June 7 th 2012

David Chou. Architect Microsoft

Microsoft SOA Roadmap

A SharePoint Developer Introduction

The webmethods ESB. The Foundation of your SOA. Jean-Michel Ghyoot, Principal Solution Architect, March 28, 2013

Developing Visual Studio Workflows and Activities for SharePoint Sites

Client. Applications. Middle Tier. Database. Infrastructure. Leading Vendors

Lab Answer Key for Module 6: Configuring and Managing Windows SharePoint Services 3.0. Table of Contents Lab 1: Configuring and Managing WSS 3.

Building cross-platform Modern Apps: the Design perspective. Amit Bahree, Senior Director,

BEA BPM an integrated solution for business processes modelling. Frederik Frederiksen Principal PreSales Consultant BEA Systems

Administration Guide for the System Center Cloud Services Process Pack


Service Oriented Architecture 1 COMPILED BY BJ

New Features in Neuron ESB 2.6

Building Composite Application Services with Windows Server AppFabric. Rick G.

Windows Azure Pack Installation and Initial Configuration

Automating Business Processes Using SharePoint Designer

Service Virtualization andRecycling

Amplify Service Integration Developer Productivity with Oracle SOA Suite 12c

The Application of BizTalk in Public Sector

Advanced Process Modeling (BPMN) Data Connectivity & Data Graphics Understanding Visio Services D t a ab a a b s a e s e Mod o e d l e ing

Workflow and Forms Services for People-Driven Process Management

CRM Accelerators Overview

Hitchhiker's Guide to Demand Management 2013

Spring 2011 Conference Sandanski, May 13th 15th 2011 Oracle SOA Suite 11g Rapid service integration and process automation with a no-coding approach

Making SharePoint Work with Workflow. Robert L. Bogue 3 Part Presentation Series

Authoring for System Center 2012 Operations Manager

SharePoint Operational Governance. al 1

The ESB and Microsoft BI

Better Together with Microsoft Dynamics CRM

BizTalk Server Business Activity Monitoring. Microsoft Corporation Published: April Abstract

A Jacada & Microsoft CCF Competitive Review

AGILEXRM REFERENCE ARCHITECTURE

ORACLE WEBCENTER PORTAL

Oracle Application Development Framework Overview

K2 Appit for SharePoint and SharePoint 2013 TECHNICAL COMPARISON

This course provides students with the knowledge and skills to develop ASP.NET MVC 4 web applications.

Visio 2010 Tips and Techniques

Lab Answer Key for Module 9: Active Directory Domain Services. Table of Contents Lab 1: Exploring Active Directory Domain Services 1

Sentinet for BizTalk Server SENTINET

Key Benefits of Microsoft Visual Studio 2008

EVALUATION. WA1844 WebSphere Process Server 7.0 Programming Using WebSphere Integration COPY. Developer

Test Lab Guide: Creating a Windows Azure AD and Windows Server AD Environment using Azure AD Sync

A standards-based approach to application integration

Getting started with 2c8 plugin for Microsoft Sharepoint Server 2010

Special thanks to the following people for reviewing and providing invaluable feedback for this document: Joe Davies, Bill Mathers, Andreas Kjellman

Windows SharePoint Services Installation Guide

Programmabilty. Programmability in Microsoft Dynamics AX Microsoft Dynamics AX White Paper

IBM BPM V8.5 Standard Consistent Document Managment

Application Architecture for.net: Designing Applications and Services

WA1802 SOA for Architects Using WebSphere ESB. Student Labs. Web Age Solutions Inc.

Rapid Development of Smart and Self-Adaptive Cloud, Mobile & IoT Applications - Accelerating the Last Mile of Cloud Computing

FORMS & WORKFLOW SHAREPOINT Practical Discussion

AppFabric. Pro Windows Server. Stephen Kaufman. Danny Garber. Apress. INFORMATIONSBIBLIOTHbK TECHNISCHE. U N! V En SIT AT S R!

Workflow approval via

Private Cloud 201 How to Build a Private Cloud

Course 10978A Introduction to Azure for Developers

Integrating SharePoint Sites within WebSphere Portal

Part 2: The Neuron ESB

Step-By-Step build Advanced InfoPath Form and SharePoint Designer Workflow

BUSINESS RULES CONCEPTS... 2 BUSINESS RULE ENGINE ARCHITECTURE By using the RETE Algorithm Benefits of RETE Algorithm...

Achieve more with less

Lab Answer Key for Module 11: Managing Transactions and Locks

ASP.NET Overview. Ken Casada Developer Evangelist Developer & Platform Evangelism Microsoft Switzerland

Exchange Server 2013 Exchange Server 2013 with Service Pack 1 Expression 3 Studio (MSDN AA) Expression 4 Ultimate FAST Search Server 2010 FAST Search

Advanced Solutions of Microsoft SharePoint Server 2013 (20332) H6C76S

PowerShell Support in SCAP 1.2. Michael Tan Microsoft Corporation

AvePoint SearchAll for Microsoft Dynamics CRM

WHITEPAPER. Managing Design Changes in Enterprise SBM Installations

SharePoint Services: Using Workflows

Overview. Microsoft Office Enterprise Project Management Solution. In this article

Managing trust relationships with multiple business identity providers (basics) 55091A; 3 Days

AvePoint Tags 1.1 for Microsoft Dynamics CRM. Installation and Configuration Guide

Hands-On Lab. Client Workflow. Lab version: Last updated: 2/23/2011

Listeners. Formats. Free Form. Formatted

SharePoint Composites. Do-It-Yourself SharePoint solutions

SharePoint as a Document Management System. Tyler Durham Microsoft Corporation Grant Newton Clifford Chance LLP

IBM WebSphere ILOG Rules for.net

Presentation Outline. Key Business Imperatives Service Oriented Architecture Defined Oracle SOA Platform SOA Maturity/Adoption Model Demo Q&A

Intelligence. Productivity. Mobility. Unified Service. Predictive analytics: Offline mobile: Self, assisted & field service

Dell Migration Manager for Enterprise Social What Can and Cannot Be Migrated

CATALOG OF CLASSES IT and Technical Courses

SHAREPOINT 2016 POWER USER BETA. Duration: 4 days

Academic All Technology Library ( 1576 Courses)

Enterprise Application Integration (EAI) Architectures, Technologies, and Best Practices

Course Code NCS2013: SharePoint 2013 No-code Solutions for Office 365 and On-premises

IT Insights. Using Microsoft SharePoint 2013 to build a robust support and training portal. A service of Microsoft IT Showcase

K2 blackpearl vs. K2 blackpoint

DocAve for Office 365 Sustainable Adoption

Transcription:

SOA223

Introducing Windows Workflow Foundation Building Basic Activities Building Composite Activities Activity Development Advanced Features

A workflow is a set of tasks or activities organized in a pattern To solve a task or model a business process Usually involves interacting with systems or users

Combination Human workflow Peoples and roles Dynamic based on users Uses unstructured data e.g., Document review System workflow Applications and services Prescribed flow Structured data e.g., Supply chain management Line-of-business applications including users and services New-hire provisioning, helpdesk ticket, work item Non-traditional.NET developer tasks such as user interface navigation

Some workflows execute start to finish More often, workflows execute in segments Waiting for input from systems or users between active processing Workflows involve business rules 1. Submit Expense Report For Approval 2. Validate expense report (per diem rates, allowed expenses, total) 3. If not valid, reject and end processing 4. Notify Manager that approval is requested 5. WAIT for manager approval 6. IF the manager does not approve in time, notify next manager 7. WAIT for elevated approval 8. IF Approval, OK expenses and pay, otherwise, reject 9. IF timeout, notify employee to resubmit

Logic and business rules embedded in code Workflow tasks are disconnected in the code Process steps are scattered not declarative Managing instances of a process can be difficult State management falls to the developer Managing the current position and related state Visibility is difficult What has happened and is currently happening?

Single workflow framework for the Microsoft platform Used in Microsoft Office SharePoint Server applications and Microsoft Dynamics CRM today more to come Available to all third parties to build on A toolkit for building workflow into your application Not a server product Does not replace Microsoft BizTalk Server Like Microsoft ASP.NET (you still have to build your Web site) Targeted at.net developers

What you get: Runtime Runtime Services Base Activity Library Rule engine Visual designers What you build: Custom activities Workflows Host application Your own services Custom workflow designer 1. Custom Host Application Custom Workflows Custom Activities Workflow Foundation Base Activity Library Workflow Runtime Runtime Services Workflow Designer Rule engine

Runtime/Execution State Management Bookmarking Business Rules Communications Tracking Dynamic Update Do some work Stop and wait Do some work Stop and wait Do some work

Activities are the building blocks of a workflow Model for reuse and encapsulation Similar to UI design with controls on a form Controls provide the function for a form Controls define what the form does and how it acts Each control has properties, events, methods Come in two different types Basic: performs simple operation, e.g., send a message Composite: controls the execution of child activities

Base set of activities to build workflows Control Flow Communication Scoping Data/Rule-driven Some activities can be extended: Sequence, State, CallExternalMethod, HandleExternalEvent You will often need custom activities

Designer Activity core is a class Attributes define related classes for design and runtime Override base methods Interfaces for certain behaviors Custom Activity Activity Validator [Designer(typeof(CustomActivityDesigner))] [Validator(typeof(CustomActivityValidator))] public class CustomActivity : Activity, ICompensatableActivity { protected override ActivityExecutionStatus Cancel(ActivityExecutionContext ctx){ } protected override HandleFault (ActivityExecutionContext ctx, Exception ex){ } ActivityExecutionStatus Compensate(ActivityExecutionContext ctx){ } }

Derive from System.Workflow.ComponentModel.Activity Define properties and events Override Execute method

public partial class ConsoleWriteLine : Activity { private string texttowrite; public string OutputText { get { return texttowrite; } set { texttowrite = value; } } } protected override ActivityExecutionStatus Execute( ActivityExecutionContext executioncontext) { Console.WriteLine(OutputText); return ActivityExecutionStatus.Closed; }

Runtime Activity Canceling Compensating Initialized Executing Closed Faulting

Each workflow is a class instance The data of the workflow is in the properties Input parameters map to public properties Activities read/write properties on the workflow Output parameters drawn from public properties

Workflows are ideally declarative and composable Need a way to bind data between activities Dependency properties provide support for Binding properties between activities Persistence of state Promoting property values from composite activities

Reuse existing logic by deriving from base class e.g., Derive from sequence Use composite activity designer to define children Much like designing a sequential workflow Useful for building reusable collection of logic Contains properties and events like other activities Simplest implementation

Explicitly control child activity execution e.g., For each, conditional execution, parallel Adds some complexity Must manage activity execution Handle cases of faulting or canceling Provides more control Monitor activities for state changes Extend child activities with custom properties

Composite activities contain other activities May need to expose properties of children Promote the property from the child activity Creates a dependency property on the composite Binds the child activity property to the new property Consumers of composite activity can get/set the value Value automatically propagated to the child

Set value for timeout Promote Timeout Duration

Activity Designer Control the design time experience for your activity Look and feel + interactive features Activity Validator Validate your activities configuration at compile time Listener activities Write activities which can respond to external events

Windows Workflow Foundation provides a framework for managing business logic in an app Services simplify building complex applications Workflows are comprised of activities Base activity library gets you part-way there Activities are your unit of reuse Activities can be basic or composite Dependency properties provide data binding

Moving to a Blended World: Software + Service SaaS Accounting Solution IT Service Portfolio Software+Services Connected User Experience Accounting Portal Customer Support Web 2.0 Composition SaaS Customer Support Solution Manufacturing Enterprise User Core Applications Commodity Applications Devices and People

WF BizTalk It depends Inside Application Between Applications Between Organizations UI Page Controller Dynamically Updateable Process Flow Long Running Business Logic Long Running Business Process Message Broker (EAI) Web Service Composition Web Service Composition Enterprise Service Bus (ESB) B2B Integration Abstraction of Rules from Business Logic Abstraction of Rules from Business Process Enterprise Rule Repository

Breakout Sessions SOA321 Building Microsoft Windows Workflow Foundation Enabled Windows Communication Foundation Services in.net Framework 3.5 SOA322 Rules Engine Use and Extensibility in Microsoft Windows Workflow Foundation Chalk-Talks SOA10 Implementing UI Page Flow with Windows Workflow Foundation SOA01 Incorporating Microsoft Windows PowerShell to Manage Windows Communication Foundation and Windows Workflow Foundation Applications Hands-on Labs SOA13 Microsoft Windows Workflow Foundation Introductory Lab SOA15 Creating Custom Activities with Windows Workflow Foundation

Technical Communities, Webcasts, Blogs, Chats & User Groups http://www.microsoft.com/communities/default.mspx Microsoft Learning and Certification http://www.microsoft.com/learning/default.mspx Microsoft Developer Network (MSDN) & TechNet http://microsoft.com/msdn http://microsoft.com/technet Trial Software and Virtual Labs http://www.microsoft.com/technet/downloads/trials/default.mspx

Take part in the RFID demo at the SOA and WEB Services Booth - for a chance to win one!!!

Complete an evaluation on CommNet and enter to win!

2007 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.