简体   繁体   English

Dynamics 365-检查以确保所有任务均已完成

[英]Dynamics 365 - A check to ensure that all tasks have been complete

I have a scenario where the user wants a check in place to ensure that all tasks have been completed before moving onto next stage on the Business Process Flow. 我有一个场景,用户想要进行检查以确保所有任务都已完成,然后再进入业务流程流的下一个阶段。

Is there anyway to do this? 反正有这样做吗?

2 ways to achieve it. 实现它的2种方法。

Option 1: Create a bool field - Tasks closed? 选项1:创建布尔字段- Tasks closed? & keep that in BPF step, if it's true then platform will also users to move forward. 并将其保持在BPF步骤中,如果确实如此,那么平台还将使用户继续前进。 Otherwise not. 否则不行。

You can mark this as read-only , write a plugin on Task completion to update this as yes , when there is no more open tasks. 您可以将其标记为只读 ,在没有更多打开的任务时,在“任务完成”时编写一个插件以将其更新为“ yes

Read more 阅读更多

Option 2: Can have a js validation onStageChange or onSave to retrieve open child tasks, check the count, show notification & preventDefault. 选项2:可以通过js验证onStageChange或onSave来检索打开的子任务,检查计数,显示通知和preventDefault。

Read more 阅读更多

You can do the same in pre-update plugin, throw InvalidPluginExecutionException if there are open tasks. 您可以在更新前插件中执行相同的操作,如果有打开的任务,则抛出InvalidPluginExecutionException

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

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