workflow-foundation-4

Please confirm: Is Windows Workflow Foundation a good horse to be backing right now?

We are in the process of selecting a workflow solution for a company that uses Microsoft products end to end. Given the news on WF4, in that it seems to be essentially a rewrite of previous versions, is it a wise move to back the current version or should we be looking elsewhere? Ie - is the current version so bad that we would not be w...

Workflow 4.0 Argument Errors

I'm having two errors with workflow, one I think is caused by a bug in the compling with VS2010, its Error 1 Could not resolve attachable member {clr-namespace:;}Flowchart1.requestType C:\Documents and Settings\Hilliard\my documents\visual studio 10\Projects\WorkflowConsoleApplication1\WorkflowConsoleApplication1\Flowchart1.xaml Work...

What is the difference between a protocol and a named bookmark in WF4.0?

An ActivityExecutionContext has three ways of creating bookmarks: CreateBookmark, CreateNamedBookmark and CreateProtocolBookmark. Which one is supposed to be used for what kind of async operation? What is the difference between a named and a protocol bookmark? Which of the two does CreateBookmark() return and why the special case? It a...

Attached properties in WF4.0?

Is there support for attached properties in WF4? If not, how are scenarios common to attached properties ("arbitrary property of parent associated with children") supported in WF4? ...

Custom activities in Workflow 4.0: WorkflowElement or Activity/CodeActivity?

I'm evaluating the new version of Workflow Foundation (4.0), but I'm a bit confused about custom activities. I'm using the Beta 1 bits. I believe that if I want to create a custom activity I should extend WorkflowElement, and if I want my custom activity to hold other activities I should extend Activity. However, WorkflowElement appea...

Save workflow designed in re-hosted designer WF 4.0

I have given user a re-hosted designer with custom activites so that user can create its own workflows. Now I want to give user option to save the workflow designed in re-hosted designer, an Xaml file, in WF 4.0. I want to save workflow along with the activity variable/property values. How can I do that? ...

Entering Data in a Custom Activity at Design Time (WF 4.0)

I want to better understand the capabilities and limitations of what can be done with custom activities in WF 4.0 at design time. More specifically, what we can do in a custom activity such that we can allow the designer to interact in a customized way at the design time for specifying details/data about an activity. For example, I wou...

WF 4.0 Resources Collection

Though WF 4.0 beta1 released, we dont have much resources available on the net to understand the concepts.. i know lot of bloggers are keep putting some materials about WF 4.0. it would be great if we share all the resources here.. From my side, Linked list all WF 4.0 Collection... http://www.codeproject.com/KB/WF/WF4Services.aspx h...

How to query a workflow instance for its execution state.

I have created a workflow, and Im running it via WorkflowInstance.Run(). This workflow has numerous bookmarks, and I would like to be able to query it for which bookmark is responsible for the current idle-state. How might I do this? Thanks ...

Is it possible to inject values into Workflow Arguments?

I have a .net 4.0 Workflow, which I am hosting myself (just with WorkflowInstance.Run) and when I rehydrate the workflow I would like to initialize some of its internal arguments so that subsequent activities can use these values... How might I go about doing this? ...

Best way to run multiple workflows concurrently in WF 4.0

I have a routine that creates n instances of a particular workflow and runs them each serially. How could I fire them off async? Current p-code: forloop // Create var syncEvent = new AutoResetEvent(false); WorkflowInstance myInstance = new WorkflowInstance(new SomeWorkflow(), parameters); ...

XC1020: Build error occurred in the XAML MSBuild task: 'Could not load file or assembly'

I am facing a strange issue. I had a console application project with some referenced dlls and it was working fine. Now i am trying to convert that project into a workflow based project. I created a sequential workflow console application project. Now when I add reference of same set of dlls which were reffered in the console applicatio...

How to solve unknow type problem when load a Xmal file

I am facing this error, "Cannot create unknown Type '{clr- namespace:ActivityLibrary1;assembly=ActivityLibrary1}MyActivity1'" while trying to load a worklfow from Xaml file. I am trying to load Xaml from a class library project. ActivityLibrary1 is library that contains custom activity. I tried to resolve assembly at runtime by handling ...

Problem in VS2010 beta or Dll?

I am facing a strange issue. I have created 5 projects in a solution which are of type Windows Class Library, Windows Console Application, Windows WPF Application, Workflow Activity Library and Sequential Workflow Console Application. I have added reference of same dll in all five projects. Without writing any code I build the projects. ...

How do I use the Result from a CodeActivty<string> in WF 4.0?

I've created a custom activity in a .NET 4.0 beta 1 WF project. It's defined as: public class GetCurrentUserMailAddress : CodeActivity<string> because I've read that this is the most efficient way of returning a single result. At the end, I set the Result using: context.SetValue(Result, up.EmailAddress); But now I'm struggling ...

Help with debugging an object not arriving at WCF/Workflow in .net 4.0 beta 1

I'm using VS 2010 and .net 4.0 beta 1 to do some workflow using WCF. I've created a XAMLX WCF/WF service to receive and process an instance of a class. The class is just a DTO marked with DataContract/DataMember attributes. I've tested it with the WcfTestClient and it works. So, now I've created another WCF/WF workflow to consume t...

Run WF 4.0 as a server-side component

Hi all, For a new project, we need to use WF 4.0 for deploying and running workflows. Instead of hosting workflows within the application itself, we decided to implement a server-side component that is in charge of running workflows. Before WF 4.0, one had explicit access to the the runtime engine (WorkflowRuntime), which provided some...

Windows Workflow 4.0 FlowSwitch not working

I'm creating a FlowChart within a Windows Workflow 4.0 project in Visual Studio 2010. I've added a FlowSwitchwith an expression of a variable passed in as an In Argument to the Activity. I can debug and see the values are passed in correctly, however my FlowSwitch is not switching at all to a case that is defined as the value being pas...

Windows Workflow Dynamic, User-Created Workflows

I have a client who's interested in utilizing Windows Workflow technology in a web-driven application. I'm a .Net developer but have no experience with either WF or SharePoint workflows. Most of what the client wants to do seems to be straight-forward except that they want the ability for end users to be able to create/edit their own c...

Windows Workflow 4.0 Activities not being added to the toolbox

I've created a class project in VS 2010 Beta 2. I've added one Activity to it. Saved it. Created another Activity. I would expect the first Activity to appear in the toolbox so I could drag it into my workflow, but it's not. Any ideas? ...