public class VelocityCompletionNotifier extends Object implements CompletionNotifier
Constructor and Description |
---|
VelocityCompletionNotifier() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
makeCompletionMessage(String name,
RemoteRunDelegate run,
int code)
Called to get the content of a message that a workflow run has finished.
|
String |
makeMessageSubject(String name,
RemoteRunDelegate run,
int code)
Called to get the subject of the message to dispatch.
|
void |
setName(String name) |
void |
setSubject(String subject) |
void |
setUriBuilderFactory(UriBuilderFactory uriBuilderFactory) |
void |
setVelocityEngine(org.apache.velocity.app.VelocityEngine engine) |
public String getName()
getName
in interface CompletionNotifier
public void setSubject(String subject)
subject
- The subject of the notification email.public void setVelocityEngine(org.apache.velocity.app.VelocityEngine engine)
engine
- The configured Apache Velocity engine.public void setUriBuilderFactory(UriBuilderFactory uriBuilderFactory)
uriBuilderFactory
- The configured URI builder factory.public void setName(String name)
name
- The name of the template.public String makeCompletionMessage(String name, RemoteRunDelegate run, int code)
CompletionNotifier
makeCompletionMessage
in interface CompletionNotifier
name
- The name of the run.run
- What run are we talking about.code
- What the exit code was.public String makeMessageSubject(String name, RemoteRunDelegate run, int code)
CompletionNotifier
makeMessageSubject
in interface CompletionNotifier
name
- The name of the run.run
- What run are we talking about.code
- What the exit code was.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.