locked
How to check a task due date during a sharepoint workflow RRS feed

  • Question

  • Hello:

    Given the numerous issues with the Delay activity (i.e. it does not work even after all the updates and hot fixes), is there any other way to detect that a Sharepoint workflow task has gone overdue, and take action within the workflow?

    Thanks,

    John
    Wednesday, December 9, 2009 10:22 PM

Answers

  • Delay activity is working fine after WSS 3.0 SP2, only thing to keep in mind is that the workflow job runs every 5 minutes by default (you can change that if needed http://technet.microsoft.com/en-us/library/cc424946.aspx).

    I had a requirement for a workflow one time to make it expire after due dates, and some tasks had due dates that are due in minutes! so that was no good for me, so I ended up creating a timer job that goes and queries the task list for tasks that are not completed/ expired yet and checked the due date, if they are due, then complete them and set the outcome to expired.

    Dennis Alzoubi
    • Marked as answer by Mike Walsh FIN Thursday, December 24, 2009 4:01 PM
    Wednesday, December 23, 2009 1:55 AM
  • Hi,

    Create a Timer job which will run daily. For each and every task list item, the timer job will check the due date and if the due date is less than today (like due date was yesterday) then you can perform your action (Whatever you want to do).
    If you will try to do this with workflow only (I don t know how) then it can become more complex and a mess.

    Try creating Timer jobs and they will work like a charm. I have used this technique only to check the due dates.
    You can see the below link for creating Timer jobs :

    http://www.andrewconnell.com/blog/articles/CreatingCustomSharePointTimerJobs.aspx

    Regards
    Ginni
    • Proposed as answer by Jevgeni Borozna Wednesday, December 23, 2009 12:00 PM
    • Marked as answer by Mike Walsh FIN Thursday, December 24, 2009 4:01 PM
    Wednesday, December 23, 2009 10:03 AM

All replies

  • Delay activity is working fine after WSS 3.0 SP2, only thing to keep in mind is that the workflow job runs every 5 minutes by default (you can change that if needed http://technet.microsoft.com/en-us/library/cc424946.aspx).

    I had a requirement for a workflow one time to make it expire after due dates, and some tasks had due dates that are due in minutes! so that was no good for me, so I ended up creating a timer job that goes and queries the task list for tasks that are not completed/ expired yet and checked the due date, if they are due, then complete them and set the outcome to expired.

    Dennis Alzoubi
    • Marked as answer by Mike Walsh FIN Thursday, December 24, 2009 4:01 PM
    Wednesday, December 23, 2009 1:55 AM
  • Hi,

    Create a Timer job which will run daily. For each and every task list item, the timer job will check the due date and if the due date is less than today (like due date was yesterday) then you can perform your action (Whatever you want to do).
    If you will try to do this with workflow only (I don t know how) then it can become more complex and a mess.

    Try creating Timer jobs and they will work like a charm. I have used this technique only to check the due dates.
    You can see the below link for creating Timer jobs :

    http://www.andrewconnell.com/blog/articles/CreatingCustomSharePointTimerJobs.aspx

    Regards
    Ginni
    • Proposed as answer by Jevgeni Borozna Wednesday, December 23, 2009 12:00 PM
    • Marked as answer by Mike Walsh FIN Thursday, December 24, 2009 4:01 PM
    Wednesday, December 23, 2009 10:03 AM