Class ActivityTreePurger
java.lang.Object
com.evolveum.midpoint.repo.common.activity.run.state.ActivityTreePurger
Responsible for purging detailed state of the activities, including worker and delegator tasks.
This also includes:
1. Deletion of eligible subtasks. This is done here (and not elsewhere) because we need to know which
subtasks to purge and which not: and the distinction is similar to distinction when purging the state
itself (the state persistence).
2. Deletion of the task-level statistics. The reason is similar: we need to know which
activities are "persistent" and which are not. (The distinction is only approximate, because the task
statistics are common for all activities in the task. So we keep them if at least one of the activities
is persistent.)
-
Constructor Summary
ConstructorDescriptionActivityTreePurger
(@NotNull ActivityBasedTaskRun taskRun, @NotNull CommonTaskBeans beans) -
Method Summary
Modifier and TypeMethodDescriptionvoid
purge
(OperationResult result) Purges state (including task-level stats) from current task and its subtasks.
-
Constructor Details
-
ActivityTreePurger
public ActivityTreePurger(@NotNull @NotNull ActivityBasedTaskRun taskRun, @NotNull @NotNull CommonTaskBeans beans)
-
-
Method Details
-
purge
Purges state (including task-level stats) from current task and its subtasks. Deletes subtasks if possible. * Pre: task is an execution root * Post: task is refreshed- Throws:
ActivityRunException
-