- Added client pieces for handling ad hoc workflow tasks

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3614 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2006-08-25 15:43:53 +00:00
parent dbc6fa1abf
commit ff4fa50c65
2 changed files with 45 additions and 4 deletions

View File

@@ -293,7 +293,12 @@ public class StartWorkflowWizard extends BaseWizardBean
List<WorkflowDefinition> workflowDefs = this.workflowService.getDefinitions();
for (WorkflowDefinition workflowDef : workflowDefs)
{
this.availableWorkflows.add(new SelectItem(workflowDef.id, workflowDef.title));
String label = workflowDef.title;
if (workflowDef.description != null && workflowDef.description.length() > 0)
{
label = label + " (" + workflowDef.description + ")";
}
this.availableWorkflows.add(new SelectItem(workflowDef.id, label));
this.workflows.put(workflowDef.id, workflowDef);
}