工作流程分离
我有一个 CustomList 和一个自定义 VS - WF 关联。 在 customList 中创建的每个项目上 - WF 任务由 WF 创建 此 WF 任务列表是具有自定义内容类型的自定义任务列表。
每当我从自定义列表中删除 WF 的关联时,任务列表中的所有任务都会被删除。
这是默认行为吗?有什么方法可以保留这些任务而不是被删除吗?
I have a CustomList and a custom VS - WF is associated.
On each item created in the customList - a WF Task is created by the WF
this WF task list is a custom TaskList with a custom Content Type.
whenever I remove the association of the WF from the customList - all the TASK in the Task list gets deleted.
is it the default behaviour ? Is there any way to retain those TASKs instead of it getting deleted ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这是默认设置。当创建工作流任务的工作流被删除时,无法立即防止工作流任务被删除。
唯一的方法是为任务列表创建一个事件处理程序,等待
ItemDeleted
然后取消删除。以下博客文章对此进行了解释:防止工作流任务被删除Yes, this is the default. Preventing workflow tasks from being deleted, when the workflow which created them is deleted is not possible out of the box.
The only way you have is to create an event handler for the task list which waits for
ItemDeleted
and then cancel the deletion. This is explained in the following blog post: Prevent Workflow Tasks From Being Deleted