Welcome to Windows Workflow Foundation (WF)
Top Tasks :

WF Team Bloggers

Browse by Tags

All Tags » XAML Activation   (RSS)

  • Project template for XAML Activation Console Application

    If you work with XAML activation from time to time and like being able to debug your workflow using a console application you should install these templates. However, you don’t like having to modify the default console application template each time. I created sequential and state machine console application project templates for both Visual Basic and C#. This posting is provided "AS IS" with no warranties, and confers no rights. Read More...
  • Examples of using Persistence and Tracking in ASP.NET

    When you are working with ASP.NET you may have the need to persistence and / or tracking. I have put together two examples, one with shared databases and the other with separate, and included the command scripts to create the databases for you. The sample is written using Windows Workflow Foundation Beta 2.2 and will not work on prior versions. When you run the project you will start on Default.aspx. If there are no existing orders that have not been completed you are redirected to Order.aspx. If there are any existing orders there will be a link for each existing order. Click on the link to start processing the order from its current state. You can click on the enabled button to move the order through the order process. This posting is provided "AS IS" with no warranties, and confers no rights. Read More...
  • Examples of using Persistence and Tracking in ASP.NET

    When you are working with ASP.NET you may have the need to persistence and / or tracking. I have put together two examples, one with shared databases and the other with separate, and included the command scripts to create the databases for you. The sample is written using Windows Workflow Foundation Beta 2.2. When you run the project you will start on Default.aspx. If there are no existing orders that have not been completed you are redirected to Order.aspx. If there are any existing orders there will be a link for each existing order. Click on the link to start processing the order from its current state. You can click on the enabled button to move the order through the order process. This posting is provided "AS IS" with no warranties, and confers no rights. Read More...
  • Using XAML activation in ASP.NET with a StateMachineWorkflow

    If you want to use XAML activation in ASP.NET you will need to be using Windows Workflow Foundation Beta 2.2, that can be found here . The reason for this is that although XAML activation works in most cases with Beta 2 it isn’t officially supported in that build because it was added as a feature at the last minute and was not fully test yet. Below is a sample that uses XAML activation to start a StateMachineWorkflow in ASP.NET. This posting is provided "AS IS" with no warranties, and confers no rights. Read More...
  • XAML activation and how to use it

    XAML activation is when you use the serialized xoml file to create and run a workflow instance. You will use one of the following WorkflowRuntime methods to create the workflow instance: public WorkflowInstance CreateWorkflow( XmlReader workflowDefinitionReader); public WorkflowInstance CreateWorkflow( XmlReader workflowDefinitionReader, XmlReader rulesReader, Dictionary < string , object > namedArgumentValues); public WorkflowInstance CreateWorkflow( XmlReader workflowDefinitionReader, XmlReader rulesReader, Dictionary < string , object > namedArgumentValues, Guid instanceId); Activation can be used for sequential or statemachine workflow, samples for each are attached to this post. You are not able to use any code beside. This will require you to add any needed variables or handlers to a compiled type, like your base activity. The only difference between a xoml file used with activation and one that is compiled into a type is the x:Class attribute. The attribute is used by the workflow author to explicitly state that the workflow must be compiled into a type and to define the class name for that type. If you are getting an exception when the call to CreateWorkflow is made try the following to help resolve the error(s): try { WorkflowInstance instance = workflowRuntime.CreateWorkflow(xomlReader, ruleReader, parameters); instance.Start(); waitHandle.WaitOne(); } catch ( WorkflowValidationFailedException exp) { StringBuilder errors = new StringBuilder (); foreach ( Read More...

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us