public class TaskMonitorServiceImpl extends Object implements TaskMonitorService
| Constructor and Description |
|---|
TaskMonitorServiceImpl(TaskanaEngine taskanaEngine,
TaskMonitorMapper taskMonitorMapper) |
| Modifier and Type | Method and Description |
|---|---|
Report |
getCategoryReport(List<Workbasket> workbaskets,
List<TaskState> states)
Returns a
Report with categories for a given list of Workbaskets and for a given list of
TaskStates. |
Report |
getCategoryReport(List<Workbasket> workbaskets,
List<TaskState> states,
List<ReportLineItemDefinition> reportLineItemDefinitions)
Returns a
Report with categories for a given list of Workbaskets, a given list of
TaskStates and a given list of ReportLineItemDefinitions. |
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.
|
Report |
getWorkbasketLevelReport(List<Workbasket> workbaskets,
List<TaskState> states)
|
Report |
getWorkbasketLevelReport(List<Workbasket> workbaskets,
List<TaskState> states,
List<ReportLineItemDefinition> reportLineItemDefinitions)
Returns a
Report for a given list of Workbaskets, a given list of TaskStates and a given
list of ReportLineItemDefinitions. |
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 basketspublic Report getWorkbasketLevelReport(List<Workbasket> workbaskets, List<TaskState> states)
TaskMonitorServiceReport for a given list of Workbaskets and for a given list of TaskStates. The
report only contains the number of all tasks of the respective workbasket as well as the total sum of all tasks.
Only tasks with a state in the list of TaskStates are provided. Task with Timestamp DUE = null are not
considered.getWorkbasketLevelReport in interface TaskMonitorServiceworkbaskets - a list of Workbasket objects that should be listed in the reportstates - a list of TaskState objects that specify the states of the tasks that are providedReport object that only contains the number of all tasks of the respective workbasket as well
as the total number of all taskspublic Report getWorkbasketLevelReport(List<Workbasket> workbaskets, List<TaskState> states, List<ReportLineItemDefinition> reportLineItemDefinitions)
TaskMonitorServiceReport for a given list of Workbaskets, a given list of TaskStates and a given
list of ReportLineItemDefinitions. For each workbasket the report contains a list of ReportLineItems that
subdivides the report in to different cluster grouped by the due date. Only tasks with a state in the list of
TaskStates are provided. Tasks with Timestamp DUE = null are not considered.getWorkbasketLevelReport in interface TaskMonitorServiceworkbaskets - a list of Workbasket objects that should be listed in the reportstates - a list of TaskState objects that specify the states of the tasks that are providedreportLineItemDefinitions - a list of ReportLineItemDefinition objects that specify the subdivision into different cluster
of due dates. Days in past are represented as negative values and days in the future are represented
as positive values. To avoid tasks are counted multiple times or not be listed in the report, these
reportLineItemDefinitions should not overlap and should not have gaps. If the ReportLineDefinition
should represent a single day, lowerLimit and upperLimit have to be equal.Report object that represents an overview of all tasks in thepublic Report getCategoryReport(List<Workbasket> workbaskets, List<TaskState> states)
TaskMonitorServiceReport with categories for a given list of Workbaskets and for a given list of
TaskStates. The report only contains the number of all tasks of the respective category as well as the
total sum of all tasks. Only tasks with a state in the list of TaskStates are provided. Task with Timestamp DUE =
null are not considered.getCategoryReport in interface TaskMonitorServiceworkbaskets - a list of Workbasket objects that whose task should be counted in the reportstates - a list of TaskState objects that specify the states of the tasks that are providedReport object that only contains the number of all tasks of the respective category as well as
the total number of all taskspublic Report getCategoryReport(List<Workbasket> workbaskets, List<TaskState> states, List<ReportLineItemDefinition> reportLineItemDefinitions)
TaskMonitorServiceReport with categories for a given list of Workbaskets, a given list of
TaskStates and a given list of ReportLineItemDefinitions. For each category the report contains a
list of ReportLineItems that subdivides the report in to different cluster grouped by the due date. Only tasks
with a state in the list of TaskStates are provided. Tasks with Timestamp DUE = null are not considered.getCategoryReport in interface TaskMonitorServiceworkbaskets - a list of Workbasket objects that should be listed in the reportstates - a list of TaskState objects that specify the states of the tasks that are providedreportLineItemDefinitions - a list of ReportLineItemDefinition objects that specify the subdivision into different cluster
of due dates. Days in past are represented as negative values and days in the future are represented
as positive values. To avoid tasks are counted multiple times or not be listed in the report, these
reportLineItemDefinitions should not overlap and should not have gaps. If the ReportLineDefinition
should represent a single day, lowerLimit and upperLimit have to be equal.Report object that represents an overview of all tasks of the respective categoryCopyright © 2018. All rights reserved.