Package com.jalios.jcms
Class WFAction
- java.lang.Object
-
- com.jalios.jcms.WFAction
-
- Direct Known Subclasses:
AlertAdminsWFAction
,AlertAuthorWFAction
,AlertManagerWFAction
,AlertWorkersWFAction
public abstract class WFAction extends java.lang.Object
This abstract class represents a workflow action attached to a WFState.- Since:
- jcms-2.1
- Author:
- Olivier Dedieu
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ALERT_DOMAIN
static java.lang.String
CUSTOM_WORKFLOW_ANY
static java.lang.String
CUSTOM_WORKFLOW_PREFIX
static java.lang.String
EVENT_IN
static java.lang.String
EVENT_OUT
static java.lang.String
FORM_SUBMISSION_ALERT
static java.lang.String
FORM_SUBMISSION_FULLNAME_ALERT
protected long
repeatTime
static java.lang.String
STATE_IN_ALERT
static java.lang.String
STATE_IN_FULLNAME_ALERT
static java.lang.String
STATE_OUT_ALERT
static java.lang.String
STATE_OUT_FULLNAME_ALERT
static java.lang.String
TYPE_ALERT_ADMINS
static java.lang.String
TYPE_ALERT_AUTHOR
static java.lang.String
TYPE_ALERT_MANAGER
static java.lang.String
TYPE_ALERT_WORKERS
static java.lang.String
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.
-
Constructor Summary
Constructors Constructor Description WFAction()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static WFAction
getInstance(java.lang.String type, WFState state)
long
getRepeatTime()
abstract java.lang.String
getType()
abstract void
perform(Publication pub, boolean isReminder, java.lang.String alertName)
protected void
sendAlert(Publication pub, java.util.Collection<Member> recipientSet, boolean isReminder, java.lang.String alertName)
protected void
sendAlert(Publication pub, java.util.Collection<Member> recipientSet, boolean isReminder, java.lang.String alertName, WFNote note)
void
setRepeatTime(long v)
abstract java.lang.String
toString(java.lang.String userLang)
-
-
-
Field Detail
-
CUSTOM_WORKFLOW_PREFIX
public static final java.lang.String CUSTOM_WORKFLOW_PREFIX
- See Also:
- Constant Field Values
-
CUSTOM_WORKFLOW_ANY
public static final java.lang.String CUSTOM_WORKFLOW_ANY
- See Also:
- Constant Field Values
-
ALERT_DOMAIN
public static final java.lang.String ALERT_DOMAIN
- See Also:
- Constant Field Values
-
STATE_IN_ALERT
public static final java.lang.String STATE_IN_ALERT
- See Also:
- Constant Field Values
-
STATE_OUT_ALERT
public static final java.lang.String STATE_OUT_ALERT
- See Also:
- Constant Field Values
-
FORM_SUBMISSION_ALERT
public static final java.lang.String FORM_SUBMISSION_ALERT
- See Also:
- Constant Field Values
-
STATE_IN_FULLNAME_ALERT
public static final java.lang.String STATE_IN_FULLNAME_ALERT
- See Also:
- Constant Field Values
-
STATE_OUT_FULLNAME_ALERT
public static final java.lang.String STATE_OUT_FULLNAME_ALERT
- See Also:
- Constant Field Values
-
FORM_SUBMISSION_FULLNAME_ALERT
public static final java.lang.String FORM_SUBMISSION_FULLNAME_ALERT
- See Also:
- Constant Field Values
-
EVENT_IN
public static final java.lang.String EVENT_IN
- See Also:
- Constant Field Values
-
EVENT_OUT
public static final java.lang.String EVENT_OUT
- See Also:
- Constant Field Values
-
TYPE_ALERT_AUTHOR
public static final java.lang.String TYPE_ALERT_AUTHOR
- See Also:
- Constant Field Values
-
TYPE_ALERT_WORKERS
public static final java.lang.String TYPE_ALERT_WORKERS
- See Also:
- Constant Field Values
-
TYPE_ALERT_ADMINS
public static final java.lang.String TYPE_ALERT_ADMINS
- See Also:
- Constant Field Values
-
TYPE_ALERT_MANAGER
public static final java.lang.String TYPE_ALERT_MANAGER
- See Also:
- Constant Field Values
-
WF_ALERT_PUBLICATION
public static final java.lang.String 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
MailPolicyFilter
public 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:
- Constant Field Values
-
repeatTime
protected long repeatTime
-
-
Method Detail
-
sendAlert
protected void sendAlert(Publication pub, java.util.Collection<Member> recipientSet, boolean isReminder, java.lang.String alertName)
-
sendAlert
protected void sendAlert(Publication pub, java.util.Collection<Member> recipientSet, boolean isReminder, java.lang.String alertName, WFNote note)
-
getType
public abstract java.lang.String getType()
-
perform
public abstract void perform(Publication pub, boolean isReminder, java.lang.String alertName)
-
toString
public abstract java.lang.String toString(java.lang.String userLang)
-
getRepeatTime
public long getRepeatTime()
-
setRepeatTime
public void setRepeatTime(long v)
-
-