如果发生工作流状态错误,则自动重新启动工作流 [英] Automatically re-start the Workflow If workflow status is error occured

查看:98
本文介绍了如果发生工作流状态错误,则自动重新启动工作流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个名为测试"的列表,并且该列表具有称为"Test_Workflow"的工作流程.假设工作流程未能更新字段,即(工作流程状态为-发生错误),我需要自动重新运行相同的工作流程 60秒或2分钟后获得相同的记录

我需要使用工作流或流程或客户端对象模型来实现此目标

请帮助我解决此问题,如果您需要更多有关此信息,请告诉我.

预先感谢

Bharadwaj 

解决方案

您好,Rupa,

要在发生错误后重新启动工作流,建议的方法是将工作流设置为手动启动,然后在浏览器中手动启动工作流.如果工作流实例导致错误,则必须先取消工作流,然后再进行操作. 您尝试再次启动它.

有关取消工作流程的信息,请参见以下文章:

http://office.microsoft.com/zh-我们/sharepoint-designer-help/redir/HA010164131.aspx?CTT=5&origin=HA010237912

您还可以使用PowerShell取消/重新启动工作流程.

这是参考:

http://eric.oszakiewski.net/在sharepoint-2010-powershell中停止并重新启动特定项目工作流/


最好的问候,

丽莎·陈(Lisa Chen)



Hi All,

I have a list called "Test" and the list has workflow called "Test_Workflow" for suppose if the Workflow failed to update the fields i.e if (Workflow status -is  Error Occurred ) i need to re run the same workflow automatically  after 60 sec or 2 min for the same record 

i need to achieve this either using workflow or flows or client side object model

Please help me to fix this issue, and let me know if you need more information on this .

Thanks in advance 

Bharadwaj 

解决方案

Hi Rupa, 

To restart a workflow after error is occured, the recommended approach is to set the workflow to start manually, and then start the workflow manually in the browser. If the instance of a workflow resulted in an error, you must cancel the workflow before you attempt to start it again.

For canceling the workflow refer to the following article:

http://office.microsoft.com/en-us/sharepoint-designer-help/redir/HA010164131.aspx?CTT=5&origin=HA010237912

You can also cancel/restart workflows with PowerShell.

Here is a reference:

http://eric.oszakiewski.net/stop-and-restart-specific-item-workflows-in-sharepoint-2010-powershell/


Best Regards, 

Lisa Chen 



这篇关于如果发生工作流状态错误,则自动重新启动工作流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆