SharePoint User Group UK

Share the knowledge!

Welcome to SharePoint User Group UK Sign in | Join | Help
in
Home Blogs Forums Photos Files Roller

Workflow Question

Last post 05-11-2008, 3:37 AM by Jonathan Holmes. 2 replies.
Sort Posts: Previous Next
  •  04-25-2008, 4:30 PM 10229

    Workflow Question

    Hi, i have to develop a workflow in vs2005 and sharepoint 2007.

    The workflow must runs forever and the workflow must pause for a minutes and the do a code activity...

    I tried to develop a sequential wf, with a while (with true as condition so the wf runs forever) and inside the while a delay activity.

    The problem is that in every loop the timer takes more time to pause!

    I think this is happening because of the way that the wf runtime executes the task, and the while true is giving problems,,

    Anybody has a suggestion on this? How i can develop this workflow?

    Thanks

     

  •  04-26-2008, 12:20 PM 10239 in reply to 10229

    Re: Workflow Question

    Hi

    Workflows are designed to be action initiated and content centric, meaning that they are started on some action (upload, add, edit, delete, etc) against a piece of information. They are not for simple repeating tasks. Without knowing what you are trying to do, it's impossible to give any sound advice but it does sound to me like you're using the wrong approach here.

    For repeating tasks that perform some action each minute, I'd create a Powershell script and schedule it to run accordingly with the Windows Scheduler.

     


    Paul Leigh
  •  05-11-2008, 3:37 AM 10621 in reply to 10239

    Re: Workflow Question

    Hi, I agree with Paul's comment. Workflows are designed in SharePoint to be specificially associated with objects such as a list item. In order to carry out a repetitive task I would recommend creating either a Powershell script, as suggested by Paul, or my prefered solution would be a SharePoint timer job that can be installed and scheduled to run every X minutes/hours/days to process information on a given sharepoint farm.

    Jonathan Holmes
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems