in ddm-notification-service-inbox/src/main/java/com/epam/digital/data/platform/notification/inbox/producer/InboxNotificationProducer.java [52:74]
public InboxNotificationMessageDto createMessageDto(Recipient recipient,
UserNotificationMessageDto message) {
String messageBody;
String title;
try {
messageBody = createMessageBody(recipient, message);
title = getTitle(message);
} catch (NotificationTemplateNotFoundException e) {
log.warn(
"Notification template not found for template: {}. '{}' Notification won't be delivered.",
message.getNotification().getTemplateName(), getChannel().getValue());
throw e;
}
return InboxNotificationMessageDto.builder()
.recipientName(recipient.getId())
.recipientRealm(recipient.getRealm())
.context(message.getContext())
.notification(NotificationDto.builder()
.subject(title)
.message(messageBody)
.build())
.build();
}