public class NotificationEngine extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
NotificationEngine.Message |
Constructor and Description |
---|
NotificationEngine() |
Modifier and Type | Method and Description |
---|---|
void |
dispatchMessage(TavernaRun originator,
String destination,
NotificationEngine.Message message)
Dispatch a message over the notification fabric.
|
List<String> |
listAvailableDispatchers() |
void |
setDispatchers(List<MessageDispatcher> dispatchers) |
void |
setUniversalDispatchers(List<MessageDispatcher> dispatcherList) |
public void setDispatchers(List<MessageDispatcher> dispatchers)
dispatchers
- The various dispatchers we want to install.public void setUniversalDispatchers(List<MessageDispatcher> dispatcherList)
dispatcherList
- A list of dispatch objects to always dispatch to.public void dispatchMessage(TavernaRun originator, String destination, NotificationEngine.Message message) throws Exception
originator
- What workflow run was the source of this message?destination
- Where the message should get delivered to. The correct format
of this is either as a URI of some form (where the scheme
determines the dispatcher) or as an invalid URI in which case
it is just tried against the possibilities to see if any
succeeds.subject
- The subject line of the message.message
- The plain text body of the message.Exception
- If anything goes wrong with the dispatch process.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.