Package com.saperion.operations.workflow
Class CountTasks
- java.lang.Object
-
- com.lexmark.saperion.remote.common.operations.AbstractOperation<T,SaBasicException,LegacyConnection>
-
- com.saperion.operations.LegacyOperation<java.lang.Long>
-
- com.saperion.operations.workflow.CountTasks
-
- All Implemented Interfaces:
com.lexmark.saperion.remote.common.operations.Operation<java.lang.Long,SaBasicException,LegacyConnection>
,java.io.Serializable
public class CountTasks extends LegacyOperation<java.lang.Long>
This operation counts the tasks that are contained in one or more workflow inboxes. UnlikeGetBoxCount
, it allows to define a custom filter-expression. On the backend, the same queries are used as inSaRMIServerCommand.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>'.- Author:
- cmerkel
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CountTasks(java.lang.String filter, java.util.Map<java.lang.String,java.lang.Object> filterParameters, int boxId)
Constructor.CountTasks(java.lang.String filter, java.util.Map<java.lang.String,java.lang.Object> filterParameters, int[] boxIds)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
invoke()
-
Methods inherited from class com.saperion.operations.LegacyOperation
beforeInvoke, beforeInvoke, getClientToken, mapEcmException, mapException
-
Methods inherited from class com.lexmark.saperion.remote.common.operations.AbstractOperation
afterInvoke, getResult, toArrayList, toCaseInsensitiveMap, toHashMap, toString
-
-
-
-
Constructor Detail
-
CountTasks
public CountTasks(java.lang.String filter, java.util.Map<java.lang.String,java.lang.Object> filterParameters, int[] boxIds)
Constructor.- Parameters:
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 for
-
CountTasks
public CountTasks(java.lang.String filter, java.util.Map<java.lang.String,java.lang.Object> filterParameters, int boxId)
Constructor.- Parameters:
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 for
-
-
Method Detail
-
invoke
public java.lang.Long invoke() throws SaBasicException
- Throws:
SaBasicException
-
-