<?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>Forum post about Persistence, IEventActivity, Transactions, and Correlation</title><link>http://blogs.msdn.com/advancedworkflow/archive/2006/06/20/638059.aspx</link><description>http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=488698&amp;amp;SiteID=1&amp;amp;mode=1 There was a great set of questions that showed up on the forum the other day and I've finally gotten around to answering them all. I was planning on posting the answers</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Forum post about Persistence, IEventActivity, Transactions, and Correlation</title><link>http://blogs.msdn.com/advancedworkflow/archive/2006/06/20/638059.aspx#685581</link><pubDate>Tue, 01 Aug 2006 22:50:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:685581</guid><dc:creator>hba</dc:creator><description>Hello I'm new to windows workflow and workflow architecture in general.&lt;br&gt;&lt;br&gt;I've been going through the tutorials and have an architectural/design question about the correlated communication scenario. &amp;nbsp;&lt;br&gt;&lt;br&gt;Does it make sense to: &lt;br&gt;a)	Use &amp;nbsp;Multiple workflow instances or&lt;br&gt;b)	Use a single instance with a communication service that is enabled through correlations.&lt;br&gt;&lt;br&gt;For example, in an order processing scenario where they may be thousands of orders going through the system per hour; does it make sense to have thousands of workflow instances (a one to one relationship between orders and workflow instances) or only one workflow instance?&lt;br&gt;&lt;br&gt;Thanks in advance.&lt;br&gt;</description></item><item><title>re: Forum post about Persistence, IEventActivity, Transactions, and Correlation</title><link>http://blogs.msdn.com/advancedworkflow/archive/2006/06/20/638059.aspx#685855</link><pubDate>Wed, 02 Aug 2006 03:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:685855</guid><dc:creator>ntalbert</dc:creator><description>hba,&lt;br&gt;&lt;br&gt;The answer to your question actually depends on your scenario. &amp;nbsp;Just like object oriented programming, you should model your workflows in the way that is most confortable for you. &amp;nbsp;So, consider the following:&lt;br&gt;&lt;br&gt;Online Shopping Cart&lt;br&gt;In this scenario there are thousands of completely independent orders going at any given time. &amp;nbsp;You should opt for a 1 to 1 correspondence in this case where a single workflow instance manages a single order.&lt;br&gt;&lt;br&gt;This is fine to do with respect to resources because workflow does not use resources in the same way as typical programs. &amp;nbsp;The normal workflow instance will be idle more than 95% of its lifetime ... they are characterized by short bursts of work to figure out what to do next with large periods of waiting for more stimulus from the outside world. &amp;nbsp;Additionally, an idle workflow does not consume any threads and depending on your host an idel workflow might not even take up any space in memory.&lt;br&gt;&lt;br&gt;What this boils down to is that in most scenarios you don't have to optimize for a minimal number of workflow instances which gives you the freedom to implement your solution in the way that makes the most sense.&lt;br&gt;&lt;br&gt;Business to Bussiness Supply&lt;br&gt;You can imagine a company that might have a few large customers and each customer has several concurrent orders in place. &amp;nbsp;There are a few different ways to model this. &amp;nbsp;First, you might not care to include the overall customer management as part of your workflow solution and this could simply degenerate to the shopping cart scenario above - a bunch of unrelated orders.&lt;br&gt;&lt;br&gt;Another option, however, would be to model a relationship with a customer as a single workflow which also manages each of the orders the customer currently has in the works. &amp;nbsp;Still another option is to break this down further by having the customer management workflow spawn other workflows to take care of each order giving you a heirarchy of flow.&lt;br&gt;&lt;br&gt;Once again, the point is that you should use the solution that you are most comfortable with and that best captures the spirit of the process which you are trying to model.</description></item><item><title> Advanced Workflow Enabling Tricky Scenarios Forum post about | Paid Surveys</title><link>http://blogs.msdn.com/advancedworkflow/archive/2006/06/20/638059.aspx#9649725</link><pubDate>Fri, 29 May 2009 02:02:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9649725</guid><dc:creator> Advanced Workflow Enabling Tricky Scenarios Forum post about | Paid Surveys</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://paidsurveyshub.info/story.php?title=advanced-workflow-enabling-tricky-scenarios-forum-post-about"&gt;http://paidsurveyshub.info/story.php?title=advanced-workflow-enabling-tricky-scenarios-forum-post-about&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Advanced Workflow Enabling Tricky Scenarios Forum post about | work from home</title><link>http://blogs.msdn.com/advancedworkflow/archive/2006/06/20/638059.aspx#9760370</link><pubDate>Tue, 16 Jun 2009 14:12:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9760370</guid><dc:creator> Advanced Workflow Enabling Tricky Scenarios Forum post about | work from home</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://workfromhomecareer.info/story.php?id=5676"&gt;http://workfromhomecareer.info/story.php?id=5676&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>