Issues With Delay Activity
Has anybody had any success using the Delay activity within Visual Studio authored workflows?Whenever I include a Delay activity in my workflows the workflow goes to sleep and never wakes up. If I listen for a Delay activity along with other events inside a Listen activity, I find that the other events (for example, OnTaskChanged) cause the workflow to be rehydrated as expected but the Delay activity does not. It doesn't seem to make any difference what the TimeoutDuration is set to or whether it's set statically in the designer or dynamically inside an InitiializeTimeoutDuration method.
Does anyone have some sample code with Delay activities working correctly?
[702 byte] By [
NickCox] at [2008-2-18]
I am having the same issue with this ... does anyone have any idea how to go around this issue? or is it just me not using it proper. I have a delay activity with a code activity before and after. I am using ASP.net and ManualWorkflowScheduler. The code reaches the delay activity , fires off the initialize timeowtduration and then goes to sleep. The rest of the code never gets executed.
I can't vouch for the Share Point, but I've had success with delay timers hosted in asp.net work flows. If you're using a the ManualWorkflowSchedulerService you need to set the UseActiveTimers=true or construct it like so: ManualWorkflowSchedulerService foo = new ManualWorkflowSchedulerService(true);
Good luck with the SharePoint issues.
Cheers,
homertbush
Hi all,
I am developping (for a client) a custom approbation sequential workflow in a Sharepoint site (MOSS 2007). I have to use the Delay Activity, and as you guess, my workflow doesn't reload at all after the delay.
I have retrieved the Windows Workflow Foundation "KB929816" hotfix and installed it, but it doesn't solve my problem... (I checked if the dlls were correctly patched and that's ok)
Did somebody succeed to use the delayactivity in a Sharepoint site? Is there something special to do?
PS : For your information, MOSS 2007 uses its own persistence service (SPWinOePersistenceService) and I doesn't seem to be configurable...
Thanks for any reply
Thank you for your reply
I have installed the SP2 and it works now!
The strange thing is that the SP2 is not in the prerequities in the KB article...
Hope I won't have more problems on the delay activity
Thank you again for the infos!