- Создатель Васильев Антон, отредактировано 07.11.2022
Вы просматриваете старую версию данной страницы. Смотрите текущую версию.
Сравнить с текущим просмотр истории страницы
« Предыдущий Версия 14 Следующий »
Постановка задачи
Настройка почтовых сообщений для пользователя
Инструмент: НБР-админка
Статус | ГОТОВО |
---|---|
Комментарий |
Настройки сервера
В server.properties добавить конфигурацию по взаимодейтсвию с почтовым сервером
server.properties
######################################## # Mail server configuration ######################################## # mail.server.host=mail.inttrust.ru mail.server.host=<mail server> mail.server.port=25 mail.encryption.type=none mail.username=XXX mail.password=XXX mail.default.sender=CompanyMedia@company.ru mail.default.sender.name=CompanyMedia # URL part to CMJ-WebGUI after host. Used for URL in e-mail notifications url.server.host.name=http://<ip>:<host> url.app.name=cmj-web mail.admingui.url.host.name=http://<ip>:<host> mail.admingui.url.app.name=ssrv-war # Host of CMJ-WebGUI. Used for URL in e-mail notifications schedule.service.enableOnStart=true
Добавить E-mail в Персону
Настроить получение почтовых сообщений
- Открыть карточку Штатной единицы/Руководителя высшего звена, которую занимает Персона
- Перейти на вкладку "Уведомления\Стандартный"
- Включить признак "Отправить уведомление текущему назначению"
- Перейти на вкладку "Уведомления\Почтовые"
- Включить признак "Создать почтовое сообщение"
- Сохранить карточку Штатной единицы/Руководителя высшего звена
Мониторинг почтовых сообщений
- Открыть прикладную админку
- Перейти в раздел "Мониторинг\Сообщения пользователя\Почтовые сообщения"
- Убедится, что указанной Персоне отправляются уведомления
Отладка
В случае, если в мониторинге уведомлений будет пусто, то нужно включить логирования для выявления
Class | Level |
---|---|
ru.intertrust.cm.core.business.impl.NotificationServiceImpl | ALL |
ru.intertrust.cm.core.business.impl.notification.MailNotificationChannel | ALL |
ru.intertrust.cm_sochi.srv.connector.sochi.notifications.pkd.PkdBaseChannel | DEBUG |
ru.intertrust.cm_sochi.srv.connector.sochi.notifications.SochiNotificationChannelSelector | DEBUG |
ru.intertrust.cm_sochi.srv.connector.sochi.notifications.pkd.PkdNotificationChannel | DEBUG |
ru.intertrust.cm_sochi.srv.connector.sochi.notifications.pkd.SochiMailNotificationChannel | ALL |
standalone.xml
<periodic-rotating-file-handler name="Notice" autoflush="true"> <formatter> <named-formatter name="PATTERN"/> </formatter> <file relative-to="jboss.server.log.dir" path="Notice\notice.log"/> <suffix value=".yyyy-MM-dd"/> <append value="true"/> </periodic-rotating-file-handler> <!-- ... --> <logger category="ru.intertrust.cm.core.business.impl.NotificationServiceImpl" use-parent-handlers="false"> <level name="ALL"/> <handlers> <handler name="Notice"/> </handlers> </logger> <logger category="ru.intertrust.cm_sochi.srv.connector.sochi.notifications.pkd.PkdBaseChannel" use-parent-handlers="false"> <level name="DEBUG"/> <handlers> <handler name="Notice"/> </handlers> </logger> <logger category="ru.intertrust.cm_sochi.srv.connector.sochi.notifications.SochiNotificationChannelSelector" use-parent-handlers="false"> <level name="DEBUG"/> <handlers> <handler name="Notice"/> </handlers> </logger> <logger category="ru.intertrust.cm_sochi.srv.connector.sochi.notifications.pkd.PkdNotificationChannel" use-parent-handlers="false"> <level name="DEBUG"/> <handlers> <handler name="Notice"/> </handlers> </logger> <logger category="ru.intertrust.cm_sochi.srv.connector.sochi.notifications.pkd.SochiMailNotificationChannel" use-parent-handlers="false"> <level name="ALL"/> <handlers> <handler name="Notice"/> </handlers> </logger> <logger category="ru.intertrust.cm.core.business.impl.notification.MailNotificationChannel" use-parent-handlers="false"> <level name="ALL"/> <handlers> <handler name="Notice"/> </handlers> </logger>
Действия
- Нет меток