Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Информация
iconfalse
titleПостановка задачи
Настройка почтовых сообщений для пользователя
Подсказка
iconfalse
Инструмент: НБР-админка
Свойства страницыСтатус СтатусcolourYellowtitleВ РАБОТЕКомментарий панель
titleПроизвольный модуль
панель

Действия

toc
панель
titleНавигация

Оглавление

Свойства страницы
Статус

Статус
colourGreen
titleГОТОВО

Комментарий

Настройки сервера

В server.properties добавить конфигурацию по взаимодейтсвию с почтовым сервером

Блок кода
title 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 в Персону

  1. Открыть карточку Персоны
  2. Заполнить поле E-mail
  3. Сохранить карточку Персоны

    Image Added

Настроить получение почтовых сообщений

  1. Открыть карточку Штатной единицы/Руководителя высшего звена, которую занимает Персона
  2. Перейти на вкладку "Уведомления\Стандартный"
  3. Включить признак "Отправить уведомление текущему назначению"
    Image Added
  4. Перейти на вкладку "Уведомления\Почтовые"
  5. Включить признак "Создать почтовое сообщение"
    Image Added
  6. Сохранить карточку Штатной единицы/Руководителя высшего звена

Мониторинг почтовых сообщений

  1. Открыть прикладную админку
  2. Перейти в раздел "Мониторинг\Сообщения пользователя\Почтовые сообщения"
  3. Убедится, что указанной Персоне отправляются уведомления
    Image Added

Отладка

В случае, если в мониторинге уведомлений будет пусто, то нужно включить логирования для выявления 

ClassLevel
ru.intertrust.cm.core.business.impl.NotificationServiceImplALL
ru.intertrust.cm.core.business.impl.notification.MailNotificationChannelALL
ru.intertrust.cm_sochi.srv.connector.sochi.notifications.pkd.PkdBaseChannelDEBUG
ru.intertrust.cm_sochi.srv.connector.sochi.notifications.SochiNotificationChannelSelectorDEBUG
ru.intertrust.cm_sochi.srv.connector.sochi.notifications.pkd.PkdNotificationChannelDEBUG
ru.intertrust.cm_sochi.srv.connector.sochi.notifications.pkd.SochiMailNotificationChannelALL
панель

Действия

Оглавление

Блок кода
languagexml
titlestandalone.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>