<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Waiting/Timed Workflow VS Windows Service</title>
	<atom:link href="http://ayazahmad.wordpress.com/2008/10/06/waitingtimed-workflow-vs-windows-service/feed/" rel="self" type="application/rss+xml" />
	<link>http://ayazahmad.wordpress.com/2008/10/06/waitingtimed-workflow-vs-windows-service/</link>
	<description>Microsoft CRM Blog</description>
	<lastBuildDate>Thu, 12 Nov 2009 18:08:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ayaz Ahmad [MVP - MSCRM]</title>
		<link>http://ayazahmad.wordpress.com/2008/10/06/waitingtimed-workflow-vs-windows-service/#comment-4901</link>
		<dc:creator>Ayaz Ahmad [MVP - MSCRM]</dc:creator>
		<pubDate>Tue, 23 Dec 2008 01:50:45 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=86#comment-4901</guid>
		<description>Please have a look into trace entries for CRMAsync Service trace file.

Does your workflow has any custom activity?
What about Waiting criteria?</description>
		<content:encoded><![CDATA[<p>Please have a look into trace entries for CRMAsync Service trace file.</p>
<p>Does your workflow has any custom activity?<br />
What about Waiting criteria?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: avner</title>
		<link>http://ayazahmad.wordpress.com/2008/10/06/waitingtimed-workflow-vs-windows-service/#comment-4900</link>
		<dc:creator>avner</dc:creator>
		<pubDate>Tue, 23 Dec 2008 00:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=86#comment-4900</guid>
		<description>Hi Ayas 

We have a problem that work flows just do not fire. (Workflows do not flow, if you will excuse the pan).

What we find intriguing is that when you look at CRM -&gt; Settings -&gt; System jobs you see familiar entries with system event, workflow extension task and at status of waiting. The wait is &quot;forever&quot;.

We applied hot fix KB957701, it did not help.

Avner</description>
		<content:encoded><![CDATA[<p>Hi Ayas </p>
<p>We have a problem that work flows just do not fire. (Workflows do not flow, if you will excuse the pan).</p>
<p>What we find intriguing is that when you look at CRM -&gt; Settings -&gt; System jobs you see familiar entries with system event, workflow extension task and at status of waiting. The wait is &#8220;forever&#8221;.</p>
<p>We applied hot fix KB957701, it did not help.</p>
<p>Avner</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Selina</title>
		<link>http://ayazahmad.wordpress.com/2008/10/06/waitingtimed-workflow-vs-windows-service/#comment-4895</link>
		<dc:creator>Selina</dc:creator>
		<pubDate>Tue, 16 Dec 2008 17:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=86#comment-4895</guid>
		<description>Thank you will definetly look into that!</description>
		<content:encoded><![CDATA[<p>Thank you will definetly look into that!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ayaz Ahmad [MVP - MSCRM]</title>
		<link>http://ayazahmad.wordpress.com/2008/10/06/waitingtimed-workflow-vs-windows-service/#comment-4892</link>
		<dc:creator>Ayaz Ahmad [MVP - MSCRM]</dc:creator>
		<pubDate>Sun, 14 Dec 2008 20:44:54 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=86#comment-4892</guid>
		<description>Hi Glenn,

No doubt, work flow provide some really handy out of the box features. In windows service, you need to program everything and they are lengthy but more controlled.

In your case, you can use the windows service and workflows in conjuction. Like you can make your workflow to fire manually and remove waiting conditions. Just a clean workflow to send alerts as per standard template and then in windows service you can program the event and time to fire that workflow. You can fire a workflow using code. Look into SDK and find the relative code. You can even fire a workflow from plugin/javascript. You can fine the code on internet easily.

So you workflow is having the all functionality and your windows service will be having the event and execution code.</description>
		<content:encoded><![CDATA[<p>Hi Glenn,</p>
<p>No doubt, work flow provide some really handy out of the box features. In windows service, you need to program everything and they are lengthy but more controlled.</p>
<p>In your case, you can use the windows service and workflows in conjuction. Like you can make your workflow to fire manually and remove waiting conditions. Just a clean workflow to send alerts as per standard template and then in windows service you can program the event and time to fire that workflow. You can fire a workflow using code. Look into SDK and find the relative code. You can even fire a workflow from plugin/javascript. You can fine the code on internet easily.</p>
<p>So you workflow is having the all functionality and your windows service will be having the event and execution code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ayaz Ahmad [MVP - MSCRM]</title>
		<link>http://ayazahmad.wordpress.com/2008/10/06/waitingtimed-workflow-vs-windows-service/#comment-4891</link>
		<dc:creator>Ayaz Ahmad [MVP - MSCRM]</dc:creator>
		<pubDate>Sun, 14 Dec 2008 20:32:57 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=86#comment-4891</guid>
		<description>Hi Selina,

There must be some workflow defined on activity that is executed whenever a new email is received. This seems to be an automatic workflow or a plugin.</description>
		<content:encoded><![CDATA[<p>Hi Selina,</p>
<p>There must be some workflow defined on activity that is executed whenever a new email is received. This seems to be an automatic workflow or a plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ayaz Ahmad [MVP - MSCRM]</title>
		<link>http://ayazahmad.wordpress.com/2008/10/06/waitingtimed-workflow-vs-windows-service/#comment-4890</link>
		<dc:creator>Ayaz Ahmad [MVP - MSCRM]</dc:creator>
		<pubDate>Sun, 14 Dec 2008 20:28:38 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=86#comment-4890</guid>
		<description>Hi Ad,

It is not so complex to write a simple windows service. You can find a ll info at http://msdn.microsoft.com/en-us/magazine/cc301845.aspx

Just create a windows service project using template projects and embed CRM specific logic using SDK recommendations.

Windows service executes every minute so you need to define a process to compare time and then execute it.</description>
		<content:encoded><![CDATA[<p>Hi Ad,</p>
<p>It is not so complex to write a simple windows service. You can find a ll info at <a href="http://msdn.microsoft.com/en-us/magazine/cc301845.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/magazine/cc301845.aspx</a></p>
<p>Just create a windows service project using template projects and embed CRM specific logic using SDK recommendations.</p>
<p>Windows service executes every minute so you need to define a process to compare time and then execute it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ad</title>
		<link>http://ayazahmad.wordpress.com/2008/10/06/waitingtimed-workflow-vs-windows-service/#comment-4889</link>
		<dc:creator>Ad</dc:creator>
		<pubDate>Sun, 14 Dec 2008 13:59:49 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=86#comment-4889</guid>
		<description>Hi Ayaz,

Thanks for this explanation. I&#039;m currently in the process of developing an environment where exact the same issue appears. I had it running with 4000+ waiting workflows but am a little worried about the behaviour in a real life system. Do you have some template or so for developing a service that interacts with CRM? I made a couple of interactive plugins, but having a hard time to find out how to make something that is not running interactive. Thanks for you cooperation!
Regards,
Ad.</description>
		<content:encoded><![CDATA[<p>Hi Ayaz,</p>
<p>Thanks for this explanation. I&#8217;m currently in the process of developing an environment where exact the same issue appears. I had it running with 4000+ waiting workflows but am a little worried about the behaviour in a real life system. Do you have some template or so for developing a service that interacts with CRM? I made a couple of interactive plugins, but having a hard time to find out how to make something that is not running interactive. Thanks for you cooperation!<br />
Regards,<br />
Ad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Selina</title>
		<link>http://ayazahmad.wordpress.com/2008/10/06/waitingtimed-workflow-vs-windows-service/#comment-4886</link>
		<dc:creator>Selina</dc:creator>
		<pubDate>Fri, 12 Dec 2008 19:41:48 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=86#comment-4886</guid>
		<description>Ayaz,

I have reps here that have incoming email come in from Fedex.com  letting them know their package was delivered. The problem is that every email is attaching automatically many  times to the same contact in activity history. I looked at the events in  System Jobs and it says &#039; workflow expansion task&#039; created by system, owned by system. We have never Ssetup a workflow with incoming emails. Any idea why this is happening and how to stop it? We use CRM 4.0 and the Outlook Ciient.
Thanks!</description>
		<content:encoded><![CDATA[<p>Ayaz,</p>
<p>I have reps here that have incoming email come in from Fedex.com  letting them know their package was delivered. The problem is that every email is attaching automatically many  times to the same contact in activity history. I looked at the events in  System Jobs and it says &#8216; workflow expansion task&#8217; created by system, owned by system. We have never Ssetup a workflow with incoming emails. Any idea why this is happening and how to stop it? We use CRM 4.0 and the Outlook Ciient.<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn</title>
		<link>http://ayazahmad.wordpress.com/2008/10/06/waitingtimed-workflow-vs-windows-service/#comment-4865</link>
		<dc:creator>Glenn</dc:creator>
		<pubDate>Fri, 05 Dec 2008 06:02:38 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=86#comment-4865</guid>
		<description>We are having the same issue with Workflow vs Batch job Pros/Cons to send out alerts. Basically our user base are around 2k thus by using workflows, 2k instances of WF will be created and straining the whole system. The plan will be changing to windows service. But as there are standard templates involved with proper format in WF, how do we go about changing to window service without affecting the output? Users also want to be able to manage the timeline to send those alerts, example 1 day, 3 days etc...any experience to share so i can avoid common pitfalls? Thanks alot!</description>
		<content:encoded><![CDATA[<p>We are having the same issue with Workflow vs Batch job Pros/Cons to send out alerts. Basically our user base are around 2k thus by using workflows, 2k instances of WF will be created and straining the whole system. The plan will be changing to windows service. But as there are standard templates involved with proper format in WF, how do we go about changing to window service without affecting the output? Users also want to be able to manage the timeline to send those alerts, example 1 day, 3 days etc&#8230;any experience to share so i can avoid common pitfalls? Thanks alot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean-Luc Schellens</title>
		<link>http://ayazahmad.wordpress.com/2008/10/06/waitingtimed-workflow-vs-windows-service/#comment-4856</link>
		<dc:creator>Jean-Luc Schellens</dc:creator>
		<pubDate>Tue, 02 Dec 2008 15:43:10 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=86#comment-4856</guid>
		<description>I have tried to develop different workflows for CRM 4.0 but it seems difficult when you assign a task or a meeting to a user to take into account the working hours and days of this user!
E.g. if you define the due date of a meeting as being 2 days after a record is created, and if the record is indeed created a Thursday, then the meeting will be scheduled during the W-E!?!
How to avoid that?
Many thanks</description>
		<content:encoded><![CDATA[<p>I have tried to develop different workflows for CRM 4.0 but it seems difficult when you assign a task or a meeting to a user to take into account the working hours and days of this user!<br />
E.g. if you define the due date of a meeting as being 2 days after a record is created, and if the record is indeed created a Thursday, then the meeting will be scheduled during the W-E!?!<br />
How to avoid that?<br />
Many thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
