即使取消了创建计划,也会发送任务通知电子邮件 [英] Task notification email is sent even when pblishing schedule is cancelled

查看:175
本文介绍了即使取消了创建计划,也会发送任务通知电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有自定义服务器事件处理程序来处理OnPublishing事件。根据业务需求,在获得批准之前不应发布计划,因此,在服务器事件处理程序中,当计划未被批准时,我取消发布操作
但是已分配的资源正在获取任务通知电子邮件的问题他们不应该在哪里。

I have custom server event handler which handles OnPublishing event. Based on business requirements, schedule shouldn't be published before getting approval, so, in the server event handler I cancel the publish operation when the schedule is not approved but the problem that the assigned resources are getting tasks notifications emails where they shouldn't.

我如何处理?

推荐答案

你好tabudayyeh,

Hi tabudayyeh,

在我看来,你可以在  通知
上开发一个新的事件处理程序。事件处理程序基本上,您可以为通知事件重载 
OnSent 方法,如果您的事件处理程序取消了发布作业,那么,您可以"块"通知
的资源。

in my opinion, you can develop a new event handler on Notifications Event synched whit your custom server event handler. Basically, you can overload OnSent method for notifications events, and, if publish job is canceled by you event handler, so, you can "block" the notification for resources.

我希望这可以帮到你,

最好的问候

Paolo O。


这篇关于即使取消了创建计划,也会发送任务通知电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆