public class SendProcessMailFunction extends AbstractLogEnabled implements Component, com.opensymphony.workflow.FunctionProvider, Serviceable, Contextualizable
| Modifier and Type | Field and Description |
|---|---|
private static String |
__CONFIG_FROM_MAIL |
private BPMWorkflowManager |
_bpmWorkflowManager |
private Context |
_context |
private CurrentUserProvider |
_currentUserProvider |
private I18nUtils |
_i18nUtils |
private JSONUtils |
_jsonUtils |
private UserManager |
_userManager |
protected static String |
BODY_KEY
The mail body key.
|
static String |
SEND_MAIL
Actually send the email ?
|
protected static String |
SUBJECT_KEY
The mail subject key.
|
| Constructor and Description |
|---|
SendProcessMailFunction() |
| Modifier and Type | Method and Description |
|---|---|
private String |
_getBody(String bodyI18nKey,
JCRWorkflowProcess process,
User creatorUser) |
private List<User> |
_getRecipients(String users,
String sendToCreator,
User creatorUser) |
private String |
_getSubject(String subjectI18nKey,
JCRWorkflowProcess process) |
void |
contextualize(Context context) |
void |
execute(Map transientVars,
Map args,
com.opensymphony.module.propertyset.PropertySet ps) |
void |
service(ServiceManager manager) |
getLogger, setLoggerpublic static final String SEND_MAIL
protected static final String SUBJECT_KEY
protected static final String BODY_KEY
private static final String __CONFIG_FROM_MAIL
private JSONUtils _jsonUtils
private UserManager _userManager
private I18nUtils _i18nUtils
private BPMWorkflowManager _bpmWorkflowManager
private CurrentUserProvider _currentUserProvider
public SendProcessMailFunction()
public void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
execute in interface com.opensymphony.workflow.FunctionProvidercom.opensymphony.workflow.WorkflowExceptionprivate String _getSubject(String subjectI18nKey, JCRWorkflowProcess process)
private String _getBody(String bodyI18nKey, JCRWorkflowProcess process, User creatorUser)