Welcome to MSDN Blogs Sign in | Join | Help

MADHU@MICROSOFT BLOG

All About Distributed apps

Syndication

News

Madhu Ponduru works at Microsoft. Everything here, though, is his personal opinion and is not read or approved by Microsoft before it is posted. No warranties or other guarantees will be offered as to the quality of the opinions or anything else offered here.
ManualWorkflowSchedulerService+Delay Activity

By default, the ManualWorkflowSchedulerService is used without active timers. So when the delay is hit, the workflow yields the thread back to the scheduler, and when the delay expires, nobody is around to call RunWorkflow. If you look in the web.config for the service you should see the entry for the scheduler service and you can add in the UseActiveTimers=true which will cause the workflow to resume when the delay expires

Example:

<add type="System.Workflow.Runtime.Hosting.ManualWorkflowSchedulerService, System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" useActiveTimers="true"/>

 

useActiveTimers:

Boolean that determines how delay activities are handled. If true, the scheduler service automatically resumes workflows after delay activities expire (by using an in-memory timer). If false, the host must manually resume the workflow after the delay activities expire.

Published Thursday, July 24, 2008 7:06 PM by madhu_ponduru@hotmail.com

Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# a-foton &raquo; ManualWorkflowSchedulerService+Delay Activity @ Thursday, July 24, 2008 11:07 PM

PingBack from http://blog.a-foton.ru/2008/07/manualworkflowschedulerservicedelay-activity/

a-foton &raquo; ManualWorkflowSchedulerService+Delay Activity

# re: ManualWorkflowSchedulerService+Delay Activity @ Wednesday, May 27, 2009 5:33 AM

hi,

can you explain the importance in detail and where exactly I should add this Tag in Web.config file?

Thanks,

Sangati

# re: ManualWorkflowSchedulerService+Delay Activity @ Friday, July 31, 2009 12:11 PM

PROBLEM:

=========

Delay activity has issues when the workflow is exposed as web service. The time out

duration of 0 works just great. If we put the time duration as 1 second or greater,

the web service just hangs.

CAUSE/SOLUTION:

===============

By Default WebService workflows use the ManualWorkflowSchedulerService without

active timers. So when the delay is hit, the workflow yields the thread back to the

scheduler, and when the delay expires, nobody is around to call RunWorkflow. If you

look in the web.config for the service you should see the entry for the scheduler

service and you can add in the UseActiveTimers=true which will cause the workflow

to resume when the delay expires.

Have the entry in web.config as follows and it fixes the issue:

<add type="System.Workflow.Runtime.Hosting.ManualWorkflowSchedulerService,

System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral,

PublicKeyToken=31bf3856ad364e35" useActiveTimers="true"/>

madhu_ponduru@hotmail.com

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement  
Page view tracker