Package org.alfresco.repo.workflow
Class WorkflowNotificationUtils
- java.lang.Object
-
- org.alfresco.repo.workflow.WorkflowNotificationUtils
-
public class WorkflowNotificationUtils extends java.lang.ObjectUtility class containing methods to help when sending workflow notifications.- Since:
- 4.0
- Author:
- Roy Wetherall
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringARG_WF_DESCRIPTIONstatic java.lang.StringARG_WF_DOCUMENTSstatic java.lang.StringARG_WF_DUEDATEstatic java.lang.StringARG_WF_IDArgs value namesstatic java.lang.StringARG_WF_POOLEDstatic java.lang.StringARG_WF_PRIORITYstatic java.lang.StringARG_WF_TENANTstatic java.lang.StringARG_WF_TITLEstatic java.lang.StringMSG_ASSIGNED_TASKI18Nstatic java.lang.StringMSG_NEW_POOLED_TASKstatic java.lang.StringPROP_PACKAGEstatic java.lang.StringPROP_SEND_EMAIL_NOTIFICATIONSSend EMail notifications propertystatic java.lang.StringWF_ASSIGNED_TEMPLATEStandard workflow assigned template
-
Constructor Summary
Constructors Constructor Description WorkflowNotificationUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsendWorkflowAssignedNotificationEMail(java.lang.String taskId, java.lang.String taskType, java.lang.String[] assignedAuthorites, boolean pooled)Send workflow assigned email notification.voidsendWorkflowAssignedNotificationEMail(java.lang.String taskId, java.lang.String taskType, java.lang.String assignedAuthority, boolean pooled)Send workflow assigned email notification.voidsendWorkflowAssignedNotificationEMail(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)voidsetNodeService(org.alfresco.service.cmr.repository.NodeService service)voidsetNotificationService(NotificationService service)voidsetWorkflowService(WorkflowService service)
-
-
-
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
-
PROP_PACKAGE
public static final java.lang.String PROP_PACKAGE
- 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_TITLE
public static final java.lang.String ARG_WF_TITLE
- See Also:
- Constant Field Values
-
ARG_WF_DESCRIPTION
public static final java.lang.String ARG_WF_DESCRIPTION
- See Also:
- Constant Field Values
-
ARG_WF_DUEDATE
public static final java.lang.String ARG_WF_DUEDATE
- See Also:
- Constant Field Values
-
ARG_WF_PRIORITY
public static final java.lang.String ARG_WF_PRIORITY
- See Also:
- Constant Field Values
-
ARG_WF_POOLED
public static final java.lang.String ARG_WF_POOLED
- See Also:
- Constant Field Values
-
ARG_WF_DOCUMENTS
public static final java.lang.String ARG_WF_DOCUMENTS
- See Also:
- Constant Field Values
-
ARG_WF_TENANT
public static final java.lang.String ARG_WF_TENANT
- See Also:
- Constant Field Values
-
WF_ASSIGNED_TEMPLATE
public static java.lang.String WF_ASSIGNED_TEMPLATE
Standard workflow assigned template
-
-
Method Detail
-
setWorkflowService
public void setWorkflowService(WorkflowService service)
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService service)
-
setNotificationService
public void setNotificationService(NotificationService 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- StringtaskTitle- Stringdescription- StringdueDate- Datepriority- IntegerworkflowPackage- NodeRefassignedAuthorites- 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 idtaskType- task typeassignedAuthorites- assigned authoritiespooled- 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 idtaskType- task typeassignedAuthority- assigned authoritypooled- true if pooled task, false otherwise
-
-