<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Why State Machine Workflows</title><link>http://blogs.msdn.com/pravin_indurkar/archive/2005/09/25/473826.aspx</link><description>Many people I have talked to have asked me why was there a need for state machine style of workflows. Here I am trying to put down some of my thoughts for the reasons why we felt the need for having the state machine style of workflows in Windows Workflow</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Why State Machine Workflows</title><link>http://blogs.msdn.com/pravin_indurkar/archive/2005/09/25/473826.aspx#474680</link><pubDate>Wed, 28 Sep 2005 04:57:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:474680</guid><dc:creator>CG</dc:creator><description>Good Article&lt;br&gt;&lt;br&gt;First of all, it is good that finally someone is talking about State Machine based Processes. Over the last couple of years a lot of my work has been in the B2B Enterprise BPM space with a  State Machine based process model as the center piece. Most Workflow models are &amp;quot;sequential&amp;quot; in nature and I was always left wondering if the approach I have been taking was wrong.&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;Apart from the Flexibility, Visibility and Control aspects of State Machine based Workflow model here are some additional aspects -&lt;br&gt;&lt;br&gt;   1. One perspective is that State Machine based models are good for representing High Level processes and a &amp;quot;Sequential&amp;quot; based model is good for detailed aspects.&lt;br&gt;          * Example is a Purchase Order / Shipment Management process where the High Level process represents an Order's Lifecycle from New to Close ( good for a Business Analyst since thats what he is looking for ). A Sequential model could detail all the steps which happen when the Order is being accepted by the Supplier.&lt;br&gt;   2. A State Machine model clearly distinguishes between the &amp;quot;end state&amp;quot; after an Event has happened  - which is the State and the fact that a &amp;quot;sequenced&amp;quot; list of things need to be done when the Action happens.This makes it similar to how one would design on paper.&lt;br&gt;   3. State Machines fit very well in the Human to System Workflow space - since humans are largely looking at &amp;quot;Current Status&amp;quot; and &amp;quot; What can I do next&amp;quot; which is very much what a State Machine Process Model provides. Here is a good article ( from the J2EE world ) on the State Machine vs Message based WFMS.&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.theserverside.com/articles/article.tss?l=Workflow"&gt;http://www.theserverside.com/articles/article.tss?l=Workflow&lt;/a&gt;&lt;br&gt;</description></item><item><title>re: Why State Machine Workflows</title><link>http://blogs.msdn.com/pravin_indurkar/archive/2005/09/25/473826.aspx#475165</link><pubDate>Thu, 29 Sep 2005 05:11:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:475165</guid><dc:creator>DC</dc:creator><description>When is workflow scheduled to work with VS 2005 RC?</description></item><item><title>re: Why State Machine Workflows</title><link>http://blogs.msdn.com/pravin_indurkar/archive/2005/09/25/473826.aspx#489814</link><pubDate>Mon, 07 Nov 2005 18:22:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:489814</guid><dc:creator>Ariel Schapiro</dc:creator><description>Nice Article!!!&lt;br&gt;&lt;br&gt;About the first comment, when you say &amp;quot;State Machine based models are good for representing High Level processes and a 'Sequential' based model is good for detailed aspects&amp;quot;; maybe thats related to the fact that in Sequential Workflows, the workflow controlls the sequence, while in state machine workflows, users controll the sequence. I Have posted ideas sumarized ideas like this here: &lt;a rel="nofollow" target="_new" href="http://staff.southworks.net/blogs/ariel/archive/2005/10/27/What_style_of_Workflow_should_I_use.aspx"&gt;http://staff.southworks.net/blogs/ariel/archive/2005/10/27/What_style_of_Workflow_should_I_use.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;Is logic to say that users operate in high level processes and they have its control, but if you go to detail aspects of the business logic, you have the machine processing it for you.</description></item><item><title>:)</title><link>http://blogs.msdn.com/pravin_indurkar/archive/2005/09/25/473826.aspx#496612</link><pubDate>Thu, 24 Nov 2005 11:46:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:496612</guid><dc:creator>Wei Shi</dc:creator><description>In the sentence &amp;quot;and any situation of the *ordinary* was dealt outside the domain of the process&amp;quot;, should 'ordinary' be 'unordinary'?  </description></item><item><title>re: Why State Machine Workflows</title><link>http://blogs.msdn.com/pravin_indurkar/archive/2005/09/25/473826.aspx#615844</link><pubDate>Sat, 03 Jun 2006 13:17:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:615844</guid><dc:creator>Sundeep Raina</dc:creator><description>This is the very nice link and had got enough idea about the working in workflow &lt;br&gt;i have one query ? can i ask ?</description></item><item><title>re: Why State Machine Workflows</title><link>http://blogs.msdn.com/pravin_indurkar/archive/2005/09/25/473826.aspx#7148035</link><pubDate>Fri, 18 Jan 2008 13:29:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7148035</guid><dc:creator>Vidya N</dc:creator><description>&lt;p&gt;Very good article in easy to understand words without using any technology or tool 's perspective&lt;/p&gt;
</description></item><item><title>re: Why State Machine Workflows</title><link>http://blogs.msdn.com/pravin_indurkar/archive/2005/09/25/473826.aspx#8436992</link><pubDate>Tue, 29 Apr 2008 13:47:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8436992</guid><dc:creator>Taklikar AH</dc:creator><description>&lt;p&gt;Very good article that helps understanding the usage of the State Machine Workflows. Thanks.&lt;/p&gt;
</description></item><item><title>Best practices in Workflow Design - Part 2</title><link>http://blogs.msdn.com/pravin_indurkar/archive/2005/09/25/473826.aspx#8737388</link><pubDate>Wed, 16 Jul 2008 10:52:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8737388</guid><dc:creator>Living .NET... </dc:creator><description>&lt;p&gt;Naming convention in Workflows Workflow activities should be named appropriately. As much as possible&lt;/p&gt;
</description></item><item><title>Best practices in Workflow Design - Part 2</title><link>http://blogs.msdn.com/pravin_indurkar/archive/2005/09/25/473826.aspx#9254757</link><pubDate>Sun, 28 Dec 2008 10:00:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9254757</guid><dc:creator>Living .NET... </dc:creator><description>&lt;p&gt;Naming convention in Workflows Workflow activities should be named appropriately. As much as possible&lt;/p&gt;
</description></item><item><title>re: Why State Machine Workflows</title><link>http://blogs.msdn.com/pravin_indurkar/archive/2005/09/25/473826.aspx#9564609</link><pubDate>Thu, 23 Apr 2009 15:08:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9564609</guid><dc:creator>Venkatesh T</dc:creator><description>&lt;p&gt;hi Pravin&lt;/p&gt;
&lt;p&gt;i have created the sample state machine workflow, with two states. the first state has state initialization and event driven activity, and the second state has state initialization. when start the workflow, it works fine at the initial state. when i raise a event using the handle external event activity it doesn't move to next state.&lt;/p&gt;
&lt;p&gt;I know that i have made a mistake, but couldn't able to trace. could you help me.&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Venkatesh&lt;/p&gt;
</description></item><item><title> Pravin Indurkar Why State Machine Workflows | Paid Surveys</title><link>http://blogs.msdn.com/pravin_indurkar/archive/2005/09/25/473826.aspx#9649861</link><pubDate>Fri, 29 May 2009 02:06:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9649861</guid><dc:creator> Pravin Indurkar Why State Machine Workflows | Paid Surveys</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://paidsurveyshub.info/story.php?title=pravin-indurkar-why-state-machine-workflows"&gt;http://paidsurveyshub.info/story.php?title=pravin-indurkar-why-state-machine-workflows&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Pravin Indurkar Why State Machine Workflows | Quick Diets</title><link>http://blogs.msdn.com/pravin_indurkar/archive/2005/09/25/473826.aspx#9722399</link><pubDate>Wed, 10 Jun 2009 06:03:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9722399</guid><dc:creator> Pravin Indurkar Why State Machine Workflows | Quick Diets</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://quickdietsite.info/story.php?id=6406"&gt;http://quickdietsite.info/story.php?id=6406&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Pravin Indurkar Why State Machine Workflows | unemployment office</title><link>http://blogs.msdn.com/pravin_indurkar/archive/2005/09/25/473826.aspx#9759844</link><pubDate>Tue, 16 Jun 2009 11:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9759844</guid><dc:creator> Pravin Indurkar Why State Machine Workflows | unemployment office</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://unemploymentofficeresource.info/story.php?id=15395"&gt;http://unemploymentofficeresource.info/story.php?id=15395&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Why State Machine Workflows</title><link>http://blogs.msdn.com/pravin_indurkar/archive/2005/09/25/473826.aspx#9856115</link><pubDate>Mon, 03 Aug 2009 13:53:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9856115</guid><dc:creator>Hemant</dc:creator><description>&lt;p&gt;Problem History&lt;/p&gt;
&lt;p&gt;My Workflow pattern is like&lt;/p&gt;
&lt;p&gt;CodeActivity 1&amp;gt; delayActivity(10) hours &amp;gt; codeActivity2&lt;/p&gt;
&lt;p&gt;I have set SqlWorkflowPersistenceService UnloadOnIdel = True;&lt;/p&gt;
&lt;p&gt;I am using Asp.net As hosting Application for Workflow.&lt;/p&gt;
&lt;p&gt;I am using ManualWorkflowScheduling Service for scheduling Workflow instance.&lt;/p&gt;
&lt;p&gt;Problem &amp;nbsp;definition&lt;/p&gt;
&lt;p&gt;Now after execution of activity CodeActivity1 of above said Workflow, &amp;nbsp;delayActivity fires and my Workflow Instance get persisted into Database(as per expectation).&lt;/p&gt;
&lt;p&gt;After 10 hours I need to reload my Workflow instance. &lt;/p&gt;
&lt;p&gt;Approach I am Thinking&lt;/p&gt;
&lt;p&gt;What should I do. &lt;/p&gt;
&lt;p&gt;Do I need to write a window service that polls database after every 1 second and gets Workflow instance of expired timer and reload that instance.&lt;/p&gt;
&lt;p&gt;Or we have any alternative solution. &lt;/p&gt;
&lt;p&gt;Please suggest. &lt;/p&gt;
</description></item></channel></rss>