workflow-foundation

Trigger ad-hoc activity within a workflow

I am looking to use WF 4 to replace an existing workflow solution we have. One feature that is currently used in the existing workflow engine is the ability to cancel a current activity and loopback to a FlowSwitch type activity. So given the following crude workflow where we start at 'O' and base in the input data the workflow follows ...

silverlight and windows workflow foundation

private void btnUpdate_Click(object sender, RoutedEventArgs e) { xxxxxxx.Workflow1_WebServiceSoapClient zer = new xxxxx.Workflow1_WebServiceSoapClient(); zer.demanderSubmitReportCompleted += new EventHandler<xxxxxxxxxxxxxxx.demanderSubmitReportCompletedEventArgs>(service2); zer.demanderSubmitReportAsync("zzz",...

WorkFlow and WCF dynamically launching WorkFlows

I have a WF which will be hosted on WCF . The service Contract will contain a single operation containing two parameters. Parameter1 will be a string and will contain the name of the workflow to invoke and parameter two will contain the input for the invoked Work Flow. All operations will take the same parameter. All the operations will ...

Custom activity designers in Workflow Foundation 3.5: How do they work?

Intent of this post: I realise that Workflow Foundation is not extremely popular on StackOverflow and that there will probably be not many answers, or none at all. This post is intended as a resource to people trying to customise workflow activities' appearance through custom designer classes. Goals: I am attempting to create a cust...

DefaultSchedulerService in ASP.NET application

Hi, My project has a requirement to implement look-ahead caching i.e. triggering another request on invokation of a specific request. The following details in short the implementation - HttpModule parses the SOAPRequest and matches entry in a configuration file for look-ahead candidate. If the request matches, it prepares the Parameter...

Windows Workflow Foundation equivalent of "lock"

I have a class that inherits from SequentialWorkflowActivity, which can be executed simultaneously in multiple threads, and I need to make sure that part of the activity is never interrupted never executed across multiple threads How can I do this in a WWF custom activity? ...

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...

Resources for Customizing TFS Build 2010

I am looking to create a way to build my Legacy Delphi 5 and 6 apps via TFS Build (using TFS 2010). I was fairly dangerous with the MSBuild way of doing things and I think I can still do that, but I would like to get into the Work Flow way of doing it. Are there any resources out there that discuss customizing a TFS Build via Windows W...

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...

silverlight and windows workflow foundation

Hi, can i comunicate a silverlight application with a windows workflow foundation app,if yes how can i do that? , i try to add a reference from my silverlight app to a windows workflow app and it doesnt work. Thanks ...

what to use for repetitive (daily, weekly, monthly) tasks ? Workflows, Windows Services, something else?

I've been writing Windows Services for a while and they always seem to work fine for things that need to run every day, few times a week, once a month, etc. but I've been lately thinking about going with Windows Workflow Foundation. However, I am unsure how would they run on a server without some container application (for instance Shar...

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...

View the xaml of a Windows Workflow file in Visual Studio

I have a file (just a file. It is not in a solution) that is a Windows Work Flow file. When I open it I get the GUI interface for WF. How can I show the xaml under it? (With out making a solution and adding my file to the solution.) ...

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 to force a workflow to terminate?

How can i abruptly terminate a workflow in a middle of an activity interrupting the flow sequence? ...

What is the best way of doing this? (WCF 4)

I have a multi-threaded, continuously running application that connects with multiple devices via TCP/IP sockets and exposes a set of WCF API's for controlling, monitoring and reporting on these devices. I would like to host this on IIS for the usual reasons of not having to worry about re-starting the app in case of errors. So the i...

Advice on using .Net WorkFlow State Machine. What would you do?

So I've been tasked at work to write windows services to replace some old legacy VB6 WinForms apps currently running as services, consistently repeating tasks day-to-day. To give some general background, they have there own state machines built in to handle decision basing and not utilizing threading. A lot of the senior developers here...

How do I reload persisted workflow in Idle state after the WorkflowRuntime was restarted? (newbie question)

Hi, I am planing to create long lasting workflows which I would like to persist when they become idle. However, meanwhile they are in Idle state, the WorkflowRuntime might be restarted. The question is: How do I create the WorkflowRuntime in a way, that it will reload all stored idle workflows? Thanks for any pointers. ...

Windows workflow foundation published as a web service and Sql Service persistance

Hi i try to add persistance to my workflow using sql service persistance and all i know is how to add Persistence Service to the Workflow Runtime using code in the host app or web.config file.i my case i have WF as a webservice so i add to my Web.config this code: <add type="System.Workflow.Runtime.Hosting.SqlWorkflowPersist...

get my runtime instance for a windows workflow foundation published as a web service

Hi , how can i get my runtime instance for a windows workflow foundation published as a web service. thanks ...