工作流程:暂停一段时间 SPD WF 操作挂起
目前,我正在开发一个 SPOnline 工作流程,尝试根据下拉框值每月、每季度或每年自动分配任务。 根据我的测试,设置为 5 分钟的暂停持续时间似乎挂起,并且在暂停后不会恢复工作流程。 我尝试删除持续时间操作的暂停,并成功分配了任务。 以下是当前解决问题的流程:
步骤/操作
1/初始化工作流程
2/根据下拉列表确定月/季度/年
3/暂停基于 DDL 值(这是挂起的位置)
4/将文档审批状态设置为待处理
5 / 分配任务
6 / 将文档审批状态设置为“已完成”
无论我将其设置为什么时间间隔,它似乎都会挂起并且无法完成工作流程或转到下一个任务。 我尝试了以下步骤:
• 通过删除暂停持续时间步骤来调试工作流程
• 更改区域设置以匹配服务器
• 将工作流程操作分解为多个步骤,反之亦然(查看是否需要将暂停分开)
• 尝试了 5、 10、15、30 分钟和 1 小时暂停
对于要查看的内容或暂停持续时间是否无法正常工作有什么建议吗? 谢谢!!
Currently, I'm developing a SPOnline workflow trying to automatically assign a task monthly, quarterly, or yearly based on a drop down box value. From what I've been testing, the pause for duration, set at 5 minutes, seems to hang and does not resume the workflow after pausing. I have tried removing the pause for duration action and have had a successful task assignment. Heres how it flows currently with the problem:
Step / Action
1 / Workflow Initialized
2 / Determine Month/Qtr/Year based on drop down list
3 / Pause based DDL value (This is where it hangs)
4 / Set document approval status to Pending
5 / Assign a task
6 / Set document approval status to Completed
No matter what time interval I set it to, it seems to hang and not complete the workflow or go to the next task. I've tried the following steps:
• Debugging the workflow by removing pause for duration step
• Changed regional settings to match server
• Broken up workflow actions into multiple steps and vice versa (seeing if pause needs to be seperated out)
• tried 5,10,15,30 min and 1 hour pauses
Any suggestions on what to look at or if Pause for Duration is not working properly? Thanks!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有一个修补程序可以解决“暂停一段时间”操作未触发的问题。 但是,我认为这已纳入 SP1,因此您应该已经应用了该功能:
热修复博客条目
There was a hotfix to address a problem with the "pause for duration" actions not firing. However, I think this was rolled into SP1, so you should have that applied already:
Hot fix blog entry
http://www.microsoft.com/downloads/details.aspx microsoft.com/downloads/details.aspx?FamilyId=256CE3C3-6A42-4953-8E1B-E0BF27FD465B&displaylang=en
http://www.microsoft.com/downloads/details.aspx?FamilyId=256CE3C3-6A42-4953-8E1B-E0BF27FD465B&displaylang=en
FWIW,安装 SP2 后我也遇到同样的情况。 几个本应暂停 3 分钟的“暂停持续时间”WFA 现在已经等待了 4 天以上,工作流程中没有出现任何错误,并且所有计时器作业在中央管理中报告运行状况良好。
MSDN 上有一篇关于此问题的帖子,表明该修补程序仅修复了部分问题:http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/1965d387-8436-4868-98dc-7a76cbda75d3/ (该讨论已被锁定,感谢 MSDN)
FWIW, I'm getting the same behavior with SP2 installed. Several "Pause for Duration" WFAs which should have paused for 3 minutes each have now been waiting for more than 4 days with no error in the workflow, and all timer jobs reporting healthy in central admin.
There's a post about this on MSDN which suggests that the hotfix only fixed part of the problem: http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/1965d387-8436-4868-98dc-7a76cbda75d3/ (that discussion has been locked, thanks MSDN)