Project

General

Profile

Actions

Task #509

closed

Cannot override notification level

Added by Jan Helbich over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Notification
Target version:
Start date:
06/13/2017
Due date:
% Done:

100%

Estimated time:
4.00 h
Owner:

Description

In our project (running 7.3.0-rc2) we have declared an email topic with INFO level (NotificationLevel.INFO).
When we try to send a message into this topic without specifying a notification level, everything works just fine.
But setting a new notification level somehow result in silent failure. There is no error in the log, no message on FE, nothing.

Example of working notification send:

    notificationManager.send(
            "mytopic",
            new IdmMessageDto.Builder()
                    .addParameter("param1", orgType)
                    .addParameter("entity", orgEntity)
                    .build(),
            recipients
    )

Example of failing code:

    notificationManager.send(
             "mytopic",
            new IdmMessageDto.Builder()
                    .setLevel(NotificationLevel.SUCCESS)
                    .addParameter("param1", orgType)
                    .addParameter("entity", orgEntity)
                    .build(),
            recipients
    )

If such feature is not supported (though I don't see a reason why), please at least handle the error appropriately.

If notification are sent from FE test page, then console sender is used all time.

Actions

Also available in: Atom PDF