200 likes | 329 Views
Defining Business Process and Workflows. Lesson 3 – Windows Workflow Foundation. Introducing workflows and the Windows Workflow Foundation The WF Runtime Engine and Services Workflow Basics and Terminology. What are workflows?. Encapsulated logic for coordinating business processes
E N D
Lesson 3 – Windows Workflow Foundation • Introducing workflows and the Windows Workflow Foundation • The WF Runtime Engine and Services • Workflow Basics and Terminology
What are workflows? Encapsulated logic for coordinating business processes • Provides abstractions to model real world processes • Valuable for modeling long running and stateful behavior • Workflows in WF are decomposed into activities Sequential workflows State machine workflow modeled as flowchart modeled as state diagram
Windows WorkFlow Foundation • Single workflow technology for Windows • Extensible framework & toolset • Base for Microsoft products and customer solutions • Transform workflow from niche to mainstream paradigm • Exposed to developers via .NET 3.0
WF Runtime Engine And Services Host Process My custom workflow Windows Workflow Foundation • WF Base Activity Library Runtime Engine: provides intrinsic behaviors to activities WorkflowExecution State Management TrackingInfrastructure Dynamic Update Runtime Services: pluggable implementations with defaults Tracking … Persistence Communication
Workflow Basics • Custom Workflow consists out of one or more activities • Activity Libraries • WF Base Activity Library • SharePoint Activity Library • Custom Libraries • Activity is a class • Events/Properties • Methods called by WF Runtime engine • WF created using Visual Studio.NET • Deployed as .NET assembly
Workflow Terminology • WorkflowTask • Human-based interventions stored as normal task items in a tasklist • Internallylinkedwith the instance • Notify instance when changes occur • Can beassociatedwith custom taskform • WorkflowHistory Item • Logging of events in historylist • Normal list items withWorkflowspecificmeta-data like instance id, association id, etc… • Template • Featurescopedat the site collection • Defines the forms and association options • Association • Createdwhenconnectingtemplatewith container or content type • Stores parameter info for the workflow • Instance • Createdat the moment the workflowisstarted • Instance of association, not of template • Workflow instances run as System Account!
Lesson 4 – Building Custom Workflows • Workflow Life Cycle • Your Options for Creating Custom Workflows • Custom Workflows with the Microsoft Office SharePoint Designer 2007 • Custom Workflows with Visual Studio 2005
Workflow Authoring for Office 2007 SharePoint Designer for corporate Web designers Visual Studio Workflow Designer for professional developers Development Model Visual workflow designer Development Model Wizard-based workflow designer Activities Re-use OOB/deployed activities Activities Re-use OOB/deployed activities Can author new activities Forms Autogenerated Forms -ASPX Forms Designed Forms -InfoPath -ASPX Deployment Solutions package generated Box administrator installable • Deployment • Workflow authored live against server • Runtime compilation
Scenarios LOB Integration (BizTalk) Visual Studio & Workflow SDK Purchase Order Processing Custom Tracking Apps Service Requests Asset Tracking Document Processes Spec Review Weekly Status Report SharePoint Designer Workflows Custom Form Actions Email Notification Exception Handling Structured Ad Hoc Server Features List Moderation Publishing Process Document Expiration Translation Process Document Review (parallel) Ringi (eApproval) Out-of-the-Box Solutions (with customization) Document Approval (serial) Task & Issue Tracking (WSS, Access, & Project) Signature Collection Custom Routing
Workflows with the Microsoft Office SharePoint Designer 2007 demo
Five Steps to Develop a VS.NET Workflow • Model your workflow in Visual Studio • Create and bind your forms • Code your workflow • Deploy your workflow to the server • Debug Beforeyoustart Install the VS.NET Extensions for WF Install the ECM Starter Kit
What you have learned • Workflow definition • Workflows in OBA applications are running with the help of the Windows Workflow Foundation • Custom workflows can be build with Microsoft products but don’t forget that there are some very good third-party products that built on top of everything you saw