workflow-foundation

Issue with ReceiveActivity.WorkflowServiceAttributes in Windows Workflow

More of a "What the heck?" question... In WWF 3.0 I had a nested state (actually a couple of levels deep) and added some event driven activities. Then when compiling I noticed that I was getting warnings about that state not implementing some of the service operations defined for the parent workflow. The ops are implemented in the pare...

How can I use log4net in WF4?

I've created a simple WF4 console app and set up log4net identically to my other apps. However, when I fire up the console and use the ILog object inside WF4 (I actually pass it into the workflow), no information is presented using my ColoredConsoleAppender. What am I doing wrong? ...

How do I access database from WF4?

Hi Guys, I host a wcf workflow service within my ASP.NET MVC2 application. I need to be able to load/save data inside my workflow (WF4). How it can be done? Should I just instantiate my Entity Framework context within my activities and read/write? Cheers. ...

What is the equivalent for try-finally block in workflow foundation?

There is a specific activity I want to execute even after exception has thrown, just like a try{}finally{} block. Is it possible in sequential workflow using WF v3.5? ...

using workflow with asp.net ?

hello, We have to do a project which is a web based workflow application. I have never used WWF. I am thinking should we use WWF with asp.net ? This application has 10 tasks with multiple options (each task may have 4 options) with a good amount of data. Just like banks have customer dealing work flow applications. I am not getting wi...

TFS 2010: Is MSBuild going to be dead because of Windows Workflow?

MSBuild in TFS 2010 has been replaced by Windows Workflow 4.0. It means when you are creating a Build Definition, you won't have a TFSBuild.proj to edit instead you must edit a workflow to customize your build. BTW am I correct if I say Microsoft is not supporting MSBuild in TFS 2010 and learning MSBuild as a TFS 2010 Team Build adminis...

Join two contracts into the same WSDL

Hello, Maybe it is science fiction, but i would like to know if it is possible to join a WF exposed with WCF and a WCF into the same WSDL. As you know a WF service (xaml) exposes a wsdl and a WCF (svc) exposes its own. The background problem is that I do not want to differenciate long running process and short synchronous ones into dif...

Are workflows good for web service business logic?

I have a series of complex web services that are getting used in my SOA application. I am generally happy with the overall design of the application, but as the complexity grows, I was wondering if Windows Workflow might be the way to go. I like the idea of having graphic representation of the application, it would not only be easier t...

Workflow Foundation: Asynchronous operations (lengthy network I/O)

I have to create an application that will be started a few times per day (it's non - interactive). To operate, it needs LARGE amounts of data from the Internet (megabytes) via a rather slow connection, so the WCF service calls take quite some time. At the same time, it needs to perform local calculations and has a sophisticated initial...

Microsoft Workflow - "Event cannot be delivered"

I have strange problem. My application is using Windows Workflow Foundation. It is simple app that creates requests and then other presons accepts/denies these requests. Everything was working very fine until my client took application to other servers (app and db). From this time WF instances are created in DB but when app tries to fir...

what happened to glyphs in workflow fundation 4.0 - can we decorate activity in desingner in some way in workflow fundation 4

hi. I need to decorate all the activities shown in designer with some icons or other pictures. is there any way to show all activities with some decoration (lets say cross "X" as picture ) I have some data tracked and I want to show that this activity finished OK and this failed because of ... etc. do someone of you know? It would rea...

Cannot drop custom Workflow activity for TFS2010 in custom build process template.

Hi, I've created a custom workflow activity for TFS 2010 to customize the assembly versioning. I've created the activity and tested it using a Testworkflow and some unit testing code. It works fine. When I create a new build process template however, I cannot drop the custom activity onto the workflow designer. When I drag it to th...

How to catch 'exceptions' for out of order execution in Workflow Foundation 4?

Hi, I am attempting to model a worklfow using a "WCF Workflow Service" in .net / vs 2010 that needs to handle out of order execution gracefully (but not allow it - if thath makes sense!?) For example I have 2 receive activities one called Initialize and the other called GetValue inside a FlowChart. In most cases Initialize should be c...

Style.Triggers causes VS2010 to crash

Hi all, I try to create a Triggers on my Workflow custom activities but I still do not manage to do it. I follow example from a book, if I use their sample code, it works perfectly. However if I code it myself, VS2010 always crashes. Here is the XAML code: <Style x:Key="RetryStyle" TargetType="{x:Type ContentPresenter}"> ...

is workflow right for dynamic workflow creation in web based application ?

Hi, I am new to workflow and just know some of its features. I want to do a project in WF. It will be a web based intranet application where user will be able to define workflow dynamically through web interface. Duration for completing a task can be many days. With these requirments I am not sure will use of WF helpful in quick develo...

More than one workflow in runtime leaking memory

In Windows Workflow, if i load more than one workflow for the same runtime it is leaking memory once workflow is completed it is not releasing the memory. Consider a huge apps, which has 50 workflow and one workflow runtime, each and every service request will create a workflow instance and runs it. over the period of time these workflo...

How can I get the WorkflowInstanceId when implementing an ExternalDataExchange service?

I'm building an app to manage employees' holiday requests, with Windows Workflow Foundation handling the core logic. I want to develop a simple workflow that will be started when a request is created, and perform tasks based on whether the request is approved or rejected. Once the request is created, the workflow sends out notification ...

What are some strategies for unit testing workflows in WF 4?

I've done quite a bit of WF development using 3.5 over the last few years, but am just now ramping up on WF in 4.0. I have a TDD bent, and while WF 3.5 was difficult at times to unit test, I'm wondering if anyone could share their strategy for unit testing workflows in WF 4 and/or point me to resources that would help get me started? ...

Firing an Event while executing StateInitialization fails in Workflow Foundation

I'm running a State Machine workflow in Windows Workflow foundation. In this workflow, I have a state initialization task that takes a little bit to execute. In the meantime, I have an event that can fire while the StateInitialization activity is running. I think this is causing the classic "Queue: {0} is not enabled" issue that appea...

How to call .NET 2 Web Service via Activity generated from a service reference in WF 4.0

I'm trying to call a .NET 2.0 web service via a service reference generated activity in WF 4.0. The service I'm calling requires an endpoint behavior to allow security delegation. I configure the endpoint behavior, the binding's security mode and credentialType and reference the endpointBehavior in the client endpoint. When I run the wor...