mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
- 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:
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user