workflow-foundation-4

WorkflowServiceHost in Windows Workflow - .NET 4 version

I'm having trouble finding any worthwhile documentation on the new version of WorkflowServiceHost that ships with .NET 4 / VS 2010 Beta 2. The new version of the WorkflowServiceHost now lives in System.ServiceModel.Activities and has different contructors than the old, .NET 3.x version that lived in System.ServiceModel. I want to be a...

Are State Machines created in Windows Workflow 3.5 compatible with version 4.0?

If I have a State Machine created in version 3.5 will I be able to upgrade to .Net/WF 4.0, or will I have to re-create the functionality? I heard / read that 4.0 does not support State Machines. Finally, if you have a State Machine in 3.5, what is your plan for migrating to 4.0? ...

Windows Workflow Persistence data (VS 2010 RC / .NET 4.0)

I have started working with Windows Workflow recently (the VS2010 RC / .NET 4.0 version) and am stuggling to get to grips with the SQL persistence functionality. I have managed to attach persistence to my WorkflowServiceHost via an SqlWorkflowInstanceStoreBehavior object and in my database there are rows appearing in the [System.Activit...

Is sequential workflow console application available in Visual Studio?

Hi, I have Visual Studio 2010 beta2 installed in my system. The Issue is I am not finding Sequential Workflow console application option under File ->New -> Project->Workflow for (.net framework 4). I am trying to learn a workflow example tutorial for workflow 4.0. But in that example -explaining to create a new Sequentialworkflow Con...

Workflow 4.0 Activities not found

I am working on Visual Studio 2010 Beta2. I am creating a new workflow project.But under New_Project_WorkFlow the sequential activity workflow was not listed for .net framework 4. And even if i choose workflow console application i dont have an option to add a seqential activity in add -new item by right clicking on the project Toolbo...

Workflow Foundation .NET 4 learning resources

Can you recommend some resources (web or book) providing an introduction to Windows Workflow Foundation in .NET 4? Basic introduction is what I need at the moment but I would also very appreciate advanced-level materials. Thanks! ...

WF4RC, WriteLine activity throws error on StringWriter assigned to TextWriter

Hello Overflow, I am new to Windows Workflow [WF], and interested in evaluating WF for business purposes. I decided to work through an introduction [TestMethod] public void TestMethod () { TextWriter writer = new StringWriter (); Sequence sequence = new Sequence { Activities = { // so, assigning...

Custom activity in WF 4.0: WorkflowItemsPresenter wont show converted array

Hi There, we have an Array which is converted via a Binded Converter: else if (TTools.IsOfBaseClass(value.GetType(), typeof(System.Activities.Presentation.Model.ModelItemCollection))) { OurBaseClass[] test = (value as ModelItemCollection).GetCurrentValue() as OurBaseClass[]; List<OurBaseClass> list...

WF4 RC - ReceiveAndSendReply in a Flowchart

I am using the VS2010 RC, and trying to put a "ReceiveAndSendReply" activity into a Flowchart. When I drag the activity out of the toolbox and drop it into the Flowchart, all I wind up with in the designer is an empty Sequence activity. Using Receive and Send activities separately seem to work fine. Does WF4 support the ReceiveAndSendRe...

WF4 RC - Cannot create unknown type when loading WF Service from loose Xaml with ActivityXamlServices

Hello, I am trying to host a WF4 (RC) Service dynamically. I have a test solution with two projects. The first is a declarative workflow service library with one root Flowchart activity in it, and a simple custom code activity. The workflow service library does not depend on any other custom assemblies or references. The second is my ho...

WF4RC, How to: Activity to Xaml?

Hello all, I have Googled a bit, and cannot seem to find any examples of Xaml-fying Activities - good, bad, or otherwise! public static string ToXaml (this Activity activity) { // i would use ActivityXamlServices to go from Xaml // to activity, but how to go other way? documentation // is slim, and cannot infer proper usage...

Windows Workflow Foundation 4 (WF4) Persistence

I've been working with Visual Studio 2010 Beta-2 to get some advanced learning on WF4. Everything was going fine until today, when I un-installed Visual Studio 2010 Beta-2, and installed the Visual Studio 2010 Release Candidate. My code is complaining that it can’t find the System.Runtime.Persistence namespace that I am using, and also,...

How to define multiple Receive activities within a single workflow service (WF4)

Hi, I have a workflow service (defined declaretively in a .xamlx file) that currently contains one Recieve activity. As you may know, services usually expose more than one operation. And that's what I would like to do with my service too. How do I add more operations to this service? Without WF, that's really easy. Just add as many meth...

Scheduling runtime-specified Activity in Workflow 4 RC

Hi, so I have this requirement to kick off Activities provided to me at run-time. To facilitate this, I have set up a WorkflowService that receives Activities as Xaml, hydrates them, and kicks them off. Sounds simple enough ... ... this is my WorkflowService in Xaml <Activity x:Class="Workflow.Services.WorkflowService.WorkflowSe...

Registering ustom tracking participants through code in workflow foundation 4.0

I'm having touble trying to attach a custom tracking participant in workflow foundation 4.0. I have a class that inherits from TrackingParticipant but I cannot see any other way of attaching it to my WorkflowServiceHost other than through lots of messy app.config entries like the SDK example demonstrates below (in the system.servicemodel...

WF4 workflow versioning using WorkflowServiceHost

Related to this question. I understand how to implement versioning of workflows using WorkflowApplication. If you keep the original XAML definition for older versions of your workflow around, you can load them using the right WorkflowApplication constructor. How could you ensure that WorkflowServiceHost uses the correct workflow defini...

Workflow Foundation 4 - DeclarativeServiceLibrary - Error while calling second ReceiveAndSendReply Sequence - VS2010

Hi, I have created a DeclarativeServiceLibrary using VS2010 beta 2, Please check this image of Sequential Service Following is the code used to call these two activities ` int? data = 123; ServiceReference1.ServiceClient client1 = new ServiceReference1.ServiceClient(); string result1 = client1.GetData(data); ...

Host new WF4 workflows in appfabric

Hello, I am new to using AppFabric to host WF services. I am trying to write a workflow admin application that will allow users to create xaml workflow definitions using the hosted WF4 designer, and then somehow allow those workflow defitions to be automatically deployed and hosted in AppFabric with the click of a button. I have the de...

Design workflows for WF4 in Silverlight

Hi, Our system is based on flows and activities and we want to give the analysts users the opportunity to create dynamics flows (at runtime). The designer UI based on SL 4.0 . It looks like WorkflowFoundation is the most valuable solution but we didn`t find any WF version that fits to SL (to create the xaml in SL). Any ideas? any oth...

Windows Workflow Foundation 4.0 and WCF web service faults (soap fault)

In my Workflow Foundation 4.0 RC app I have a 'Receive' and 'SendReplyToReceive' WCF messaging pair that work fine with a simple request/response operation, but I'm having trouble attempting to perform validation on the request and reply with a fault. In WCF I am able to create a throw custom fault contracts (which in turn sent out SOAP...