Performance improvement for GET workflow-instances REST API.

Added "priority" and "dueDate" to WorkflowInstance object, which means a query for the workflow start task is no longer required to retrieve this information. A query was previously being done for every row in the results.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22210 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2010-09-02 21:17:57 +00:00
parent 0d052c414e
commit b184b46d7d
2 changed files with 24 additions and 0 deletions

View File

@@ -47,9 +47,15 @@ public class WorkflowInstance implements Serializable
/** Initiator (cm:person) - null if System initiated */
public NodeRef initiator;
/** Workflow priority */
public Integer priority;
/** Workflow Start Date */
public Date startDate;
/** Workflow Due Date */
public Date dueDate;
/** Workflow End Date */
public Date endDate;
@@ -102,6 +108,14 @@ public class WorkflowInstance implements Serializable
return initiator;
}
/**
* @return the priority, null if there is no priority set
*/
public Integer getPriority()
{
return this.priority;
}
/**
* @return the startDate
*/
@@ -109,6 +123,14 @@ public class WorkflowInstance implements Serializable
{
return startDate;
}
/**
* @return the dueDate
*/
public Date getDueDate()
{
return dueDate;
}
/**
* @return the endDate