workflow-foundation

WF4 workflow versioning using WorkflowServiceHost

Related to this question. I understand how to implement versioning of workflows using WorkflowApplication. If you keep the original XAML definition for older versions of your workflow around, you can load them using the right WorkflowApplication constructor. How could you ensure that WorkflowServiceHost uses the correct workflow defini...

Host new WF4 workflows in appfabric

Hello, I am new to using AppFabric to host WF services. I am trying to write a workflow admin application that will allow users to create xaml workflow definitions using the hosted WF4 designer, and then somehow allow those workflow defitions to be automatically deployed and hosted in AppFabric with the click of a button. I have the de...

How to solve concurrency problems in ASP.NET Windows-Workflow and ActiveRecord/NHibernate?

I have found that ActiveRecord uses the Session-Scope object within the ASP.NET application and that if the web-site is read-write we can have a tug-o-war between the Workflow's own Data-Access SessionScope and that of the ASP.NET site. I would really like to have the WindowsWorkflow Runtime use the same object session as the web-site h...

Windows Workflow Foundation 4.0 and WCF web service faults (soap fault)

In my Workflow Foundation 4.0 RC app I have a 'Receive' and 'SendReplyToReceive' WCF messaging pair that work fine with a simple request/response operation, but I'm having trouble attempting to perform validation on the request and reply with a fault. In WCF I am able to create a throw custom fault contracts (which in turn sent out SOAP...

How to parse simple statement into CodeDom object

I need to parse a simple statement (essentially a chain of function calls on some object) represented as a string variable into a CodeDom object (probably a subclass of CodeStatement). I would also like to provide some default imports of namespaces to be able to use less verbose statements. I have looked around SO and the Internet to fi...

Dependency Property not getting updated value via ActivityBind

I have a Sequence Activity which holds two activities (Activity A and B), the input dependency property for Activity B is bound an output dependency property of Activity A. However, when I run the sequence activity, the Input for activity B is never updated and just uses the default value of activity A's output. My question is: is ther...

A strong case for WF

I have struggled for so long to find a compelling use case for workflow (ie: WF) as against regular imperative programming. Each time I fall back to the conclusion that I should just leave WF out or defer getting into it until later. But I keep having this nagging feeling that there's something am missing. Does anyone know any book tha...

Workflow 4.0 code activities calling other activites (persist, delay etc)

I have a bunch of Workflow foundation 4.0 RC code activities that consume web services and talk to databases that I want to add some error handling in. I would really like to be able to attempt to call my web service / db, catch any faults such as a communication failure and then retry the same operation in 1 hours time (after I have lo...

CRM plugin to execute when opportunity is reopened

I need to write a plugin for Dynamics CRM 4.0 that executes when a closed opportunity is reopened in order to change the salesstagecode. My questions are: When I register a new step to the plugin, what attribute(s) should I filter on? What property on the entity should I check the value of? and What should I look for the value of th...

How to pass start parameters to workflow through WCF

It's possible to define some start values to an workflow using WorkflowInstance.CreateWorkflow, like this: using(WorkflowRuntime runtime = new WorkflowRuntime()) { Dictionary<string, object> parameters = new Dictionary<string, object>(); parameters.Add("First", "something"); parameters.Add("Second", 42); WorkflowInstanc...

Workflow Replicator Until Condition issue

I have implemented my workflow, I could not set the until condition for the replicator acivity, if any one task has been rejected. How do i break the replicator activity execution, if any one of the tasks is rejected. Please help me. Thanks. ...

Windows Workflow runs very slowlyh on my DEV machine

I am developing an app using WF hosted in IIS as WCF services as a business layer. This runs quickly on any machine running Windows Server 2008 R2, but very slowly on our dev machines, running Windows XP SP3. Yesterday, the workflows were as fast on my dev machine as they are on the server for the whole day. Today, they are back to ru...

MOSS2007. SPWorkflowTask.AlterTask's last argument.

MOSS2010 documentation for SPWorkflowTask.AlterTask method claims, that If true is passed as the argument to fSynchronous, this method waits up to 30 seconds to determine whether the attempted update was accepted by the workflow schedule as valid. The method then returns true if the update was accepted and not rolled back, or false ...

Rehosting workflow designer in web

I know WF designer has re-hosting capability. Since it's WPF-based, I thought it might be rehostable in web, using silverlight. Does anyone have any experiece regarding this? Or, does anyone know an easy and powerful web-based workflow designer solution for WF? ...

Help with Custom Workflow that monitors an objects state

I need to write a workflow that monitors the status of an object. (It could wait for days or hours for a state to change) I have the following states for the object (lets call it an Issue object): 1) Created 2) Unowned 3) Owned 4) UnAssigned 5) Assigned 6) In Progress 7) Signed Off 8) Closed I would also need to take some action on a...

Windows Workflow Foundation 4 (WF4) Error Handling

What is the best way to get error messages from a WF4 workflow back to a hosting ASP.NET MVC application? I need the workflow to not terminate, but continue to be active, and then pass a message back to the hosting app regarding the error, so the user can take an alternative action, but I'm not sure how to do that. ...

Is it possible to use Workflow ReceiveActivity with independently written WCF service?

Suppose I had a WCF service that I have coded up, like Clemens Vasters's XML-RPC with WCF, and want to stick a workflow behind it on the server side. Is this possible to do with Windows Workflow? If so, how? The toolbox ReceiveActivity appears to create the WCF service for me. I'd prefer the answer in terms of Workflow 4.0, if possi...

Workflow UI Integration - is WF a good approach?

Somewhat similar to this question, except we haven't decided that we're going with WF yet. I'm working on designing a system that requires a series of decisions and activities on a "work object," so I naturally began to consider workflow, specifically WF. What I'm wondering is if WF is a good solution for a situation like the followi...

Consume a WF hosted in IIS as a WCF service using ASP.NET 1.1 Client

As the title says, I would like to consume a WF workflow using a ASP.NET 1.1 client. The workflow is hosted on IIS as a .svc service. I have a .NET 3.5 winforms test client that uses wsHttpContextBinding. Because I need to put a WorkflowID in Context to have my workflow rehydrated and continued, I use this piece of code: var Svc = new...

How to do comment and document on Window Workflow Foundation

I am working with few simple xoml workflow (.NET 3.5), and I want to add few simple comment and note on the xoml file. I can find a "Description" property on activity, but that not easy to read. ...