Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

59554: Merged V4.2-BUG-FIX (4.2.1) to HEAD-BUG-FIX (Cloud/4.3)
      59450: MNT-9967: Using db-count for process/task entities for retreiving counts, instead of using actual list size (activiti)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62165 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-02-12 02:05:13 +00:00
parent 519c2b3cc0
commit 875b90ea55
6 changed files with 540 additions and 431 deletions

View File

@@ -40,6 +40,7 @@ public class WorkflowInstanceQuery
private Date endBefore;
private Date endAfter;
private List<String> excludedDefinitions;
private String engine;
// Custom properties
// Value for Date property must be Map<DatePosition, Date>
@@ -145,5 +146,13 @@ public class WorkflowInstanceQuery
{
this.excludedDefinitions = excludedDefinitions;
}
public void setEngineId(String engine) {
this.engine = engine;
}
public String getEngineId() {
return engine;
}
}

View File

@@ -508,6 +508,14 @@ public interface WorkflowService
@Auditable(parameters = {"query"})
public List<WorkflowTask> queryTasks(WorkflowTaskQuery query, boolean sameSession);
/**
* Get the number of tasks matching the given query
*
* @param workflowTaskQuery the filter by which tasks are queried
* @return count of matching tasks
*/
public long countTasks(WorkflowTaskQuery workflowTaskQuery);
/**
* Update the Properties and Associations of a Task
*