mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Workflow Email Notification updates:
- Added email-notification control for use in "Start Workflow" forms, it's essentially a copy of the checkbox control but defaults to checked i.e. it ignore the field.value - Updated form config to use new custom email-notification control - Updated form config so 'Send Email Notifications' setting is shown on workflow summary page and start task forms - Set the 'pooled' flag for Activiti tasks when sending notification git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29769 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -80,20 +80,17 @@ public class TaskCreateListener implements TaskListener
|
||||
workflowPackage = scriptNode.getNodeRef();
|
||||
}
|
||||
|
||||
// TODO how do we identify a pooled task?
|
||||
boolean pooled = false;
|
||||
|
||||
// Send email notification
|
||||
WorkflowNotificationUtils.sendWorkflowAssignedNotificationEMail(
|
||||
services,
|
||||
"activiti$" + task.getId(),
|
||||
ActivitiConstants.ENGINE_ID + "$" + task.getId(),
|
||||
task.getName(),
|
||||
task.getDescription(),
|
||||
task.getDueDate(),
|
||||
Integer.valueOf(task.getPriority()),
|
||||
workflowPackage,
|
||||
new String[]{task.getAssignee()},
|
||||
pooled);
|
||||
(task.getAssignee() == null));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user