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:
@@ -62,8 +62,8 @@ bpm_businessprocessmodel.property.bpm_workflowDueDate.title=Workflow Due Date
|
|||||||
bpm_businessprocessmodel.property.bpm_workflowDueDate.description=Workflow Due Date
|
bpm_businessprocessmodel.property.bpm_workflowDueDate.description=Workflow Due Date
|
||||||
bpm_businessprocessmodel.property.bpm_workflowPriority.title=Workflow Priority
|
bpm_businessprocessmodel.property.bpm_workflowPriority.title=Workflow Priority
|
||||||
bpm_businessprocessmodel.property.bpm_workflowPriority.description=Workflow Priority
|
bpm_businessprocessmodel.property.bpm_workflowPriority.description=Workflow Priority
|
||||||
bpm_businessprocessmodel.property.bpm_sendEMailNotifications.title=Send EMail Notifications
|
bpm_businessprocessmodel.property.bpm_sendEMailNotifications.title=Send Email Notifications
|
||||||
bpm_businessprocessmodel.property.bpm_sendEMailNotifications.description=Send EMail Notifications
|
bpm_businessprocessmodel.property.bpm_sendEMailNotifications.description=Send Email Notifications
|
||||||
bpm_businessprocessmodel.association.bpm_assignee.title=Workflow Assignee
|
bpm_businessprocessmodel.association.bpm_assignee.title=Workflow Assignee
|
||||||
bpm_businessprocessmodel.association.bpm_assignee.description=Workflow Assignee
|
bpm_businessprocessmodel.association.bpm_assignee.description=Workflow Assignee
|
||||||
bpm_businessprocessmodel.association.bpm_assignees.title=Workflow Assignees
|
bpm_businessprocessmodel.association.bpm_assignees.title=Workflow Assignees
|
||||||
|
@@ -307,7 +307,7 @@
|
|||||||
|
|
||||||
<!-- Priority for the workflow as a whole -->
|
<!-- Priority for the workflow as a whole -->
|
||||||
<property name="bpm:workflowPriority">
|
<property name="bpm:workflowPriority">
|
||||||
<type>d:int</type>RW
|
<type>d:int</type>
|
||||||
<default>2</default>
|
<default>2</default>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint ref="bpm:allowedPriority" />
|
<constraint ref="bpm:allowedPriority" />
|
||||||
|
@@ -80,20 +80,17 @@ public class TaskCreateListener implements TaskListener
|
|||||||
workflowPackage = scriptNode.getNodeRef();
|
workflowPackage = scriptNode.getNodeRef();
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO how do we identify a pooled task?
|
|
||||||
boolean pooled = false;
|
|
||||||
|
|
||||||
// Send email notification
|
// Send email notification
|
||||||
WorkflowNotificationUtils.sendWorkflowAssignedNotificationEMail(
|
WorkflowNotificationUtils.sendWorkflowAssignedNotificationEMail(
|
||||||
services,
|
services,
|
||||||
"activiti$" + task.getId(),
|
ActivitiConstants.ENGINE_ID + "$" + task.getId(),
|
||||||
task.getName(),
|
task.getName(),
|
||||||
task.getDescription(),
|
task.getDescription(),
|
||||||
task.getDueDate(),
|
task.getDueDate(),
|
||||||
Integer.valueOf(task.getPriority()),
|
Integer.valueOf(task.getPriority()),
|
||||||
workflowPackage,
|
workflowPackage,
|
||||||
new String[]{task.getAssignee()},
|
new String[]{task.getAssignee()},
|
||||||
pooled);
|
(task.getAssignee() == null));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user