- first pass at summary screen for create form.

- making workflowdefinition immutable and adding getters so i can access bean properties from jsps.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4391 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2006-11-17 20:51:01 +00:00
parent 45fface102
commit d1768464ba
2 changed files with 77 additions and 36 deletions

View File

@@ -1785,18 +1785,18 @@ public class JBPMEngine extends BPMEngine
*/
protected WorkflowDefinition createWorkflowDefinition(ProcessDefinition definition)
{
WorkflowDefinition workflowDef = new WorkflowDefinition();
workflowDef.id = createGlobalId(new Long(definition.getId()).toString());
workflowDef.name = definition.getName();
workflowDef.title = getLabel(workflowDef.name + ".workflow", TITLE_LABEL, workflowDef.name);
workflowDef.description = getLabel(workflowDef.name + ".workflow", DESC_LABEL, workflowDef.title);
workflowDef.version = new Integer(definition.getVersion()).toString();
Task startTask = definition.getTaskMgmtDefinition().getStartTask();
if (startTask != null)
{
workflowDef.startTaskDefinition = createWorkflowTaskDefinition(startTask);
}
return workflowDef;
final Task startTask = definition.getTaskMgmtDefinition().getStartTask();
final String name = definition.getName();
final String title = getLabel(name + ".workflow", TITLE_LABEL, name);
final String description = getLabel(name + ".workflow", DESC_LABEL, title);
return new WorkflowDefinition(createGlobalId(new Long(definition.getId()).toString()),
name,
new Integer(definition.getVersion()).toString(),
title,
description,
(startTask != null
? createWorkflowTaskDefinition(startTask)
: null));
}
/**