当到达 onWorkflowItemChanged 事件时,SharePoint 工作流提前完成
我有一个在表单列表上运行的工作流程。该工作流在 While 活动中包含 OnWorkflowItemChanged 活动。我知道工作流进入 While 循环并检查值为“true”的 while 条件,但它不会进入 OnWorkflowItemChanged 活动来执行其代码。一旦进入 while 活动,它就会停止工作流执行并将工作流状态设置为“已完成”,尽管在 while 活动之后还有多个活动。
当工作流到达 onWorkflowItemChanged 活动时,什么可能导致工作流完成???
I have a workflow running on a forms list. The workflow has an OnWorkflowItemChanged activity sitting within a While activity. I know that the workflow enters the While loop and checks the while condition that has the value 'true', but it does not enter into the OnWorkflowItemChanged activity to execute its code. Once it enters the while activity it stop the workflow execution and sets the workflow status as 'Completed' in spite the fact that after the while activity there are several more activities.
What could cause the workflow completion when it reaches the onWorkflowItemChanged activity???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的活动中存在任何未处理的异常,工作流程将转至完成状态。请调试您的代码并查看是否可以处理该异常。
谢谢!
If there are any unhandled exceptions in your activity, the workflow will move to complete status. Please debug your code and see if you can handle the exception.
Thanks!