workflow-foundation-4

Binding data to Combobox in custom activity designer

I have a custom activity, with a single in argument which is a string. However, rather than allow the designer to enter an arbitrary string, I want the designer to be presented with a Combobox with the list of options, the options are dynamic and are loaded from a database into a List<> collection. My problem is I have no clue how to b...

How does one set the Id of a WorkflowApplication instance in Workflow 4.0

Hi, In workflow 3.0-3.5 you could explicitly set the Id of a workflow you start. This feature was particularly useful. I cannot see a way to do this in Workflow 4.0. Does anyone know if this is possible? Since the Id property is read-only and there is no overloaded constructor accepting an Id, the only possible mechanism I see is if t...

Call center workflow scenario with WF 4

I need to develop a workflow for a call center. A bot will ask some predefined questions to the caller. Based on the answers the workflow will decide the questions to ask and finally redirect the caller to a representative that has required skills. Based on the scenario above, I have several questions. How can I make the workflow "wait...

Memory leak when using Workflow 4.0 SqlWorkflowInstanceStore and PersistableIdleAction.Unload

Hi, This particular problem is driving me nuts. I wonder if anyone has experienced a similar problem. If I load up a workflow then unload it and perform a memory snapshot then the result is predictable - my workflow is no longer in memory. However, if I load up a workflow and set the PersistableIdle action to PersistableIdleAction.Unloa...

How do I pass argument from an activity to another in Workflow 4

Hi I have created an Activity (CodeActivity) that retrieves the temperature where I live. I wan't to add that activity to a workflow and connect it to an if statement/activity that can based on my temperature outargument do different things. But I can't seem to find how to access the outargument from my temperature-activity. This is my ...

Need tutorial for custom DialogPropertyValueEditor workflow foundation 4.0

I have a custom activity which has inargument<MyClass>. MyClass has several properties. I want to provide a popup dialog editor for this inargument which will present a form, to input the values of all properties. Is there any good example, tutorial showing all the steps to implement this? ...

Appfabric WF4-WCF services, how to retrive current url in codeactivity without httpcontext?

Hi, i have developed a wf-wcf services with a code activity and in it i want to retrive the current url of the service. If i disabling the persistence feature of appfabric i can retrive the url using HttpContext.Current.Request.Url.ToString() If the persistence feature is enabled the httpcontext is null. There is a different way to...

Is possible to integrate elmah with wf-wcf services using web.config?

Hi, i'm developing an enterprise application using asp.net mvc, wf-wcf services and normal wcf. I want use a unique point of view of unmanaged exception and my problem is integrate wf-wcf services with ELMAH. The problem is that in wf-wcf i can't decorate di class with the elmah attribute so i make that using web.config if is possible. ...

WF4 - Display workflow image in asp.net and highlight an activity

i need to display current status of a document approval workflow task in asp.net web page with a specific activity highlighted. i have seen the visual workflow tracker example (in wf&wcf samples) but i have two issues, 1-i have to render workflow in asp.net not in a wpf app. 2-i don't need to display current status with workflow runn...

Loading a Workflow 4 from xaml file and adding it to workflowdesigner

Hi I have created a couple of activities and stored them as XAML. Opening them in the Workflowdesigner works great and I can Execute them. Now I would like to create a new Activity and add the activities I created to it. Basically loading it from the XAML and into the designer as part of another activity/flow. I have tried adding my act...

How to read the Web.Config file in a Custom Activity Designer in a WF4 Workflow Service

I have a WF service with a custom activity and a custom designer (WPF). I want to add a validation that will check for the presence of some value in the web.config file. At runtime I can overload void CacheMetadata(ActivityMetadata metadata) and thus I can do the validation happily there using System.Configuration.ConfigurationManager t...

"type not defined" exception with WF4 RC

Hi, I`m gettin the following exception while invoking my workflow (dynamically): The following errors were encountered while processing the workflow tree: 'DynamicActivity': The private implementation of activity '1: DynamicActivity' has the following validation error: Compiler error(s) encountered processing expression "TryC...

Windows Workflow Foundation 4 (WF4) Arguments

I am working on a WF4 project for manager's to approve requests made to them for resources needed. I and am passing in an argument of a custom type, a class called "Request". The Request class contains a List of type Player where "Player" is another class I've created to represent the approving manager. I'm using the DataContract Seri...

How to do "Adding activity event status to a workflow image" in wf4 as theproblemsolver did it with wf3

theproblemsolver has an example to show the status of workflow as image for wf3, the question is how to do the same thing in wf4? http://msmvps.com/blogs/theproblemsolver/archive/2007/01/07/adding-activity-event-status-to-a-workflow-image.aspx ...

Simulating inheritance with WF 4.0

Hello everyone, I would like to achieve the following: all the workflows created should have the same structure (validation, execution, save results), and all the developers should implement those three stages (maybe leaving it empty). Similar to inheritance with abstract methods. Any ideas? ...

Windows Workflow Foundation: Recommendations how to design architecture

We are running several the same ASP.NET applications (one per customer) based on our custom framework (libraries). Each application use its own database (Initial Catalog in the term of connection string). Now we would like to add workflow capability (of course 4.0 ;) to the applications. So the particular workflows will be the same for a...

Activity creation events in workflow foundation 4

I skimmed through the documentation but couldn't find an event handler to intercept activity creation in a workflow instance. I want to be notified whenever a new activity is created / entered. Thanks. ...

Windows Workflow Foundation: Multiple applications

We are running several ASP.NET applications (one per customer) based on our custom framework (which just extend ASP.NET). Each web application use its own database (Initial Catalog in the term of connection string). Now we would like to add workflow capability to the applications (to our framework respectively). The particular workflows ...

Where to host Windows Workflow Foundation engine?

Is there any guideline to make the decision where to host WF: in our own custom windows NT service or inside IIS? ...

Accessing Arguments, Workflow Variables from custom activities

I have a workflow composed of many custom activities. All these activities need to access startup arguments of the workflow itself. I can define InArgument inside all these custom activities and bind the workflow arguments to custom activity arguments but I am not comfortable with this solution. What is the best way to access workflow le...