mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user