Package com.jalios.jcms
Class WFAction
java.lang.Object
com.jalios.jcms.WFAction
- Direct Known Subclasses:
AlertAdminsWFAction,AlertAuthorWFAction,AlertManagerWFAction,AlertWorkersWFAction
This abstract class represents a workflow action attached to a WFState.
- Since:
- jcms-2.1
- Author:
- Olivier Dedieu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected longstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringKey used in context Map ofMailMessage.send(java.util.HashMap)method to store the publication for which the workflow alert mail is being sent. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WFActiongetInstance(String type, WFState state) longabstract StringgetType()abstract voidperform(Publication pub, boolean isReminder, String alertName) protected voidsendAlert(Publication pub, Collection<Member> recipientSet, boolean isReminder, String alertName) protected voidsendAlert(Publication pub, Collection<Member> recipientSet, boolean isReminder, String alertName, WFNote note) voidsetRepeatTime(long v) abstract String
-
Field Details
-
CUSTOM_WORKFLOW_PREFIX
- See Also:
-
CUSTOM_WORKFLOW_ANY
- See Also:
-
ALERT_DOMAIN
- See Also:
-
STATE_IN_ALERT
- See Also:
-
STATE_OUT_ALERT
- See Also:
-
FORM_SUBMISSION_ALERT
- See Also:
-
STATE_IN_FULLNAME_ALERT
- See Also:
-
STATE_OUT_FULLNAME_ALERT
- See Also:
-
FORM_SUBMISSION_FULLNAME_ALERT
- See Also:
-
EVENT_IN
- See Also:
-
EVENT_OUT
- See Also:
-
TYPE_ALERT_AUTHOR
- See Also:
-
TYPE_ALERT_WORKERS
- See Also:
-
TYPE_ALERT_ADMINS
- See Also:
-
TYPE_ALERT_MANAGER
- See Also:
-
WF_ALERT_PUBLICATION
Key used in context Map ofMailMessage.send(java.util.HashMap)method to store the publication for which the workflow alert mail is being sent.Example of use in a
MailPolicyFilterpublic boolean beforeSendMail(MailMessage msg, HashMap<String,Object> ctxt) { Publication pub = (Publication) ctxt.get(WFAction.WF_ALERT_PUBLICATION); // ... return true; }- Since:
- jcms-7.0.0
- See Also:
-
repeatTime
protected long repeatTime
-
-
Constructor Details
-
WFAction
public WFAction()
-
-
Method Details
-
getInstance
-
sendAlert
protected void sendAlert(Publication pub, Collection<Member> recipientSet, boolean isReminder, String alertName) -
sendAlert
protected void sendAlert(Publication pub, Collection<Member> recipientSet, boolean isReminder, String alertName, WFNote note) -
getType
-
perform
-
toString
-
getRepeatTime
public long getRepeatTime() -
setRepeatTime
public void setRepeatTime(long v)
-