Niche
Visual Studio 2010

Workflow, Services and AppFabric for the Web Developer for .NET 4
(Microsoft Training Course: F1054) - 2 days - £955 exc VAT

 Nov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct 
London03 01 05 02 01 05 03  07 04 01 06  


> Target Audience
This course provides students with the knowledge and skills to build host a Windows Workflow Foundation (WF) 4 solution in AppFabric .It is intended for application developers who wish to know how to create Workflows that can call and persist WCF Message instances, interact with Entity Data Models and use both Web and Silverlight Clients, integrating with SharePoint.
> Course outline
  1. Developer Environment Setup
  2. Building a Workflow
  3. Building Custom Activities
  4. Using Entity Framework in Workflows
  5. Building Workflow Services
  6. SharePoint 2010 Integration with Workflow Services
  7. Calling Workflow Services from ASPNET & Silverlight
  8. Debugging, Troubleshooting & Error Handling
  9. Deploying Workflow Services
  10. Versioning Workflow Services with the Routing Service


Module 1: Developer Environment Setup
  • Building a Workflow
  • Introduces the basics of a building a workflow using WF 4
  • Lab: Creating the Inventory Workflow
  • Creating a Workflow Console Application
  • Introducing Windows Server AppFabric
  • Restoring saved Visual Studio Environment settings
  • Lab: Installing the AppFabric Host
  • Run the AppFabric Host Installation
  • Lab: Installing Fourth Coffee
  • Create a working directory
Skills
  • Understand how to install and configure a system to use the AppFabric Host
  • Perform the intial steps necessary to run a sample application.
  • Run an instance of the LabelingService workflow service and verified its completion using the AppFabric Host Dashboard
top
Module 2: Building a Workflow
  • Building a Workflow
  • Introduces the basics of a building a workflow using WF 4
  • Lab: Creating the Inventory Workflow
  • Creating a Workflow Console Application
Skills
  • Build an Inventory Workflow and utilize various activities including Sequence, If, Assign and InvokeMethod
  • Understand how you can create simple tests that execute the workflow passing in paremeters and getting return values using the Workflow Invoker’s static methods
top
Module 3: Building Custom Activities
  • Building Custom Activities
  • Introduction to building a custom activity
  • Lab: Creating the Label Generator activity
  • Creating the Label Generator Project
  • Creating the Label Generator Activity
  • Lab: Creating an activity designer for the Label Generator activity
  • Creating the designer
  • Associate the designer with the activity
  • Skills:
  • Created a custom activity
  • Built an activity designer and add the activity to a workflow service
  • Understand how to unit test a custom activity as well as how to associate a designer with an activity
  • Introduction to building a custom activity
  • Lab: Creating the Label Generator activity
  • Creating the Label Generator Project
  • Creating the Label Generator Activity
  • Lab: Creating an activity designer for the Label Generator activity
  • Creating the designer
  • Associate the designer with the activity
Skills
  • Created a custom activity
  • Built an activity designer and add the activity to a workflow service
  • Understand how to unit test a custom activity as well as how to associate a designer with an activity
top
Module 4: Using Entity Framework in Workflows
  • Introduction to the Entity Framework model of the Inventory Database and use of it to update the inventory records from the Inventory workflow
  • Lab: Using the Entity Framework from Workflow
  • Enhancing the ItemReservation helper class
Skills
  • Update the InventoryWorkflow to communicate with the Inventory database via the Entity Framework in order to update the ProductInventory table when an order is being reserved
top
Module 5: Building Workflow Services
  • Build the Inventory Service workflow service and complete the definition of the Order Fulfillment workflow service by adding activities to it that call out to the Inventory and Credit Card Processing services
  • Build out the Labeling Service workflow using the FlowChart designer
  • Lab: Building a Simple Workflow Service
  • Reusing the Inventory Workflow in a Workflow Service
  • A Quick Test of the Inventory Workflow Service
  • Adding Correlation Support
  • Lab: Building a Workflow Service with FlowChart
  • Updating the Labeling Service workflow
  • Lab: Calling out from the OrderFulfillment Workflow Service
  • Creating the Inventory Service Client Activities
  • Adding the ReserveOrder Client Activity to the OrderFulfillment Service
  • Creating the Credit Card Processing Client Activity
  • Using the ASMX Credit Card Processing Service Client Activity
Skills
  • Build a stand alone service (the Inventory Service and Labeling Service) and a service orchestration (the OrderFulfillment Service)
  • Understand how to easily re-use an existing workflow within a workflow service as well as how to build client activities that call other services
top
Module 6: SharePoint 2010 Integration with Workflow Services
  • Understand how to make calls out to SharePoint from a workflow service to create a task
  • Allow SharePoint to call back in to a running workflow service instance when an action is taken on that task
  • Lab: Calling SharePoint from Workflow Services
  • Creating the CreateSharePointTask custom activity
  • Adding the CreateSharePointTask activity to the OrderFulfillment Service workflow
  • Lab: Calling Workflow Services from SharePoint
  • Updating the OrderFulfillment Service workflow to handle Task completion
  • Creating the Event Receiver
Skills
  • Understand how to both make calls out to SharePoint from a workflow service to create a task, as well as allow SharePoint to call back in to a running workflow service instance
top
Module 7: Calling Workflow Services from ASPNET & Silverlight
  • Update a website to place an order and approve label proofs by communicating with the OrderFulfillment workflow service
  • Lab: Creating the ASPNET Client
  • Submitting Orders from the Website
  • Lab: Creating the Silverlight Client
  • Updating the Silverlight Client to Approve Proofs
Skills
  • Understand how you can make calls out to a workflow service from an ASPNET website as well as from a Silverlight client
top
Module 8: Debugging, Troubleshooting & Error Handling
  • Introducing techniques to resolve issues with Workflow Services
  • Lab: Debugging with Visual Studio
  • Creating the Problem
  • Debugging a Workflow Service Using Visual Studio
  • Lab: Diagnosing Problems with ETW
  • Enabling ETW for Workflow Services
  • Diagnosing a problem using ETW
  • Lab: Diagnosing Workflow Service Problems with the AppFabric Host
  • Diagnosing a problem using the AppFabric Host monitoring, custom tracking profiles and variable queries
  • Lab: Resilient workflows using Compensation, Cancellation, and the AppFabric Host’s exception handling
  • Suspending a workflow instance after an Unhandled Exception
  • Enabling Compensation & Cancellation in the OrderFulfillmen tService
  • Utilizing Cancellation with the AppFabric Host
  • Utilizing Explicit Compensation
Skills
  • Understand numerous approaches for debugging, diagnosing, and repairing workflow services using Visual Studio’s debuggger, ETW tracing and the AppFabric Host’s monitoring
  • Explore the compensation and cancellation options available in combination with the AppFabric Host’s action on unhandled exception configuration for designing resilient workflow services that can either retry during an exception or fail gracefully with workflow defined cleanup logic
top
Module 9: Deploying Workflow Services
  • Introducing the Web Deployment Tool (MS Deploy)
  • Configure a database deployment that includes a database accessed via the Entity Framework, as is the case for the Inventory Service
  • Lab: Creating a Package
  • Create the deployment connection string
  • Configure the Package properties
  • Create the Package
  • Lab: Importing the Package
  • Create the Configuration for Test
Skills
  • Create a deployment package and import it into IIS
top
Module 10: Versioning Workflow Services with the Routing Service
  • Using the WCF Routing Service
  • Versioning Workflow Services with the Routing Service
  • Lab: Enabling the Routing Service
  • Creating the Router Service endpoint
  • Lab: Versioning with the Routing Service
  • Creating the updated OrderFulfillment Service
  • Configuring the Routing Service to Route according to the ServiceContract namespace
Skills
  • Demonstrate an approach you can take to versioning workflow services by defining a versioning token
  • Use the Routing Service to direct messages to the endpoint representing that version of the workflow service indicated by the versioning token
top
> Pre-Requisites
Before attending this course, students must have the following pre-requisites:
  • Experience developing applications using previous versions of Microsoft Visual Studio and some experience of WCF services.
> Purpose
After completing this course, students will be able to explain WF4 concepts and features along with the ability to build Workflows that contain Custom Activities produced by the use of Activity Designers; access the Entity Framework from WF; develop Workflow Services which interact with WCF; use the SharePoint 2010 Integration features; call Workflow Service from ASP.NET & Silverlight clients; debug & enable Error Handling In WF4; deploy a Workflow in to IIS 7.0; configure & Maintain a WF Service In AppFabric; use Enterprise Grade Hosting and monitoring for WF4 and WCF Services with AppFabric.