Class SendProcessMailFunction
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.bpm.workflowsdef.SendProcessMailFunction
- All Implemented Interfaces:
com.opensymphony.workflow.FunctionProvider
,LogEnabled
,Component
,Contextualizable
,Serviceable
public class SendProcessMailFunction
extends AbstractLogEnabled
implements Component, com.opensymphony.workflow.FunctionProvider, Serviceable, Contextualizable
Send mail to the users listed in the "users" argument. If the "sendToCreator" argument is present, the mail will also be send to the process creator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) void
void
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
SEND_MAIL
Actually send the email ?- See Also:
-
SUBJECT_KEY
The mail subject key.- See Also:
-
BODY_KEY
The mail body key.- See Also:
-
-
Constructor Details
-
SendProcessMailFunction
public SendProcessMailFunction()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
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
-