TaskActivityService¶
-
public interface
TaskActivityService
¶ Service for managing task activities. Task activities are used for storing information about current and past task executions.
Methods¶
addFailedExecution¶
addFilteredExecution¶
addSuccessfulExecution¶
addTaskDisabledWarning¶
addTaskFiltered¶
addTaskStarted¶
addWarning¶
addWarningWithException¶
deleteActivitiesForTask¶
getAllActivities¶
-
List<TaskActivity>
getAllActivities
(Set<TaskActivityType> activityTypeSet, QueryParams queryParams, boolean lastExecution)¶ Returns all the activities as a list.
Parameters: - activityTypeSet – the type of activities
- queryParams – query parameters to use while retrieving
- lastExecution –
Returns: the list of all activities
getAllActivities¶
-
List<TaskActivity>
getAllActivities
(Set<TaskActivityType> activityTypes, Range<DateTime> dateRange, QueryParams queryParams, boolean lastExecution)¶ Returns all the activities as a list.
Parameters: - activityTypes – the type of activities
- dateRange – the date range
- queryParams – query parameters to use while retrieving
- lastExecution –
Returns: the list of all activities
getAllTaskActivitiesCount¶
-
long
getAllTaskActivitiesCount
(Set<TaskActivityType> activityTypes, boolean lastExecution)¶ Returns the count of all activities.
Parameters: - activityTypes – the type of activities to include in count
- lastExecution –
Returns: the count of matching activities
getAllTaskActivitiesCount¶
-
long
getAllTaskActivitiesCount
(Set<TaskActivityType> activityTypes, Range<DateTime> dateRange, boolean lastExecution)¶ Returns the count of all activities.
Parameters: - activityTypes – the type of activities to include in count
- dateRange – the date range
- lastExecution –
Returns: the count of matching activities
getLatestActivities¶
-
List<TaskActivity>
getLatestActivities
()¶ Returns 10 most recent activities as a list, ordered by date.
Returns: the list of all activities
getTaskActivities¶
-
List<TaskActivity>
getTaskActivities
(Long taskId, Set<TaskActivityType> activityTypeSet, QueryParams queryParams, boolean lastExecution)¶ Returns list of all activities for task with the given ID.
Parameters: - taskId – the task ID, null returns null
- activityTypeSet – the type of activities
- queryParams – query parameters to use while retrieving
- lastExecution –
Returns: the list of all activities for task with given ID
getTaskActivities¶
-
List<TaskActivity>
getTaskActivities
(Long taskId, Set<TaskActivityType> activityTypeSet, Range<DateTime> dateRange, QueryParams queryParams, boolean lastExecution)¶ Returns list of all activities for task with the given ID, of specific activity type and the given date range.
Parameters: - taskId – the task ID, null returns null
- activityTypeSet – the type of activities
- dateRange – the range of datetime
- queryParams – query parameters to use while retrieving
- lastExecution –
Returns: the list of all activities for task with given ID
getTaskActivitiesCount¶
-
long
getTaskActivitiesCount
(Long taskId, Set<TaskActivityType> activityTypes, boolean lastExecution)¶ Returns the count of all activities for the given task, of the specified type.
Parameters: - taskId – the task ID
- activityTypes – the type of activities to include in count
- lastExecution –
Returns: the count of matching activities
getTaskActivitiesCount¶
-
long
getTaskActivitiesCount
(Long taskId, TaskActivityType type)¶ Returns the count of all activities for the given task, of the specified type.
Parameters: - taskId – the task ID
- type – the type of activity to include in count
Returns: the count of matching activities
getTaskActivitiesCount¶
-
long
getTaskActivitiesCount
(Long taskId, Set<TaskActivityType> activityTypes, Range<DateTime> dateRange, boolean lastExecution)¶ Returns the count of all activities for the given task, of the specified type and the given date range.
Parameters: - taskId – the task ID
- activityTypes – the type of activities to include in count
- dateRange – the range of datetime
- lastExecution –
Returns: the count of matching activities
getTaskActivityById¶
-
TaskActivity
getTaskActivityById
(Long activityId)¶ Returns single TaskActivity with given activity ID.
Parameters: - activityId – the ID of activity instance to be retrieved
Returns: TaskActivity with the given ID