public class TaskMonitorServiceImpl extends Object implements TaskMonitorService
| Constructor and Description |
|---|
TaskMonitorServiceImpl(TaskanaEngine taskanaEngine,
TaskMonitorMapper taskMonitorMapper) |
| Modifier and Type | Method and Description |
|---|---|
List<DueWorkbasketCounter> |
getTaskCountByWorkbasketAndDaysInPastAndState(long daysInPast,
List<TaskState> states)
Count all Tasks for all work basket objects where the due date is after "daysInPast" days from today in the past
and the tasks are in specified states.
|
List<TaskStateCounter> |
getTaskCountForState(List<TaskState> states)
This method counts all tasks with a given state.
|
long |
getTaskCountForWorkbasketByDaysInPastAndState(String workbasketId,
long daysInPast,
List<TaskState> states)
Count all Tasks in a given work basket where the due date is after "daysInPast" days from today in the past and
the tasks are in specified states.
|
public TaskMonitorServiceImpl(TaskanaEngine taskanaEngine, TaskMonitorMapper taskMonitorMapper)
public List<TaskStateCounter> getTaskCountForState(List<TaskState> states)
TaskMonitorServicegetTaskCountForState in interface TaskMonitorServicestates - the countable statesTaskStateCounter objects that specifies how many tasks in the specified states exist in
the available work basketspublic long getTaskCountForWorkbasketByDaysInPastAndState(String workbasketId, long daysInPast, List<TaskState> states)
TaskMonitorServicegetTaskCountForWorkbasketByDaysInPastAndState in interface TaskMonitorServiceworkbasketId - the id of the work basketdaysInPast - identifies the days in the past from todaystates - List of TaskState that identifies the states of the tasks to be searched forpublic List<DueWorkbasketCounter> getTaskCountByWorkbasketAndDaysInPastAndState(long daysInPast, List<TaskState> states)
TaskMonitorServicegetTaskCountByWorkbasketAndDaysInPastAndState in interface TaskMonitorServicedaysInPast - identifies the days in the past from todaystates - List of TaskState objects that identifies the states of the tasks searchedDueWorkbasketCounter objects that specifies how many tasks in the requested states
with appropriate due date exist in the various work basketsCopyright © 2017. All rights reserved.