Class ActivityTree
java.lang.Object
com.evolveum.midpoint.repo.common.activity.ActivityTree
- All Implemented Interfaces:
DebugDumpable
Represents the tree of activities that comprise a logical task.
Basically, binds together the root activity (
StandaloneActivity) and the dynamic object representing
the state of the whole tree (ActivityTreeStateOverview).-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptionstatic ActivityTreevoidCreates a new task run identifier and stores it in the tree state overview.debugDump(int indent) @NotNull Activity<?,?> getActivity(ActivityPath path) @NotNull CommonTaskBeansgetBeans()@NotNull Activity<?,?> @NotNull ActivityTreeStateOverviewvoidpurgeState(ActivityPath rootPath, RunningTask runningTask, boolean restarting, OperationResult result) Purges the activity state (before new realization - on regular next run or on restart): both in state overview and in detailed states.voidvoidtoString()voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Method Details
-
create
-
getRootActivity
-
getBeans
-
toString
-
debugDump
- Specified by:
debugDumpin interfaceDebugDumpable
-
getActivity
- Throws:
SchemaException
-
getTreeStateOverview
-
getRealizationState
-
updateRealizationState
public void updateRealizationState(ActivityTreeRealizationStateType value, OperationResult result) throws ActivityRunException - Throws:
ActivityRunException
-
createTaskRunIdentifier
Creates a new task run identifier and stores it in the tree state overview. This is called at the beginning of a task run, this doesn't flush pending modifications to the database.- Throws:
ActivityRunException
-
recordTaskRunHistoryStart
- Throws:
ActivityRunException
-
recordTaskRunHistoryEnd
- Throws:
ActivityRunException
-
purgeState
public void purgeState(ActivityPath rootPath, RunningTask runningTask, boolean restarting, OperationResult result) throws ActivityRunException Purges the activity state (before new realization - on regular next run or on restart): both in state overview and in detailed states.- Parameters:
rootPath- The activity that should have its state purged (including descendant activities, hence "root")runningTask- Task that contains the activityrestarting- True if this is related to root activity restart- Throws:
ActivityRunException
-