public class SendEmailProcess extends Object implements WorkflowProcess, EmailConfig
WorkflowProcess
interface to be used for sending emails.HOST_PREFIX_PROPERTY
Constructor and Description |
---|
SendEmailProcess() |
Modifier and Type | Method and Description |
---|---|
String[] |
buildArguments(MetaDataMap metaData)
Build arguments for SendEmailProcess to process.
|
void |
execute(WorkItem item,
WorkflowSession wfSession,
MetaDataMap metaData)
Executes a new Java process with the given
and . |
String |
getConfig(String configType,
String name)
Return the config value or null if it is unspecified.
|
String |
loadTemplate(Session session,
String path,
String charSet)
Loads the mail templates from the repository.
|
void |
setConfig(String configType,
String name,
String configPath,
String defaultValue)
Set the config value.
|
public void execute(WorkItem item, WorkflowSession wfSession, MetaDataMap metaData) throws WorkflowException
WorkItem
and WorkflowSession
.
Process arguments:
args[0]: mail template.execute
in interface WorkflowProcess
item
- The WorkItem
that defines the newly
started JavaProcessNew
.wfSession
- The WorkflowSession
that is used for starting the JavaProcess
.metaData
- Process specific arguments can be passed hereWorkflowException
- Thrown in case something goes wrong during execution.public String[] buildArguments(MetaDataMap metaData)
metaData
- The metadatapublic String loadTemplate(Session session, String path, String charSet)
path
- mail templates root pathsession
- sessioncharSet
- The character setnull
if not valid.public String getConfig(String configType, String name)
EmailConfig
getConfig
in interface EmailConfig
configType
- the config type.name
- the config name.public void setConfig(String configType, String name, String configPath, String defaultValue)
EmailConfig
setConfig
in interface EmailConfig
configType
- the config type.name
- the config name.defaultValue
- the default value if the configPath does not exist."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"