Class WorkflowNotificationUtils


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

      • WorkflowNotificationUtils

        public WorkflowNotificationUtils()
    • Method Detail

      • setWorkflowService

        public void setWorkflowService​(WorkflowService service)
      • setNodeService

        public void setNodeService​(NodeService service)
      • sendWorkflowAssignedNotificationEMail

        public void sendWorkflowAssignedNotificationEMail​(String taskId,
                                                          String taskTitle,
                                                          String description,
                                                          Date dueDate,
                                                          Integer priority,
                                                          NodeRef workflowPackage,
                                                          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​(String taskId,
                                                          String taskType,
                                                          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​(String taskId,
                                                          String taskType,
                                                          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