public class CountTasks extends LegacyOperation<Long>
GetBoxCount
, it allows to define a custom filter-expression.
On the backend, the same queries are used as in
SaRMIServerCommand.getTaskList(int, int[], String, Map)
.
The operation is meant to be used to get a count before invoking getTaskList. The filter
expression will be added to the where-clause of the HQL query using
'and <filter-expression>'.Constructor and Description |
---|
CountTasks(String filter,
Map<String,Object> filterParameters,
int boxId)
Constructor.
|
CountTasks(String filter,
Map<String,Object> filterParameters,
int[] boxIds)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Long |
invoke() |
beforeInvoke, beforeInvoke, getClientToken, mapEcmException, mapException
afterInvoke, getResult, toArrayList, toCaseInsensitiveMap, toHashMap, toString
public CountTasks(String filter, Map<String,Object> filterParameters, int[] boxIds)
filter
- optional filter-expression in HQL that will be added to the WHERE-clause.
Can be null or empty if not required.filterParameters
- parameters for the filter-expression. Can be null or empty if
not requiredboxIds
- IDs of the inboxes to count the tasks forpublic CountTasks(String filter, Map<String,Object> filterParameters, int boxId)
filter
- optional filter-expression in HQL that will be added to the WHERE-clause.
Can be null or empty if not required.filterParameters
- parameters for the filter-expression. Can be null or empty if
not requiredboxId
- ID of the inboxes to count the tasks forpublic Long invoke() throws SaBasicException
SaBasicException
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.