Klasse SendMailWorkflowAction
java.lang.Object
de.uplanet.lucy.server.workflow.action.AbstractWorkflowAction
de.uplanet.lucy.server.workflow.action.SendMailWorkflowAction
- Alle implementierten Schnittstellen:
IActivatableWorkflowObject,ILogLevelAware,INamedWorkflowObject,INeedWorkflow,INeedWorkflowDirectory,IWorkflowAction,IWorkflowObject,Serializable
public final class SendMailWorkflowAction
extends AbstractWorkflowAction
implements INeedWorkflowDirectory, ILogLevelAware
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classstatic final classstatic final classstatic final classstatic final classstatic final classConfiguration of the email subject. -
Feldübersicht
Von Schnittstelle geerbte Felder de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGet the email headers.Get the language.Get the locale.Get the type of the email.This property determines if an exception should be thrown if the mail has no recipients.Get the BCC recipients.Get the CC recipients.Get the Reply-To recipients.Get the TO recipients.Get the workflow directory.booleanThis flag determines if verbose logging is turned on or off.process(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx, de.uplanet.lucy.server.IProcessingContext p_ctx) Process a workflow event in the given context.voidsetHeaders(Map<String, String> p_headers) Set the email headers.voidsetLanguage(String p_strLanguage) Set the language.voidSet the locale.voidsetLogVerbose(boolean p_bLogVerbose) This flag determines if verbose logging is turned on or off.voidsetMailType(MAIL_TYPE p_mailType) Set the type of the email.voidsetNoRecipientErrorMode(ON_ERROR_MODE p_onErrorMode) This property determines if an exception should be thrown if the mail has no recipients.voidsetProcessingContextSenderAddress(String p_strProcessingContextSenderAddress) voidsetRecipientsBcc(SendMailWorkflowAction.RecipientsBcc p_recipientsBcc) Set the BCC recipients.voidsetRecipientsCc(SendMailWorkflowAction.RecipientsCc p_recipientsCc) Set the CC recipients.voidsetRecipientsReplyTo(SendMailWorkflowAction.RecipientsReplyTo p_recipientsReplyTo) Set the Reply-To recipients.voidsetRecipientsTo(SendMailWorkflowAction.RecipientsTo p_recipientsTo) Set the TO recipients.voidsetSenderAddress(String p_strSenderAddress) voidsetSenderAddressDataFieldGuid(String p_strSenderAddressDataFieldGuid) voidsetSenderAddressType(SENDER_ADDRESS_TYPE p_senderType) voidsetSenderFallbackAddress(String p_strSenderFallbackAddress) voidsetSubject(SendMailWorkflowAction.Subject p_subject) voidsetUriBody(String p_strUri) voidsetWorkflowDirectory(Path p_dir) Set the workflow directory.Von Klasse geerbte Methoden de.uplanet.lucy.server.workflow.action.AbstractWorkflowAction
getAfferentTransition, getEfferentTransition, getGuid, getName, getWorkflow, isActive, setActive, setAfferentTransition, setEfferentTransition, setName, setWorkflow, toString
-
Konstruktordetails
-
SendMailWorkflowAction
Create a mail workflow action.- Parameter:
p_strGuid- The GUID of the action
-
-
Methodendetails
-
getWorkflowDirectory
Beschreibung aus Schnittstelle kopiert:INeedWorkflowDirectoryGet the workflow directory.- Angegeben von:
getWorkflowDirectoryin SchnittstelleINeedWorkflowDirectory- Gibt zurück:
- The workflow directory.
-
setWorkflowDirectory
Beschreibung aus Schnittstelle kopiert:INeedWorkflowDirectorySet the workflow directory.- Angegeben von:
setWorkflowDirectoryin SchnittstelleINeedWorkflowDirectory- Parameter:
p_dir- The workflow directory.
-
getRecipientsTo
Get the TO recipients.- Gibt zurück:
- The TO recipients.
-
setRecipientsTo
Set the TO recipients.- Parameter:
p_recipientsTo- The TO recipients.
-
getRecipientsCc
Get the CC recipients.- Gibt zurück:
- The CC recipients.
-
setRecipientsCc
Set the CC recipients.- Parameter:
p_recipientsCc- The CC recipients.
-
getRecipientsBcc
Get the BCC recipients.- Gibt zurück:
- The BCC recipients.
-
setRecipientsBcc
Set the BCC recipients.- Parameter:
p_recipientsBcc- The BCC recipients.
-
getRecipientsReplyTo
Get the Reply-To recipients.- Gibt zurück:
- The Reply-To recipients.
-
setRecipientsReplyTo
Set the Reply-To recipients.- Parameter:
p_recipientsReplyTo- The Reply-To recipients.
-
getNoRecipientErrorMode
This property determines if an exception should be thrown if the mail has no recipients.- Gibt zurück:
- The error handling mode.
-
setNoRecipientErrorMode
This property determines if an exception should be thrown if the mail has no recipients.- Parameter:
p_onErrorMode- The error mode to be used. May be eitherON_ERROR_MODE.THROW_EXCEPTION, orON_ERROR_MODE.NO_ACTION.
-
getHeaders
Get the email headers.- Gibt zurück:
- The email headers.
-
isLogVerbose
public boolean isLogVerbose()Beschreibung aus Schnittstelle kopiert:ILogLevelAwareThis flag determines if verbose logging is turned on or off.- Angegeben von:
isLogVerbosein SchnittstelleILogLevelAware- Gibt zurück:
trueif logging is verbose, orfalseotherwise.
-
setLogVerbose
public void setLogVerbose(boolean p_bLogVerbose) Beschreibung aus Schnittstelle kopiert:ILogLevelAwareThis flag determines if verbose logging is turned on or off.- Angegeben von:
setLogVerbosein SchnittstelleILogLevelAware- Parameter:
p_bLogVerbose-trueif logging should be verbose, orfalseotherwise.
-
setHeaders
Set the email headers.- Parameter:
p_headers- The email headers.
-
getMailType
Get the type of the email.- Gibt zurück:
- Type of the email.
-
setMailType
Set the type of the email.- Parameter:
p_mailType- The type of the email.
-
getLanguage
Get the language.This value can either be a language identifier, or a known context name.
If this value is not set, the
ContextLanguagewill be used.- Gibt zurück:
- The language, or
nullif the default language is being used. - Siehe auch:
-
setLanguage
Set the language.This value can either be a language identifier, or a known context name.
If this value is not set, the
ContextLanguagewill be used.- Siehe auch:
-
getLocale
Get the locale.This value can either be a locale identifier, or a known context name.
If this value is not set, the
ContextLocalewill be used.- Gibt zurück:
- The locale, or
nullif the default locale is being used. - Siehe auch:
-
setLocale
Set the locale.This value can either be a locale identifier, or a known context name.
If this value is not set, the
ContextLanguagewill be used.- Siehe auch:
-
getSubject
-
setSubject
-
getUriBody
-
setUriBody
-
getSenderAddressType
-
setSenderAddressType
-
getSenderAddress
-
setSenderAddress
-
getProcessingContextSenderAddress
-
setProcessingContextSenderAddress
-
getSenderAddressDataFieldGuid
-
setSenderAddressDataFieldGuid
-
getSenderFallbackAddress
-
setSenderFallbackAddress
-
process
public WorkflowTransition process(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx, de.uplanet.lucy.server.IProcessingContext p_ctx) throws Exception Beschreibung aus Schnittstelle kopiert:IWorkflowActionProcess a workflow event in the given context.Normally, a workflow action should return its efferent transition, regardless whether it is
active, or not.- Angegeben von:
processin SchnittstelleIWorkflowAction- Parameter:
p_evt- The event to be processed.p_wfCtx- The workflow processing context.p_ctx- The processing context.- Gibt zurück:
- The efferent transition, or
null. - Löst aus:
Exception- If an error occurred.
-