Class ActivityBasedTaskInformation
java.lang.Object
com.evolveum.midpoint.schema.util.task.TaskInformation
com.evolveum.midpoint.schema.util.task.ActivityBasedTaskInformation
- All Implemented Interfaces:
DebugDumpable,Serializable
Implementation of
TaskInformation based on new, activity-based tasks.
Assumes knowledge of both root and current task.- See Also:
-
Field Summary
Fields inherited from class com.evolveum.midpoint.schema.util.task.TaskInformation
overallStatus, task, workersInformationFields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptiondebugDump(int indent) Returns number of items failed to be processed by the task and its children, if known.Returns the "end timestamp" with the analogous semantics toTaskInformation.getStartTimestamp().We assume the token is directly in the task provided.doubleReturns the progress of the task based on activity tree state.getProgressDescription(boolean longForm) @NotNull ActivityProgressInformation@Nullable ActivityStatePersistenceTypeReturns the "start timestamp", whatever that means.Returns the message that describes primarily the overall status (health) of the task and it's subtasks.Return list of technical messages that contains concrete errors/warnings that are related to the task health (plus it's subtasks).Overall health status of the task and it's subtasks.Return list of localizable messages that contains concrete errors/warnings that are related to the task health (plus it's subtasks).booleanMethods inherited from class com.evolveum.midpoint.schema.util.task.TaskInformation
createForTask, getCompletelyStalledSince, getNodesDescription, getProgressDescriptionShort, getResultStatus, getTaskMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Method Details
-
getProgressDescription
- Specified by:
getProgressDescriptionin classTaskInformation
-
getProgress
public double getProgress()Description copied from class:TaskInformationReturns the progress of the task based on activity tree state. Progress (%) is based on the number of completed activities to all activities. Each activity represents the same amount of work.- Specified by:
getProgressin classTaskInformation- Returns:
- The progress is a number between 0 and 1. If the progress is unknown, the method returns -1.
-
isComplete
public boolean isComplete()- Specified by:
isCompletein classTaskInformation
-
getTaskHealthStatus
Description copied from class:TaskInformationOverall health status of the task and it's subtasks. Not related to items/objects processing, rather just task execution (e.g. failed/stalled workers).- Specified by:
getTaskHealthStatusin classTaskInformation
-
getTaskHealthDescription
Description copied from class:TaskInformationReturns the message that describes primarily the overall status (health) of the task and it's subtasks. Description should not be based on errors created as a result of items/objects processing, just state of tasks/subtasks and their execution. This should be a short message that is suitable for displaying to the user/table.- Specified by:
getTaskHealthDescriptionin classTaskInformation
-
getTaskHealthMessages
Description copied from class:TaskInformationReturn list of technical messages that contains concrete errors/warnings that are related to the task health (plus it's subtasks). Collected messages might repeat, therefore might not be unique. It's up to client to decide whether to filter them. E.g. Policy violation error messages.- Specified by:
getTaskHealthMessagesin classTaskInformation
-
getTaskHealthUserFriendlyMessages
Description copied from class:TaskInformationReturn list of localizable messages that contains concrete errors/warnings that are related to the task health (plus it's subtasks). Collected messages might repeat, therefore might not be unique. It's up to client to decide whether to filter them. E.g. Policy violation error localizable messages.- Specified by:
getTaskHealthUserFriendlyMessagesin classTaskInformation
-
getAllErrors
Description copied from class:TaskInformationReturns number of items failed to be processed by the task and its children, if known. BEWARE: Fatal errors (e.g. resource not found for import task) are not counted here.- Specified by:
getAllErrorsin classTaskInformation
-
getStartTimestamp
Description copied from class:TaskInformationReturns the "start timestamp", whatever that means. Currently, it is the execution start for trivial tasks (a single non-bucketed activity, or a legacy task); and realization start otherwise.- Specified by:
getStartTimestampin classTaskInformation
-
getEndTimestamp
Description copied from class:TaskInformationReturns the "end timestamp" with the analogous semantics toTaskInformation.getStartTimestamp().- Specified by:
getEndTimestampin classTaskInformation
-
debugDump
- Specified by:
debugDumpin interfaceDebugDumpable- Overrides:
debugDumpin classTaskInformation
-
getLiveSyncToken
We assume the token is directly in the task provided.- Specified by:
getLiveSyncTokenin classTaskInformation
-
getProgressInformation
-
getRootActivityStatePersistence
- Specified by:
getRootActivityStatePersistencein classTaskInformation
-
getTaskUserFriendlyStatus
- Specified by:
getTaskUserFriendlyStatusin classTaskInformation
-