ALF-10083 Workflow Task Title/Description can now be set using localization labels.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32240 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
N Smith
2011-11-23 14:23:27 +00:00
parent 0413cca72b
commit b6ea53cd82

View File

@@ -225,8 +225,8 @@ public class WorkflowObjectFactory
String processKey = getProcessKey(defName) + ".task." + name;
TypeDefinition metadata = taskDef.getMetadata();
String title = getLabel(processKey, TITLE_LABEL, defaultTitle, metadata.getTitle(), name);
String description = getLabel(processKey, DESC_LABEL, defaultDescription, metadata.getDescription(), title);
String title = getLabel(processKey, TITLE_LABEL, metadata.getTitle(), defaultTitle, name);
String description = getLabel(processKey, DESC_LABEL, metadata.getDescription(), title, defaultDescription);
return new WorkflowTask(actualId,
taskDef, name, title, description,
state, path, properties);