如何创建并要求完成 Workflow Foundation 的几个任务的子集?

发布于 2024-07-09 06:15:28 字数 244 浏览 7 评论 0原文

我有一个流程,需要四五个人中任意两个人的批准。 我想创建一个分配给每个人的任务,并在其中两个任务完成后,删除剩余的任务并继续工作流程。

有没有办法使用单个 CreateTask 活动创建多个任务? 另外,我对 WorkFlow 还很陌生,所以如果我将 TaskIDs 存储在数组中,我可以迭代它们以在事后删除剩余的任务吗?

或者我的处理方式完全错误吗? 我愿意接受建议。

I have a process that requires approval from any two people out of a group of four or five. I'd like to create a task assigned to each person, and after two of those tasks are complete, delete the remaining tasks and move on with the workflow.

Is there a way to create multiple tasks with a single CreateTask activity? Also, I'm still fairly new to WorkFlow, so if I store the TaskIDs in an array, can I iterate over them to delete the remaining tasks after the fact?

Or am I going about this entirely the wrong way? I'm open to suggestions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

她比我温柔 2024-07-16 06:15:28

我不确定它们是否适用于 Sharepoint,但请查看 Matt Winkler 的这些帖子:

我认为第二篇文章准确地描述了您的情况。

I am not sure if they apply to Sharepoint, but check these posts from Matt Winkler:

I think that the second post describes exactly your case.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文