<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.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>Changing a Declarative Rule Condition at runtime</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/04/changing-a-declarative-rule-condition-at-runtime.aspx</link><description>One powerful feature of a workflow is that a workflow can be changed at runtime. Like other powerful features this is something that should be done with care but it can be a real life saver at times. One of the things that you can change are Declarative</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: Changing a Declarative Rule Condition at runtime</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/04/changing-a-declarative-rule-condition-at-runtime.aspx#1676929</link><pubDate>Mon, 09 Mar 2009 14:08:33 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1676929</guid><dc:creator>Lizet</dc:creator><description>&lt;p&gt;Hello Maurice, &lt;/p&gt;
&lt;p&gt;Thank you for commenting back. We will get a look at how to re-host the designer within an application so the business analysts can outline the rules without the need of &amp;nbsp;a developer. It&amp;#39;s a good start.&lt;/p&gt;
&lt;p&gt;I already bookmarked your site and I&amp;#39;m sure I&amp;#39;ll come back to it quite often for reference.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1676929" width="1" height="1"&gt;</description></item><item><title>re: Changing a Declarative Rule Condition at runtime</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/04/changing-a-declarative-rule-condition-at-runtime.aspx#1676275</link><pubDate>Sat, 07 Mar 2009 10:56:06 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1676275</guid><dc:creator>Maurice</dc:creator><description>&lt;p&gt;@Lizet,&lt;/p&gt;
&lt;p&gt;The workflow designer is rehostable in your own applications. Right now it might not be quite as easy as you would like but it is completely doable. Using the rehosted designer you can save workflows and rules as XOML, ie XML, files. That might not be perfect for diffing but any tool like WinDiff will be able to show you the differences between the two versions.&lt;/p&gt;
&lt;p&gt;When you start a workflow using XOML you pas the rules as a separate file. That way it is easy to pass in different rules for the same workflow dependent on a specific criteria like the start date. That might not solve your problem for long running though.&lt;/p&gt;
&lt;p&gt;I am not aware of any white papers comparing WF against Java based rules engines. They might very well be out there but I have never seen them.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1676275" width="1" height="1"&gt;</description></item><item><title>re: Changing a Declarative Rule Condition at runtime</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/04/changing-a-declarative-rule-condition-at-runtime.aspx#1676092</link><pubDate>Fri, 06 Mar 2009 20:44:24 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1676092</guid><dc:creator>Lizet</dc:creator><description>&lt;p&gt;Hello &amp;nbsp;Maurice and any WF developer reading.&lt;/p&gt;
&lt;p&gt;This is a good site for reference and a good repository of samples.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m currently doing a research on rule engines in order to replace some code implemented in stored procedures. My team needs to cut down the proliferations of repeated t-sql code and make use of OO to declare the rules.&lt;/p&gt;
&lt;p&gt;One of our main requirements is that business analysts that are most of the time not very technical should be able to draw or diagram the rule. &lt;/p&gt;
&lt;p&gt;Being able to version or set the rule&amp;#39;s effective date is a plus as well.&lt;/p&gt;
&lt;p&gt;afaik, WF designer is embedded in the VS IDE, so the analysts would have to have the IDE installed.&lt;/p&gt;
&lt;p&gt;There are some java based rule engines such as Jess and FairIssaac&amp;#39;s ModelBuilder.&lt;/p&gt;
&lt;p&gt;Is there any study or white paper alreday published on this topic that we could be referred to?&lt;/p&gt;
&lt;p&gt;TIA!&lt;/p&gt;
&lt;p&gt;Lizet&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1676092" width="1" height="1"&gt;</description></item><item><title>re: Changing a Declarative Rule Condition at runtime</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/04/changing-a-declarative-rule-condition-at-runtime.aspx#1652321</link><pubDate>Tue, 28 Oct 2008 23:31:17 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1652321</guid><dc:creator>...</dc:creator><description>&lt;p&gt;Good site! Interesting information.. )&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1652321" width="1" height="1"&gt;</description></item><item><title>re: Changing a Declarative Rule Condition at runtime</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/04/changing-a-declarative-rule-condition-at-runtime.aspx#1647484</link><pubDate>Thu, 11 Sep 2008 14:36:01 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647484</guid><dc:creator>Maurice</dc:creator><description>&lt;p&gt;These changes are only for a single workflow instance. So you will need to examine every existing workflow, determine if changes are needed to the workflow type and if so make the changes. &lt;/p&gt;
&lt;p&gt;I typically add this to the actual host program as this is something you cannot do until you have started the WF runtime. And that means the workflows can start running so you need to have the proper runtime configuration.&lt;/p&gt;
&lt;p&gt;Sorry about the code being truncated. Even though you cannot see the code you can still select all the lines and copy it to notepad. Not perfect but at least a workaround so you can see all the code. I will take more care in the future.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647484" width="1" height="1"&gt;</description></item><item><title>re: Changing a Declarative Rule Condition at runtime</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/04/changing-a-declarative-rule-condition-at-runtime.aspx#1647479</link><pubDate>Thu, 11 Sep 2008 14:03:37 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647479</guid><dc:creator>Damian</dc:creator><description>&lt;p&gt;How would you implement this on say a live site? &amp;nbsp;Would you simply build a little console app for the project simply for uploading changes to the workflow? &amp;nbsp;Or would you have to plumb this code into the main system to update every single workflow item created?&lt;/p&gt;
&lt;p&gt;And does this update a single instance or the workflow as a whole?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647479" width="1" height="1"&gt;</description></item><item><title>re: Changing a Declarative Rule Condition at runtime</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/04/changing-a-declarative-rule-condition-at-runtime.aspx#1647478</link><pubDate>Thu, 11 Sep 2008 13:59:44 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647478</guid><dc:creator>Damian</dc:creator><description>&lt;p&gt;Is there anything you can do about the fact the code examples are getting truncated by the column and therefore some of the examples missing?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647478" width="1" height="1"&gt;</description></item></channel></rss>