mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed ALF-4751 (When starting a workflow with no form configuration duplicated fields are seen), ALF-4859 (Lifecycle review and approve form is incorrect) & ALF-4649 (Node based forms render a form containing system properties when no configuration is present)
The set of default fields for each type of form processor has been updated, default node and type forms now don't return the 'sys' properties previously seen, a default task form no longer returns the identifier field and a default workflow form no longer returns the task level description, priority and due date fields. Also completed a coding standards and comments sweep across all forms code. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22734 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -65,7 +65,7 @@ public class WorkflowBuilder
|
||||
|
||||
public void addAssociationParameter(QName name, List<NodeRef> values)
|
||||
{
|
||||
if(values instanceof Serializable)
|
||||
if (values instanceof Serializable)
|
||||
{
|
||||
params.put(name, (Serializable) values);
|
||||
}
|
||||
@@ -96,13 +96,15 @@ public class WorkflowBuilder
|
||||
private void signalStartTask(WorkflowPath path)
|
||||
{
|
||||
List<WorkflowTask> tasks = workflowService.getTasksForWorkflowPath(path.getId());
|
||||
if(tasks.size() == 1)
|
||||
if (tasks.size() == 1)
|
||||
{
|
||||
WorkflowTask startTask = tasks.get(0);
|
||||
workflowService.endTask(startTask.id, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new WorkflowException("Start task not found! Expected 1 task but found: " + tasks.size());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user