Interface BusinessNotification.MessageBuilder
- Enclosing interface:
BusinessNotification
public static interface BusinessNotification.MessageBuilder
- API:
- This is a public API.
-
Method Summary
Modifier and TypeMethodDescriptionDefines the path to a message string located in the CMSDefines the text of the notification message.
-
Method Details
-
text
Defines the text of the notification message.
Example with simple text:
BusinessNotification.create().message().text("Order was delivered")...Example with message arguments:
BusinessNotification.create().message().text("Order {0} for customer {1} was delivered", in.orderNr, in.customerName)...- Parameters:
message- the messageargs- MessageFormat arguments- Returns:
- builder for further composition of the notification
- API:
- This public API is available in Java.
-
fromCms
Defines the path to a message string located in the CMSExample with simple text in the CMS:
CMS:
Code:/Notification/business/Messages/OrderDelivered > "Order was delivered"BusinessNotification.create().fromCms("OrderDelivered")...Example with message arguments:
CMS:
Code:/Notification/business/Messages/OrderDelivered > "Order {0} for customer {1} was delivered"BusinessNotification.create().fromCms("OrderDelivered", in.orderNr, in.customerName)...- Parameters:
cmsNameOrRelativePath- the CMS name of or a relative path to the message stringargs- MessageFormat arguments- Returns:
- builder for further composition of the notification
- API:
- This public API is available in Java.
-