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:
Gavin Cornwell
2011-08-15 15:57:22 +00:00
parent 67b428a8a1
commit 2e1ace4604
3 changed files with 5 additions and 8 deletions

View File

@@ -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));
}
}