JunHOV

Hello,

I have a problem with Delay Activity in Sharepoint state machine workflow. This issue is kind of common to many people but so far I haven't come accross any working solution. In one of the workflow states, I want to add a delay activity to send email notification if no action is taken after certain time. Below is what I have done:

In the targeted state:

1) add one eventDriven activity to handle the normal process (approve the item)

2) add another eventDriven activity to send the reminder email. In this eventDriven activity, I first add a delayActivity, set it to 2 minutes for test purpose. Then I add a Sharepoint SentEmail activity.

With my test, the Dealy Activity is never invoked after timeout period. What should I do to make the delay activity work in the SharePoint state machine workflow Is there any work around if the delay activity is simply not working there

Any suggestions are appreciated.




Re: SharePoint - Workflow Delay Activity is not working with SharePoint state machine workflow

jherschel

Jun,

I am having the same problem. There is a hotfix for this issue here: http://www.microsoft.com/downloads/details.aspx FamilyID=6096ce0f-d21e-47ac-afe2-d4e1c2fce670&displaylang=en

This hotfix is suppose to fix problems with delay, delayUntil, and delayFor activities

Unfortunately, I installed the hotfix and am still having a problem where the Delay activities do not 'wake' up. They just sit there past the time when they should be exiting pause mode. I am using them in a Sequencial Workflow, but also saw this in a State Machine WF.

I will try to install it again. Also, the hotfix says it is for Windows server 2003 SP1, but I have SP2. Not sure if this is supposed to be fixed in SP2 or not...

Its worth a shot.

Regards,

Jonathan K. Herschel





Re: SharePoint - Workflow Delay Activity is not working with SharePoint state machine workflow

jherschel

Can anyone verify that this Delay Activities 'not waking up' hotfix is working for them The hotfix says it is for Windows 2003 server SP1, but I am running SP2, but I had this problem, so I figured I would install the patch. I still have this problem.

A simple Yes / No would be appriecated.





Re: SharePoint - Workflow Delay Activity is not working with SharePoint state machine workflow

JunHOV

The same thing happened to me also. After installing the hotfix, the delay activity is still not working.

Thanks






Re: SharePoint - Workflow Delay Activity is not working with SharePoint state machine workflow

DJ Lordee

Same thing for us; SP2 + hotfix still does not work





Re: SharePoint - Workflow Delay Activity is not working with SharePoint state machine workflow

jherschel

Thanks all for letting me know it wasn't just me. I am calling MS support today and will let you know the outcome.

Jon





Re: SharePoint - Workflow Delay Activity is not working with SharePoint state machine workflow

pavel_roy

I am also having the same problem.Wait activity just does not wake up.I have even tried placing it before createtask activity and noticed that no tasks even gets created.So that means its waiting for ever.

I also tried installing the hotfix that does not work either.

Please let me know if you can fix the bug.






Re: SharePoint - Workflow Delay Activity is not working with SharePoint state machine workflow

jherschel

So far, Ive gotten feedback from 7 other developers (in forums) who are having the same problem where this update (Hotfix) is not working correctly for the Workflow delay activities, specifically Windows Server 2003 SP2 (anybody have problems on different platform )

So, I called MS support this morning and they transferred me to .NET support team. Apparently it is a Microsoft .NET Framework 3.0 issue (Artical ID: 932394). They took down my information and informed me that due to the overwhelming popularity of SharePoint, that it would take 10-20 days until they could get back to me. OY!

So, I am going to look into other options /checks such as:

  • Uninstalling .net 3.0
  • creating a SP Designer workflow to see if I can something to work until the delay is fixed. (maybe crack it open to see what delay(s) it uses...)
  • Install VS 2005 SP1
  • find an alternative to delay (maybe System.Timer, etc..).
  • One person suggested to make sure your timezone is set on SP and SQL server, but I checked that and all is good.

I will keep everyone updated if I find anything, but until then, we're in a jam.

Regards,

Jonathan K. Herschel





Re: SharePoint - Workflow Delay Activity is not working with SharePoint state machine workflow

Fred Morrison

I had a similar problem using a Delay activity as one leg of a ConditionedActivityGroup (CAG). Installing the hotfix you mentioned earlier did not help. The only thing that worked for me was to replace the Delay activity with a DelayFor activity. Delay is WF. DelayFor is SharePoint. Perhaps that makes all the difference The one drawback of DelayFor (or its sibling DelayUntil) is that they tend to be rather "chatty" in terms of adding two extra entries to your Workflow History each time the delay begins/ends. I hope you hear soon about a better (less "chatty") solution.






Re: SharePoint - Workflow Delay Activity is not working with SharePoint state machine workflow

jherschel

I tried using a DelayFor as well and the delays are waking up properly. I was previously using DelayUntil. I don't know why one would work and another wouldn't. Now I just subtract the todays date from the future date and convert to days and then DelayFor x days...

Jonathan K. Herschel





Re: SharePoint - Workflow Delay Activity is not working with SharePoint state machine workflow

JunHOV

The DelayFor activity cannot work in a state machine workflow since the first child activity in an EventDrivenActivity has to implement IEventActivity. The DelayFor activity is only implementing the SequenceActivity and cannot be placed inside the EventDrivenActivity in state machine workflow. Looks like the only option for me is to use the Delay activity, which is not working. Is there any work around for state machine workflow

Any suggestion is appreciated.






Re: SharePoint - Workflow Delay Activity is not working with SharePoint state machine workflow

mh8759

I've just tried installing this hotfix and problems with delays in SharePoint workflows remain. I have different issues, that is, workflow wakes up, but delays although set at 5 mins are much longer than that, in fact, they get longer with every rehydration. I have made a test while loop which checks counter and repeats until counter is ten. So far its been almost one day since the last (ninth) time workflow ran.

This same test code does works without problems in regular windows workflow with console app.





Re: SharePoint - Workflow Delay Activity is not working with SharePoint state machine workflow

mh8759

Further investigation brought up this.

Besides that hotfix try this one and check if it helps -

http://support.microsoft.com/kb/932816

It is available per request only.





Re: SharePoint - Workflow Delay Activity is not working with SharePoint state machine workflow

DHendry

Has anyone got this other fix working yet





Re: SharePoint - Workflow Delay Activity is not working with SharePoint state machine workflow

rvknaidu

me too facing the similar problem. If u get any solution pls share with me.