Class WorkflowNotificationUtils


  • public class WorkflowNotificationUtils
    extends java.lang.Object
    Utility class containing methods to help when sending workflow notifications.
    Since:
    4.0
    Author:
    Roy Wetherall
    • Field Detail

      • PROP_SEND_EMAIL_NOTIFICATIONS

        public static final java.lang.String PROP_SEND_EMAIL_NOTIFICATIONS
        Send EMail notifications property
        See Also:
        Constant Field Values
      • MSG_ASSIGNED_TASK

        public static final java.lang.String MSG_ASSIGNED_TASK
        I18N
        See Also:
        Constant Field Values
      • MSG_NEW_POOLED_TASK

        public static final java.lang.String MSG_NEW_POOLED_TASK
        See Also:
        Constant Field Values
      • ARG_WF_ID

        public static final java.lang.String ARG_WF_ID
        Args value names
        See Also:
        Constant Field Values
      • ARG_WF_DESCRIPTION

        public static final java.lang.String ARG_WF_DESCRIPTION
        See Also:
        Constant Field Values
      • ARG_WF_DOCUMENTS

        public static final java.lang.String ARG_WF_DOCUMENTS
        See Also:
        Constant Field Values
      • WF_ASSIGNED_TEMPLATE

        public static java.lang.String WF_ASSIGNED_TEMPLATE
        Standard workflow assigned template
    • Constructor Detail

      • WorkflowNotificationUtils

        public WorkflowNotificationUtils()
    • Method Detail

      • setWorkflowService

        public void setWorkflowService​(WorkflowService service)
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService service)
      • sendWorkflowAssignedNotificationEMail

        public void sendWorkflowAssignedNotificationEMail​(java.lang.String taskId,
                                                          java.lang.String taskTitle,
                                                          java.lang.String description,
                                                          java.util.Date dueDate,
                                                          java.lang.Integer priority,
                                                          org.alfresco.service.cmr.repository.NodeRef workflowPackage,
                                                          java.lang.String[] assignedAuthorites,
                                                          boolean pooled)
        Parameters:
        taskId - String
        taskTitle - String
        description - String
        dueDate - Date
        priority - Integer
        workflowPackage - NodeRef
        assignedAuthorites - String[]
        pooled - boolean
      • sendWorkflowAssignedNotificationEMail

        public void sendWorkflowAssignedNotificationEMail​(java.lang.String taskId,
                                                          java.lang.String taskType,
                                                          java.lang.String[] assignedAuthorites,
                                                          boolean pooled)
        Send workflow assigned email notification.
        Parameters:
        taskId - workflow global task id
        taskType - task type
        assignedAuthorites - assigned authorities
        pooled - true if pooled task, false otherwise
      • sendWorkflowAssignedNotificationEMail

        public void sendWorkflowAssignedNotificationEMail​(java.lang.String taskId,
                                                          java.lang.String taskType,
                                                          java.lang.String assignedAuthority,
                                                          boolean pooled)
        Send workflow assigned email notification.
        Parameters:
        taskId - workflow global task id
        taskType - task type
        assignedAuthority - assigned authority
        pooled - true if pooled task, false otherwise