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