Class SendMailFunction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.plugins.forms.workflow.SendMailFunction
- All Implemented Interfaces:
com.opensymphony.workflow.FunctionProvider
,EnhancedFunction
,Component
,LogEnabled
OS workflow function to send mail after an action is triggered.
The author of a form entry is also notified if the receipt is set
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.plugins.workflow.EnhancedFunction
EnhancedFunction.FunctionArgument
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Get the list of accepted arguments for this functiongetDescription
(Map<String, String> argumentsValues) Get the function descriptions depending on arguments valuesMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
SEND_MAIL
Actually send the email ?- See Also:
-
SENDER
Sender of the email- See Also:
-
RECIPIENT
Recipient of the email- See Also:
-
SUBJECT
Subject of the email- See Also:
-
BODY
Body of the email- See Also:
-
-
Constructor Details
-
SendMailFunction
public SendMailFunction()
-
-
Method Details
-
execute
public void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException - Specified by:
execute
in interfacecom.opensymphony.workflow.FunctionProvider
- Throws:
com.opensymphony.workflow.WorkflowException
-
getArguments
Description copied from interface:EnhancedFunction
Get the list of accepted arguments for this function- Specified by:
getArguments
in interfaceEnhancedFunction
- Returns:
- a List of argument names and associated description
-
getDescription
Description copied from interface:EnhancedFunction
Get the function descriptions depending on arguments values- Specified by:
getDescription
in interfaceEnhancedFunction
- Parameters:
argumentsValues
- a map of the arguments with their values in current workflow- Returns:
- a description to display in workflow editor vue
-