Package net.pricefx.server.dto.calculation.notification
package net.pricefx.server.dto.calculation.notification
Sending notifications to users and user groups.
A logic builds a notification, names its recipients, and sends it. The notification also sets what happens when a user clicks it. A click opens an application page, a front-end route or the messages of a document such as a Quote. A click can also start a download, or do nothing.
Entry point:
PublicGroovyAPI.notificationApi().
api.notificationApi()
.withTitle("Price list approved")
.withMessage("The EU price list is ready for review.")
.withSuccessStatus()
.withNoAction()
.withSource("PL.101")
.withRecipient("john.doe")
.send()
Every notification needs a title, a status, a click action, a source and at least one
recipient, a user or a user group. It also needs a message, unless its action is
withNoAction().
Reference
NotificationApibuilds a notification and sends it.
- See Also:
-
Interfaces