<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kit Menke&#039;s Blog &#187; Workflow</title>
	<atom:link href="http://kitmenke.com/blog/tag/workflow/feed/" rel="self" type="application/rss+xml" />
	<link>http://kitmenke.com/blog</link>
	<description>Experiences with SharePoint, web development, and programming</description>
	<lastBuildDate>Fri, 20 Aug 2010 14:19:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Filtering a list by Workflow Status</title>
		<link>http://kitmenke.com/blog/2009/08/25/filtering-a-list-by-workflow-status/</link>
		<comments>http://kitmenke.com/blog/2009/08/25/filtering-a-list-by-workflow-status/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 18:25:59 +0000</pubDate>
		<dc:creator>Kit</dc:creator>
				<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Workflow]]></category>

		<guid isPermaLink="false">http://kitmenke.com/blog/?p=131</guid>
		<description><![CDATA[The most recent problem I ran into was when I tried to filter out items that had a  certain Workflow status in the list. More specifically, I was trying to filter on items that had errored out and had a status of &#8220;Error Occurred&#8221; in the list. My first thought was to try to filter [...]]]></description>
			<content:encoded><![CDATA[<p>The most recent problem I ran into was when I tried to filter out items that had a  certain Workflow status in the list. More specifically, I was trying to filter on items that had errored out and had a status of &#8220;Error Occurred&#8221; in the list.<br />
<span id="more-131"></span></p>
<p>My first thought was to try to filter based on the text. Using a contains didn&#8217;t work; I got a message about you can only use a contains on Single line of text, Multiple line of text, or Choice fields.</p>
<p>The solution is to filter based on the integer value:<br />
<a href="http://kitmenke.com/blog/wp-content/uploads/2009/08/2009-08-25-12-41-53.png"><img class="alignnone size-full wp-image-132" title="Workflow Status List Filter" src="http://kitmenke.com/blog/wp-content/uploads/2009/08/2009-08-25-12-41-53.png" alt="Workflow Status List Filter" width="370" height="128" /></a></p>
<p>Listed below are the other values in the enum that you can use for the various states.</p>
<pre lang="csharp" escaped="true">public enum SPWorkflowStatus
{
    NotStarted = 0,
    FailedOnStart = 1,
    InProgress = 2,
    ErrorOccurred = 3,
    StoppedByUser = 4,
    Completed = 5,
    FailedOnStartRetrying = 6,
    ErrorOccurredRetrying = 7,
    ViewQueryOverflow = 8,
    Max = 15,
}</pre>
<img src="http://kitmenke.com/blog/?ak_action=api_record_view&id=131&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://kitmenke.com/blog/2009/08/25/filtering-a-list-by-workflow-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a link to the current item in a workflow</title>
		<link>http://kitmenke.com/blog/2009/07/09/creating-a-link-to-the-current-item-in-a-workflow/</link>
		<comments>http://kitmenke.com/blog/2009/07/09/creating-a-link-to-the-current-item-in-a-workflow/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 19:58:40 +0000</pubDate>
		<dc:creator>Kit</dc:creator>
				<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Workflow]]></category>

		<guid isPermaLink="false">http://kitmenke.com/blog/?p=74</guid>
		<description><![CDATA[When creating a workflow using SharePoint Designer, oftentimes it is useful to be able to create a link to the current list item. Unfortunately, the built in columns are not so helpful.]]></description>
			<content:encoded><![CDATA[<p>When creating a workflow using SharePoint Designer, oftentimes it is useful to be able to create a link to the current list item. Unfortunately, the built in columns are not so helpful.</p>
<p><span id="more-74"></span></p>
<p>Below are a couple of the columns that are found in the Current Item:</p>
<p><a href="http://kitmenke.com/blog/wp-content/uploads/2009/07/workflow_list_url.png"><img class="alignnone size-full wp-image-75" title="Workflow String Builder URL columns" src="http://kitmenke.com/blog/wp-content/uploads/2009/07/workflow_list_url.png" alt="Workflow String Builder URL columns" width="500" height="421" /></a></p>
<p>Here is the result after running the workflow for an item:</p>
<blockquote><p>Encoded Absolute URL:</p>
<p>http://server/sites/SiteCollection/Workflow/Lists/RandomTester/1_.000</p>
<p>Server Relative URL:<br />
/sites/SiteCollection/Workflow/Lists/RandomTester/1_.000</p>
<p>Path:<br />
sites/SiteCollection/Workflow/Lists/RandomTester</p>
<p>URL Path:<br />
/sites/SiteCollection/Workflow/Lists/RandomTester/1_.000  </p></blockquote>
<p> All of these URLs are pretty much useless except for Path since they all have &#8220;1_.000&#8243; appended on the end of them. I think this has something to do with the version number&#8230; but why this is on the end makes no sense to me.</p>
<p>What this means then, is that you have to create a URL to the item.</p>
<p>You can copy a link to the DispForm.aspx page and then use the current item&#8217;s ID:</p>
<blockquote><p>http://server/sites/SiteCollection/Workflow/Lists/RandomTester/DispForm.aspx?ID=[]%RandomTester:ID%]</p></blockquote>
<img src="http://kitmenke.com/blog/?ak_action=api_record_view&id=74&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://kitmenke.com/blog/2009/07/09/creating-a-link-to-the-current-item-in-a-workflow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
