Class WFAction

    • 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
      • 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
      • 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 of MailMessage.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
    • Constructor Detail

      • WFAction

        public WFAction()
    • Method Detail

      • getInstance

        public static WFAction getInstance​(java.lang.String type,
                                           WFState state)
      • 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)