workflow-foundation

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

Use Windows Workflow Foundation to develop timesheet approval and submit system

I'm planning to develop a timesheet system that requires users to fill out a form, submit, and requires manager approve/reject, and finally submit to finance. Since there's quite a bit of workflow, is WF a good tool for this kind of thing? I'm going to code it in ASP.NET. ...

.NET 3.5: How to host WF runtime in WCF?

I need to find a tutorial for hosting the Workflow Foundation Runtime in WCF using .NET3.5. Does anyone know any good links specifically on this? UPDATE: Preferably, it should have some code samples on the implementation. ...

Is it possible to configure the Windows Workflow SqlWorkflowPersistanceService to use different table/procedure names

Is it possible to configure the Windows Workflow SqlWorkflowPersistanceService to use different SQL Server table/procedure names than the standard out of the box installation as detailed on Microsoft's site at http://msdn.microsoft.com/en-us/library/ms735722%28VS.85%29.aspx ? I have to store my workflow information in a shared SQL serv...

Sharepoint custom workflow activity fails silently; FaultHandler not being called (or failing)

I have a custom Sharepoint workflow activity created in Visual Studio that works and logs properly in my test environment but fails in production with a generic "Error Occurred" message in the Workflow History list. In order to debug the activity (since remote debugging against production is a last resort), I implemented step-by-step lo...

WorkflowElement in Visual Studio 2010 Beta 2

I've downloaded beta 2 of visual studio and followed various tutorials (http://bloggersguides.net/media/p/188.aspx) regarding the creation of custom activities for Workflow. In all of the examples the activity appears to derive from WorkflowElement however it would appear not to exist in beta 2? I also notice that you can't create a Seq...

Performance implications of using WF to control UI navigation in ASP.NET MVC application

I need to build a web application with different process flows and different UI steps depending on the locale of the logged in user. I have developed a number of ASP.NET applications in C# and like the separation of concerns an MVC approach would give me. So I am looking at using these technologies. The kicker is that different user...

Windows Workflow - TerminateActivity causes workflow to fault?

I'm handling an exception in a FaultActivityHandler, at the end of which, I wish to end the workflow. To that end, I added a TerminateActivity to the fault handler. It looks like this causes the workflow to fault. Is there a better way of doing this? I could use an if-else to check for a an error flag, but this would end up with a lo...

Unit Testing a WF4 Workflowservice

I am playing around with WF4 beta 2 and want to unit test a workflowservice. Perhaps I am missing something, but this does not seem trivial. As far as I can see, I might use WorkflowServiceHost. But I think this is a lot of overhead to create a host and then consume it in the test. Is there not a simple way of testing a workflow servic...

InfoPath Workflow Task Losing ItemMetaData values

I have an InfoPath task form sitting on top of a State Machine workflow. The form works perfectly and I send quite a bit of data to using the ItemMetadata xml object. Everything works perfectly and my form properly picks up an ItemMetadata ows_ViewToUse value and switches to the view of my choice. Unfortunately, if somebody opens the ...

Re-hosted workflow designer - read-only view

Hi I have re-hosted the workflow designer in my own application. Now I want to make the workflow view read-only. I know I can disallow drag&drop but delete and move should also be disabled. I still want the user to be able to scroll in the view. Can anyone help. Best regards, Michael ...

Workflow 4.0 in a single threaded apartment?

I'm looking hard at WF 4.0 right now, but I'm having a hard time figuring out how to run workflows in STA threads. I've got a requirement for constructing XPS documents in a workflow, which means I need to create UI elements (FixedPage), which means the thread running the workflow has to be STA. In 3.0, you could do some magic (I didn'...

What are the good practices for hosting MS Windows Workflow runtime for an asp.net mvc application?

Hello Gurus, I'm working on a asp.net mvc project that will use MS Windows Workflow Foundation to manage client business work flows. These are long running workflows spanning in time over a year or two. So we've decided to use State Machine workflows. A workflow instance will be persisted to a database when not being used (or in idle...

Using additional email inboxes for Sharepoint Workflow approvals

One of our managers is encountering an issue with Sharepoint Workflows. His team has a standard AD user account setup with an email inbox that they all have access to via Outlooks "Open these additional Mailboxes" option. The Sharepoint workflow is setup to send approvals to this general-use user account. The problem is, when they receiv...

Exception practices when creating a SynchronizationContext?

I'm creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I'm wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used to Send (execute synchronously) or Post (execute asynchronously) delegates of type SendOrPostCallback. Although in both cases I invoke the ...

Asynchrony usage of WebSerives, ASP.NET

Hello I have a asp.net application using WWF, in one step of my workflow, I have to send one file to a remote web service by a method. The problem is some times our connection is’t so good and when trying to send files content ( it’s size is about 200KB) I get timeout. I need, I can use this method asynchrony and my app doesn’t wait for ...

Invoke Workflow through Custom Sequential Workflow in SharePoint

I've created a SharePoint 2007 Sequential Workflow and am trying to activate two workflows (one approval and one feedback) programmatically. workflowProperties.Site.WorkflowManager.StartWorkflow(workflowProperties.Item, association, association.AssociationData, true); I use this code to start the work flow and the association is creat...

How to persist the workflow when server system is crashed

Hi, I have a problem with Workflow persistence. i.e., in my Workflow i used Listen Activity, in that one branch having Handle External Activity and other branch having delay Activity(with 3 Days Time Out). So, Problem is with in 3 days of time handle External Activity is not fired. so the Delay Activity is fires when it time comes(mean...

Where can I get/need help creating an in-memory InstanceStore

I've been doing lots of work recently on the new Workflow 4.0. One of the things that would make it easier to whip together test apps would be an in memory InstanceStore. One that holds offloaded workflows in memory for a short while. The documentation on how to create a store is pretty anemic, and the interface on it is pretty compl...

Add multiple Property Metadata to a Dependency Property in a Workflow Activity

Hi, I am building a number of Custom Activities in Windows Workflow and I need to add a DependencyProperty which can list a number of values for that property which the user can then select when using the activity. e.g. True or False. I know how to simply pass a default using the PropertyMetadata, and presume that I will have to pass ...