Class ActivityTreePurger

java.lang.Object
com.evolveum.midpoint.repo.common.activity.run.state.ActivityTreePurger

public class ActivityTreePurger extends Object
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 Details

    • ActivityTreePurger

      public ActivityTreePurger(@NotNull @NotNull ActivityPath rootPath, @NotNull @NotNull RunningTask runningTask, boolean restarting)
  • Method Details

    • purge

      public void purge(OperationResult result) throws ActivityRunException
      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