简体   繁体   English

多个工作流任务陷入Sharepoint 2007

[英]multiple workflow tasks get stuck in Sharepoint 2007

I'm fairly new in programming and I need a hand for a problem I cannot solve. 我在编程方面相当新,我需要一只手来解决我无法解决的问题。 I have created a sequential approval workflow using SharePoint 2007 and Visual Studio 2010. And the tutorial in this page: http://www.sheltonblog.com/archive/2007/11/21/how-to-video-building-a-basic-approval-workflow-with-sharepoint.aspx 我使用SharePoint 2007和Visual Studio 2010创建了一个顺序批准工作流。此页面中的教程: http//www.sheltonblog.com/archive/2007/11/21/how-to-video-building-a-基本的审批工作流与- sharepoint.aspx

Everything seems fine I can create the approval forma and approve it! 一切似乎都很好我可以创建批准格式并批准它! However if I need to have to approval workflows at the same time, it simply get stuck! 但是,如果我需要同时批准工作流程,它就会陷入困境! I've tried to Troubleshoot with the Visual Studio Debug and check in the workflow logs but nothing seems to be picked up. 我尝试使用Visual Studio Debug进行故障排除并检查工作流日志,但似乎没有任何东西被选中。 Have you got any idea? 你有什么想法吗?

I've been in the same situation following that tutorial I found that the problem was the fact that he uses the same guid for the task, therefore if you have multiple tasks with the same Guid Sharepoint gets "confused" and does nothing. 在教程之后我一直处于相同的情况我发现问题在于他使用相同的guid执行任务,因此如果你有多个任务使用相同的Guid Sharepoint被“混淆”并且什么都不做。 To solve the issue have to: 解决问题必须:

Go in the designer. 进入设计师。 Select the create task. 选择创建任务。 Remove the Guid Click on the ... Select Bind to a New Member and Create new Field the click OK 删除Guid单击...选择“绑定到New MemberCreate new Field ,然后单击“确定”

in the code behind in the CreateTask Method use the following code to have the TaskID Guid created anew everytime: 在CreateTask方法后面的代码中,使用以下代码每次都重新创建TaskID Guid:

createTaskt1_TaskId1 = Guid.NewGuid();

PS Change the createTaskt1_TaskId1 with the name of your property. PS使用您的属性名称更改createTaskt1_TaskId1。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM