workflow-foundation

How well does Rule Engines performs?

I've been having a look at WF Rules Engine and NxBRE and it seems interesting but I'm unsure of how well it will perform in real life scenarios. The one I have in mind is something like a fact base with between 10 and 100 million facts and rules like: Object.Field < 5000 AND Object.Field > 1000 AND IsProperty(Object.Field2) I'm using...

Will WF 4.0 make me Obsolete

I saw a post on Oslo about making us obsolete. I just happened to listen to the latest Deep Fried Episode with Brian Noyes. They were talking about SharePoint and Windows Workflow and how the "dream" of Windows Workflow is to let mere Business Analyst Drag and Drop their way to a functioning service. I am a newbie dotnet developer, and a...

Where is Windows Workflow Foundation used?

Is WF used at user interface or business layer? If at UI layer, then does someone coding in business layer even need to use or learn it? ...

How do I use the Result from a CodeActivty<string> in WF 4.0?

I've created a custom activity in a .NET 4.0 beta 1 WF project. It's defined as: public class GetCurrentUserMailAddress : CodeActivity<string> because I've read that this is the most efficient way of returning a single result. At the end, I set the Result using: context.SetValue(Result, up.EmailAddress); But now I'm struggling ...

Windows workflow foundation. Should I use it?

I'm developing an application that I suspect is suitable for using workflow. (It's easy to visualise the physical workflow and tasks between different users.) My question is what are the advantages to using this method, do you recommend that I go down this route. Is there a better approach. I've heard mention of a hit in performance? I...

What are the conventions for naming workflow activities in windows workflow foundation?

What naming conventions to be followed when naming the activities?. For example what should be the name for a CodeActivity that sends email to the user. ...

Prevent WF Runtime or persistence service from loading WF instances

I'm developing an utility in order to work with persisted WF instances in a WF DB. I'm using the standard SqlWorkflowPersistenceService to access the WF DB. I'd like to use the persistence service functionality such as GetAllWorkflows() und load individual instances via GetWorkflow(). While I'm working with these instances, I'd like t...

How to disable Activity cloning in WF?

Is it possible to control this nasty behavior? I'm trying to execute() some stateful activity I wrote (activity that increment an index on each execution) inside a loop (While) activity. WF engine is cloning my activity on each iteration. Since the clone is made from a template activity and not from the latest cloned one, the index prope...

Error loading and running event receiver Microsoft.SharePoint.Workflow.SPWorkflowAutostartEventReceiver

I have a custom SharePoint workflow attached to a custom ItemAdded event receiver that was working fine up until the last type I promoted it using WSPBuilder. My code is very close to this example: http://www.codeproject.com/KB/sharepoint/MOSS%5FFolderContentTypeWF.aspx I used WSPBuilder in the past but not for this project and it se...

Help with debugging an object not arriving at WCF/Workflow in .net 4.0 beta 1

I'm using VS 2010 and .net 4.0 beta 1 to do some workflow using WCF. I've created a XAMLX WCF/WF service to receive and process an instance of a class. The class is just a DTO marked with DataContract/DataMember attributes. I've tested it with the WcfTestClient and it works. So, now I've created another WCF/WF workflow to consume t...

WF 3.5 stateful activities

I'm using WF 3.5 and looking for a way to develop an activity preserving its state among different iterations of the standard WF "while" activity. The problem is that normally the Execute() method of an activity should return the "Closed" execution status. Once it did that - it cannot get back to the "Executing" state and in the next ite...

Using Windows Workflow Foundation in applications with reporting requirements

I am wondering, very generally, about the feasibility of a WF solution in an application, where the business owners want extensive reporting capabilities on application state and data. The main issue that I see is that WF tends to hide data, such as a recipient list, that is serialized inside the workflow instances, so it can't be repor...

Run WF 4.0 as a server-side component

Hi all, For a new project, we need to use WF 4.0 for deploying and running workflows. Instead of hosting workflows within the application itself, we decided to implement a server-side component that is in charge of running workflows. Before WF 4.0, one had explicit access to the the runtime engine (WorkflowRuntime), which provided some...

Re-hydrated workflow throws Profile cannot be null exception.

...

.NET Hosted workflow clustering problem

I am attempting to reproduce a server farm in my test environment, in order to try something out for an application that I am busy designing. I have two web servers, running IIS 6.0 and 7.0 respectively, each hosting a workflow service with exactly the same dlls. They share a persistence database. When ServerA saves the workflow to the...

Modifying a sharepoint workflow while it's running

I've been asked to add a step to a workflow I've written but there are already many documents currently inside this workflow that I would like to switch over to the new workflow. Can this be done easily? I've looked on google and places like this: http://stackoverflow.com/questions/357032/how-to-upgrade-a-long-running-sharepoint-workfl...

Windows Workflow 4.0 FlowSwitch not working

I'm creating a FlowChart within a Windows Workflow 4.0 project in Visual Studio 2010. I've added a FlowSwitchwith an expression of a variable passed in as an In Argument to the Activity. I can debug and see the values are passed in correctly, however my FlowSwitch is not switching at all to a case that is defined as the value being pas...

Windows Workflow Dynamic, User-Created Workflows

I have a client who's interested in utilizing Windows Workflow technology in a web-driven application. I'm a .Net developer but have no experience with either WF or SharePoint workflows. Most of what the client wants to do seems to be straight-forward except that they want the ability for end users to be able to create/edit their own c...

Co-Worker pushing for a scary and smelly software solution, need help!

A coder w/ a lot of clout in my office wants to go down a path I feel is instinctively wrong. We need a business rules framework for a set of web services we have for accepting certain types of xml infosets in a WCF based POX service. In the previous version we used a homebrewed rules framework that would trigger off certain data points...

Is the Workflow Foundation Storing State in Memory a Problem?

We have a contractor who has developed a system that uses the workflow foundation in .NET 3.5. One of my colleagues has concerns "around the workflow service storing state in memory and it possibly becoming out of sync with our underlying database". Are his concerns justified? ...