Implemented truncation of status update messages if they exceed the max status length for that channel.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29681 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
N Smith
2011-08-11 09:57:56 +00:00
parent ce5a0480e3
commit 0b171e0f40
6 changed files with 154 additions and 17 deletions

View File

@@ -466,8 +466,7 @@ public class PublishingEventHelper
//End the start task.
//TODO Replace with endStartTask() call after merge to HEAD.
List<WorkflowTask> tasks = workflowService.getTasksForWorkflowPath(path.getId());
WorkflowTask startTask = tasks.get(0);
WorkflowTask startTask = workflowService.getStartTask(instanceId);
workflowService.endTask(startTask.getId(), null);
return instanceId;
}