开发者

Re-running or stopping one workflow with another in Sharepoint 2010

开发者 https://www.devze.com 2023-04-13 05:35 出处:网络
I\'m working with a list in Sharepoint 2010. When an item is created a workflow is kicked off that will pause until a specified date and then send off a reminder email.

I'm working with a list in Sharepoint 2010. When an item is created a workflow is kicked off that will pause until a specified date and then send off a reminder email.

The problem is that if a user edits an item, the paused workflow doesn't re-start. I've tried creating a second workflow that runs "On Change" to stop or re-run the paused workflow. But it seems I can't stop a different workflow, and can't restart the other workflow if it's already paused. Is there any solution for this I'm overlooking?

I saw this: Launch Sharepoint workfloweach time a change is made, even if there is a pause but it didn't work for me. Maybe开发者_开发知识库 something is different in SP2010?

Thanks!


Consider redesigning your application: for such tasks you should use timer jobs. Your timer job would query the list for all items changed before date X / before X days and the send emails for all results. It's not a good idea to misuse workflow for a generally non-workflow task.

0

精彩评论

暂无评论...
验证码 换一张
取 消