[WF4]Rehost Designer With Visual Tracking

This Designer is detailed explained in the last chapter of Book<Microsoft Windows Workflow Foundation 4.0 Cookbook>Download source code here: MyWF4Designer.zip (962.07 kb) Note:This sample I create for personl test only, and may keep changing in the future, since some dlls are borrowed from ... [More]

[WF4]Try Catch activity in code

Use Try Catch activity in the pure C# way. First, Create a workflow with Try-Catch in pure C# code: using System; using System.Activities; using System.Activities.Statements; namespace ErrorHandling {     public class ErrorHandlingWorkflow... [More]

[WF4]Hands On Lab: Introduction to Windows Workflow Foundation (WF4)

Here is THE LINK: http://visualstudiogallery.msdn.microsoft.com/7fe6f504-a58d-456e-8f55-e64bddc81a41/ Description: Welcome to Windows Workflow Foundation 4 (WF) Microsoft's programming model, engine and tools for quickly building workflow-enabled applications. This release of WF in .NET Frame... [More]

[WF4]A sample of IActivityTemplateFactory

By default, in WF4, we have a ReceiveAndSendReply activity in Toolbox. But we cannot find such a ReceiveAndSendReply class in .net Reflector. So, where comes the ReceiveAndSendReply activity? yes, it is the magic feature of IActivityTemplateFactory. We can use this class as a composite activity wra... [More]

[WF4]Extracts of Windows Workflow Foundation 4.0 Cookbook

Packt told me that they made some part of the book public. Chapter "Introduction" https://www.packtpub.com/article/working-microsoft-windows-workflow-foundation-40-wf-program Chapter "Hosting WF4 Application" https://www.packtpub.com/article/hosting-workflow-applications-microsoft-windows-work... [More]

[WF4]Should we delete sad:XamlDebuggerXmlReader.Filename attribute?

Opening a WF4 workflow in xaml editor. you can find that sad:XamlDebuggerXmlReader.Filename attribute point to a physical file path. What a mysterious physical path. Why do we need this attribute? this attribute is used for WF4 workflow debugging. VS debugger will find the break point code line in t... [More]

[WF4]Abandon or AbandonAndSuspend

When you host Workflow in IIS/Appfabric. You may have to set the unhandled exception behavior: <workflowUnhandledException action="AbandonAndSuspend" /> So, what is the difference between Abandon and AbandonAndSuspend. By default, WorkflowServceHost has the ability to resume persisted work... [More]

[WF4]Persistence Store Or Instance Store

  Persistence Store and Instance Store actually indicate the same thing.In WF3/3.5, the type is SqlWorkflowPersistenceService So, people usually call it Persistence Store. while in WF4 the type is: SqlWorkflowInstanceStore People call it Instance store. There are other differen... [More]

[WF4]WF4 Activity Validation

1. Basic Validation: public class PersonInfo:NativeActivity {        public string Name { get; set; }        public int Age { get; set; }  ... [More]