workflow-foundation-4

To Workflow or Not to Workflow?

I am responsible for a team of developers who will are about to start development of a light weight insurance claims system. The system involves a lot of manual tasks and business workflows and we are looking at using Windows Workflow (.NET 4.0). An example of the business domain is as follows: A policy holder calls the contact centre ...

How can I add validation error tooltips in an ActivityDesigner?

I can't seem to get it working at all. The ModelItem has a couple attached properties on it, ValidationState and ValidationError. I'd like to watch the ValidationState and, if Error or whatever, display the error in the tooltip for the control. Here's as close as I've come so far: <TextBox x:Name="expression" Text="{Binding M...

RESTful Workflow Service Endpoints in WF4 / WCF

Folks, I'm building a pretty standard workflow that I want exposed via a WCF endpoint - I'm using the "WCF Service Application" project template and I've got a .xamlx service. This is a very simple document interchange workflow service - I want consumers to POST me a blob of XML as the body of an HTTP post (with HTTP headers containing...

Secure a WF4 Workflow Service with ADFS2/WIF ?

I have a .xamlx Workflow Service that I would like to secure so that it can only be called by clients that have obtained a token from my STS (ADFS v2.0). Normally this is very easy to do if you're using a "Web Site" project template, and you've added a .SVC service - the "Add STS Reference" wizard will find the service you want secured a...

Reusing the TypePresenter in an ActivityDesigner

The TypePresenter, which is the dropdown for selecting types when defining Variables and Arguments in the workflow designer, can be reused in your own ActivityDesigners. It works great for the default types, but if you select Browse for types... the dialog which shows up is empty. Instead of having a nice list of referenced assemblie...

Getting request IP and headers

I am building a service in Windows Workflow Foundation 4.0 in Visual Studio designer mode. How do I retrieve client IP and request headers in WF, VS Designer mode? ...

asp.net 4 workflow examples

I'm trying to locate examples on how to implement .net 4 workflow into an asp.net site. So far all of the examples I've come across have referenced workflow as it existed in .net 3.5.. Which is different. I'd like to avoid having a WCF service container and instead just have the workflows loaded directly by the sites in question. So, ...

Do WF and nServiceBus overlap? How? And which to use?

Is there any overlap between MS WF and NServiceBus, in terms of workflow specifically? Is there a need to use one if the other is already in use? How well do they play together? ...

how to consume wf4 service from wpf

I'm not sure if I really understood what workflow foundation is. I recently started working on it and I was really amazed to be able to code using flowcharts. My requirement is to send xml request to wf4 service using pretty much any kind of soapclient. It could be xmlhttp or from a wpf application. Currently I added a xbap project and...

Is it possible to create a WorkFlow (in Workflow-foundation -4) dynamically?

Is it possible to create workflows dynamically? I need to generate a WF dynamically based on a set of business logic and service execution sequence I get as input to the system. Is it possible for me to generate the workflow.xaml dynamically without using the wf designer and execute in the cloud ? ...

How can I use a "default branch" inside a pick activity using workflow foundation 4?

I'm using a pick brabch acitivity with two branches. Each branch has a receive action, but when the workflow is paused on the pick activity waiting for a cliente comunication and I call a service method wich is not in those brach activity I got a error. Actually I think the workflow enter in an infinite loop or something like. Is there ...

How to Suspend a Workflow (Declarative Service Library) Service?

Scenario DeclarativeServiceLibrary[FlowChart] with Two Recieve - Send Reply Activities persistence enabled and working WebApplication "Service Reference" is above mentioned declarative service library Question Is there anyway to Suspend workflow after receiving reply from first activity ? Whether it is possible via exposed WCF ...

Learning Windows Workflow Foundation 4, where to start?

I have been playing around with wf4 for a while. I found various articles, videos(channel 9), blog posts and sites about wf4, but couldn't able to organize it in a proper way. I look forward to create a Learning Catalog for Windows Workflow 4 with VS 2010 and IIS 7 (without AppFabric ) Windows Workflow 4 with VS 2010 and IIS 7 (with ...

How to handle user input in a workflow

Hi, I'm building a small workflow application to test out the abilties of WF. What i got so far: I can run the workflow and add the parameter that is used in the StartProcess operation. So the flow goes through the first decision and comes to either Invoice payment or Creditcard payment. The next part is my question: When the flow re...

Exception escapes from workflow despite TryCatch activity

I have a workflow inside a Windows Service that is a loop that performs work periodically. The work is done inside a TryCatch activity. The Try property is a TransactionScope activity that wraps some custom activities that read and update a database. When the transaction fails, I would expect any exception that caused this to be caught b...

Windows Workflows & Global events

I'm relatively new to using Windows Workflow but we have a requirement whereby all currently active workflows undertake an action based upon a "global event" rather than an event based upon a single instance. e.g. you could have a workflow which is used for the submission and tracking of tickets, with the scenario that when the support ...

WF4 Transactions and Persistence

Hi! I have a couple of questions about transactions in WF4... According to this http://social.msdn.microsoft.com/Forums/en-US/wfprerelease/thread/aeab2bcd-26c6-49be-8e08-d65ee2688038 4) There is an implicit Persistence Point at the end of both the TransactionScope and TransactedReceiveScope activities. The persistence operation is ti...

Windows Workflow 4, Persistance, and Data Services

Hi All, So I'm starting to work with the new workflow enginge (wf4) after previously working with 3.5. And I must say it is greatly improved! However, now I am trying to port over some existing workflows to WF4 and have ran into some snags (as is always the case). So my main problem is that in WF3, it was all interface based and the ...

WF: Check if the workflow application was cancelled from a custom activity

Hi, How can i check from my NativeActivity if the 'Cancel' method of the workflow application was invoked? I tried to use the 'IsCancellationRequested' property of the context but it doesn`t much. Here is my sample: public class Program { static void Main(string[] args) { ManualResetEventSlim mre = new ManualResetEve...

Windows Workflow 4.0 & implementing activity timeouts

I have a scenario whereby we need an activity to have a timeout associated with it so that if the activity doesn't complete within a defined period then we move on to a different activity. How would i go about implementing this with Windows Workflow 4.0? Clearly a parallel activity doesn't give me what we want? e.g. If i had an activi...