Wednesday, November 11, 2009

Never use Thread.Sleep in SharePoint Workflows

From last 2 months, i was very busy in developing custom workflows. So, I didn't get chance to blog my experience during all these days. I really got great experience by working on a custom workflow. I am trying to put my experience in various posts including this post.

Coming to the main point, never ever use Thread.Sleep in SharePoint workflows

Reason: If we deploy the custom workflow with Thread.Sleep instructions, then IISReset will keep these instructions out of memory and the workflow will struck there.
Alternative: Use appropriate inbuilt or custom workflow activities.

No comments: