如何创建并要求完成 Workflow Foundation 的几个任务的子集?
我有一个流程,需要四五个人中任意两个人的批准。 我想创建一个分配给每个人的任务,并在其中两个任务完成后,删除剩余的任务并继续工作流程。
有没有办法使用单个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定它们是否适用于 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.