Class WorkflowNotificationUtils

java.lang.Object
org.alfresco.repo.workflow.WorkflowNotificationUtils

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

  • Constructor Details

    • WorkflowNotificationUtils

      public WorkflowNotificationUtils()
  • Method Details

    • setWorkflowService

      public void setWorkflowService(WorkflowService service)
    • setNodeService

      public void setNodeService(NodeService service)
    • setNotificationService

      public void setNotificationService(NotificationService 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