ALF-3967: F54 A section of the document details page shows details of the workflows that the document is involved in

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22144 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2010-09-01 17:39:07 +00:00
parent c35a7bfb7d
commit c3df9d4598
2 changed files with 4 additions and 3 deletions

View File

@@ -279,9 +279,10 @@ public class WorkflowModelBuilder
// do an extra query which makes things slow
model.put(TASK_WORKFLOW_INSTANCE_PRIORITY, 2);
model.put(TASK_WORKFLOW_INSTANCE_DUE_DATE, null);
if (workflowInstance.getDescription() != null)
String message = workflowInstance.getDescription();
if (message != null && message.length() > 0)
{
model.put(TASK_WORKFLOW_INSTANCE_MESSAGE, workflowInstance.description);
model.put(TASK_WORKFLOW_INSTANCE_MESSAGE, message);
}
else
{