Workflow

An extension method to Find Sibling Activity

I’ve created an extension method to Find Sibling Activity by name Based on example from http://msdn.microsoft.com/e... public static TActivity FindSiblingActivity<TAct... Activity sender,string activityName) where TActivity:Activity { //CodeActivity thisActivityInstance = sender as CodeActivity;sender. Activity parent = sender.Parent; var retActivity=parent.GetActiv... as TActivity; Debug.Assert(sender.IsDynam... ......

Extension method to find root Parent Workflow of current activity

Below is an extension method to find root Parent Workflow of current activity /// <summary> /// Get root Parent Workflow of current activity /// <param name="activity"></par... /// <returns></returns... public static Activity FindRootWorkflow(this Activity activity) { List<string> list = new List<string>(); Activity act = activity; while (act != null) { if (act.Parent==null) { return act; } act = act.Parent; } return null; } It was asked in MS Connect Suggestion ......

Refer to Activity from workflow in the same project.

I have a project with a few workflows. I created a custom activity and I've added it to the same project. But then I found that I am not able to insert/drag it to my workflow. The only solution, that I found, was to create a separate Activity Library, move my custom activity to the library, and add a reference to the library from Workflow Project. It looks like that you unable to Refer to Activity from workflow in the same project ......

"The project type is not supported by this installation" for Workflow project

Download from ActivityExecutionContext in Workflows caused "The project type is not supported by this installation" when opened the solution. On my machine I have Workflow only for VS 2008, but not for VS 2005, but the download solution was in 2005 format. I've explicitely started VS 2008 and then converted solution from 2005 to 2008. Error disappeared. Similar problem with Moral: If you are trying to develop with .NET 3.0 maybe it’s a good idea to check that .NET 3.0 is installed first... described ......

Using of Workflow Dependency properties.

In our Workflow application it was created a lot of Workflow level Dependency properties that was used to interchange data between different activities. Workflow.PropertyA= Activity1.PropertyA Activity2.PropertyA=Workflo... We believed that is a safe way to avoid concurrency problems. But it was WRONG. Article ActivityExecutionContext in Workflows explains, that Workflow properties as a shared data between activities is not a safe method and can cause concurrency errors in case of CAG or ......

Workflow Activities should be referred by sender object or e.Activity, not by activity property name

In Windows Workflow I had a Replicator Activity inside While Activity. In Replicator _Initialized event handler I've set the InitialChildData property of the activity with the list of my objects, but Replicator didn't invoke any _ChildInitialized event , but went directly to _Completed event (similar problem was reported in the thread ReplicatorActivity shows all children complete when they aren't ). I tried to change a few things without success.It was also confusing that even in Initialized AllChildrenComplete ......

Windows Workflow: Debugging Limitations.

In Visual Studio Debugger for Windows Workflow Foundation you MUST set the workflow DLL project as the Visual Studio solution startup project to debug the workflow using F5 Documented in http://msdn.microsoft.com/e... It is not intuitive restriction. I've posted to MS Feedback that it will be good to support workflow Debugging from any startup project. Recently I've noticed, that if workflow DLL project is a startup project, it doesn't support Edit&Continue in a code dlls. ......

Windows Workflow: Use of ConditionedActivityGroup activity

One of our developers used ConditionedActivityGroup activity with a single branch. ConditionedActivityGroup is a kind do of loop, but it should not be used instead of the WhileActivity. There are a few reasons for this: 1.Use the simplest tool that satisfy your requirement 2.workflow designer doesn't expand body of ConditionedActivityGroup, and you need to click it to Preview 3. If you have many activities in the workflow, the designer becomes terribly slow(VS 2008) The huge workflows should be considered ......

Windows Workflow: Concatenate all parents QualifiedNames- instead of call stack

MSDN Debugging Workflows tells that The entries in the Call Stack window are a depth-first search of executing activities. You can double-click an entry to put focus on the selected activity.-It doesn't work for me. The text on stack trace is not meaningful, when activities are described. > codeRaiseEvent_ExecuteCode(... sender = {codeRaiseEvent_CAGPNRIterate [System.Workflow.Activities... System.EventArgs e = {System.EventArgs}) Line 671 C# System.Workflow.ComponentMo... ......

Developers should avoid smart-quotes in Word

We had a Word document, describing steps, based on MSDN instructions Use the Windows Workflow Tracking Service I desided to create batch file createWorkflowTrackingDB.bat to create Database: @echo Change name of Database server if required @echo press control-Z to stop batch @pause sqlcmd -S localhost -E -Q "create database WorkflowTracking" c: cd "C:\WINDOWS\Microsoft.NET\F... Workflow Foundation\SQL\EN" sqlcmd -S localhost -E -d WorkflowTracking -i Tracking_Schema.sql sqlcmd -S ......

View Windows Workflow Tracked Data Tools

For some reasons, it took me a few google search attempts to find the following tools: MSDN includes Workflow Monitor Sample -Windows executable to view details of tracked workflows. When downloaded, copy EXE to your bin directory when custom workflow DLLs are located. Ensure that tracking database doesn't have too many instances, to avoid timeouts. Jon Flanders put together the ASP.NET implementation of the Workflow Monitor SDK sample. MSDN Tracking Samples mostly described how to store tracking ......

Is it possible to convert Workflow to Custom composite activity?

I am reading about Windows Workflow and have a question: If I created a workflow with a few activities (While,If etc) and want to convert it to custom composite activity with ability to insert new activities inside blocks, how can I do it? Analogy in ASP.NET is strightforward- just a few steps(see How to: Convert Web Forms Pages into ASP.NET User Controls ) . Is something similar available for WF? Related links how to write Custom activities: Creating a Custom Composite Activity – Morgan Skinner's ......

Store custom objects configuration in separate custom configuration files

We are going to have a windows service that will run a few workflow(WF) instances. I want to have configuration information to be stored in separate config files for each WF instance. I remembered that EntLib has helper classes to store custom objects configuration in separate custom configuration file, but finding good examples in Google wasn't easy(probably I didn't find good search keywords). The links that I finally found(more relevant to the task first) Tom Hollander 'post External configuration ......

«October»
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678