<p>I've been using WWF for a while as part of an internal call center application (ASP.NET), and while learning it was a good practice in understanding how a state machine based workflow system <em>should</em> work, I am definitely not in love with WWF itself. In my opinion it is:</p>

<ol>
<li>Overly complex, especially for use within web apps (all that threaded runtime stuff)</li>
<li>Immature (ever worked with that horrible designer?)</li>
<li>Anemic in its current feature set</li>
</ol>

<p>Does anyone have a suggestion for a better .NET based workflow framework?  Specifically, I am looking for the following features:</p>

<ol>
<li>State machine based (mapping states to available actions)</li>
<li>A focus on user permissions (controlling who has access to what actions)</li>
<li>The ability to run workflows as timed background tasks (for example, to send out reminders for items that have been sitting in a certain state for x days)</li>
</ol>

<p>That's really all I need. I don't need to be able to "drag and drop" any activities or visually design the flow. I am perfectly comfortable writing actual code once a particular action is triggered.</p>

[{'answer_id': 19333, 'author': 'Vaibhav', 'author_id': 380, 'author_profile': 'https://Stackoverflow.com/users/380', 'pm_score': 0, 'selected': False, 'text': '<p>Do you have the option to consider BizTalk Server?</p>\n'}, {'answer_id': 19344, 'author': 'Nathan', 'author_id': 541, 'author_profile': 'https://Stackoverflow.com/users/541', 'pm_score': 5, 'selected': True, 'text': '<p>You could try <a href="http://www.thefreakparade.com/2008/05/simplestatemachine-codeplex-project/" rel="noreferrer">Simple State Machine</a>. You would have to implement access control and background timers yourself, but that shouldn\'t be a big deal. SSM was also built out of frustration with WF. <a href="http://www.codeplex.com/Project/ProjectDirectory.aspx?ProjectSearchText=%22state%20machine%22" rel="noreferrer">There are some other state machine implementations on Codeplex</a> as well. If one of them doesn\'t fit he bill out of the box, they are open source and should get you close enough. </p>\n\n<p>I wholeheartedly agree with you about state machines in WF - they aren\'t testable, are too complicated, the threading model is peculiar and hard to follow, and I\'m not sure a visual designer could have been more poorly conceived for designing state machines graphically. I think this may be because the state machine concept feels tacked onto the WF runtime, which was designed for sequential state machines, something WF does a much better job with, in my opinion. The problem is that state machines are really not the same animal as a sequential work flow, and should have been given a first class implementation of their own, because the warping of WF to make it seem to support them turned out to be more or less unsupportable, if not actually unusable.</p>\n'}, {'answer_id': 230012, 'author': 'Nick Berardi', 'author_id': 17, 'author_profile': 'https://Stackoverflow.com/users/17', 'pm_score': 1, 'selected': False, 'text': '<p>Try Drools.NET</p>\n'}, {'answer_id': 427650, 'author': 'Tomas Andrle', 'author_id': 35440, 'author_profile': 'https://Stackoverflow.com/users/35440', 'pm_score': 2, 'selected': False, 'text': "<p>I would stay away from Drools.Net since it's last SVN commit was in September 2007. Looks nice but it seems a bit too risky to make such a big library part of your project when you know it doesn't get any attention anymore.</p>\n"}, {'answer_id': 427668, 'author': 'ilitirit', 'author_id': 9825, 'author_profile': 'https://Stackoverflow.com/users/9825', 'pm_score': 0, 'selected': False, 'text': '<p>I quite enjoyed working with Oracle BPEL Process Manager.  It\'s part of JDeveloper.</p>\n\n<p><a href="http://www.oracle.com/technology/bpel/index.html" rel="nofollow noreferrer">http://www.oracle.com/technology/bpel/index.html</a>\n<a href="http://gemsres.com/story/dec06/313602/jellema-fig1.jpg" rel="nofollow noreferrer">http://gemsres.com/story/dec06/313602/jellema-fig1.jpg</a></p>\n'}, {'answer_id': 10542699, 'author': 'John Hansen', 'author_id': 368423, 'author_profile': 'https://Stackoverflow.com/users/368423', 'pm_score': 0, 'selected': False, 'text': '<p>You may want to take a look at Jazz - <a href="http://jazz.codeplex.com/" rel="nofollow">http://jazz.codeplex.com/</a> </p>\n'}, {'answer_id': 41802980, 'author': 'Oleksandr Bilyk', 'author_id': 2733404, 'author_profile': 'https://Stackoverflow.com/users/2733404', 'pm_score': 0, 'selected': False, 'text': '<p>Try WF4.5. It was completely redesigned since .NET4.0.</p>\n'}, {'answer_id': 42634125, 'author': 'Jan Guardian', 'author_id': 2713269, 'author_profile': 'https://Stackoverflow.com/users/2713269', 'pm_score': 1, 'selected': False, 'text': '<p>Have a look at <a href="https://workflowengine.io" rel="nofollow noreferrer">Workflow Engine</a>. It is a lightweight workflow framework for .NET and Java solutions. It has an HTML5 visual designer, version control, a decent UI and supports a wide range of databases.</p>\n'}, {'answer_id': 43150171, 'author': 'Ralph', 'author_id': 721666, 'author_profile': 'https://Stackoverflow.com/users/721666', 'pm_score': 0, 'selected': False, 'text': '<p>First of all you should look for a engine supporting BPMN. BPMN is a standard in Workflow and Process management and well supported from a lot of projects.\nSecond you should think about the requirements to thus an engine. \nWhen you look for a BPMN Engine, there are two different approaches:</p>\n\n<p><strong>Task-Orientated</strong> </p>\n\n<p>These engines (e.g. <a href="http://www.jbpm.org/" rel="nofollow noreferrer">JBoss BPM - jbpm</a>) are designed to process an input data by a well defined process model. Each task in the model gives the control to a piece of code - either a standard or an individual implementation. The process ends when the process-token reaches the end of the process model (End-Event). This kind of processing takes milliseconds. The engine can be used for batch jobs or processing data with a complex process orientated flow. </p>\n\n<p><strong>Event-Driven</strong></p>\n\n<p>Human-Centric workflow engines are event driven (e.g. <a href="http://www.imixs.org/" rel="nofollow noreferrer">Imixs-Workflow</a>). This is a kind of state machine but offers typically much more functionality. You can start a new processinstance by assigning your business object with the initial task (defined by the start event). Than the workflow engine allows you to trigger events assigned to each task, defined in your model. Each event (Intermediate CatchEvent) triggers the workflow engine to transfer the running processinstance to the next task (state). Until no new event is triggered, the processinstance \'waits\' in the current task (state). An approval process is an typical example for this kind of human-centric workflow. </p>\n\n<p>You can find a list of engines <a href="https://en.wikipedia.org/wiki/List_of_BPEL_engines" rel="nofollow noreferrer">here</a>. </p>\n'}]
['https://Stackoverflow.com/questions/19314', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1436/']