Class Activity<WD extends WorkDefinition,AH extends ActivityHandler<WD,AH>>
java.lang.Object
com.evolveum.midpoint.repo.common.activity.Activity<WD,AH>
- Type Parameters:
WD- Type of the work definition objectAH- Type of the activity handler object
- All Implemented Interfaces:
DebugDumpable
- Direct Known Subclasses:
EmbeddedActivity,StandaloneActivity
public abstract class Activity<WD extends WorkDefinition,AH extends ActivityHandler<WD,AH>>
extends Object
implements DebugDumpable
Binds together all the information about an activity and its run (if present).
The
Activity itself is a binder for (shortly speaking):
. (definition) ActivityDefinition
. (run) AbstractActivityRun (optional - only if we are dealing with the currently executing activity)
* ActivityState;
. (tree) ActivityTree
* ActivityTreeStateOverview
. ActivityHandler-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(@NotNull ActivityVisitor visitor) @NotNull AbstractActivityRun<?,?, ?> createRun(ActivityBasedTaskRun taskRun, OperationResult result) Creates and sets the activity run (run).debugDump(int indent) booleandoesTaskExecuteTreeRootActivity(Task activityTask) abstract @NotNull ActivityStateDefinitionprotected abstract @NotNull CandidateIdentifierFormatterReturns objects that suggest child activity identifiers.@NotNull Activity<?,?> @NotNull ActivityControlFlowDefinition@NotNull ActivityDefinition<WD>@NotNull ActivityDistributionDefinition@NotNull ExecutionModeTypeabstract AH@Nullable ActivityPathprotected abstract @NotNull ActivityRunSupplier<WD,AH> Returns objects that createAbstractActivityRunobjects for this activity.abstract Activity<?,?> @NotNull ActivityPathgetPath()@NotNull ActivityReportingDefinitiongetRun()@NotNull ActivityTreegetTree()voidbooleanIs this activity the local root i.e. root of run in the current task?booleanisRoot()Is this activity the (global) root of the activity tree?booleanvoidtoString()Methods 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
-
getIdentifier
-
getDefinition
-
getWorkDefinition
-
getDistributionDefinition
-
getReportingDefinition
-
getControlFlowDefinition
-
getHandler
-
getLocalRunSupplier
Returns objects that createAbstractActivityRunobjects for this activity. It is used in cases where the activity runs locally i.e. is not delegated nor distributed. SeeActivityRunSupplier. -
getCandidateIdentifierFormatter
Returns objects that suggest child activity identifiers. -
getActivityStateDefinition
-
getRun
-
getTree
-
setLocalRoot
public void setLocalRoot() -
getParent
-
getChildrenCopy
-
getChildrenCopyExceptSkipped
-
debugDump
- Specified by:
debugDumpin interfaceDebugDumpable
-
createRun
@NotNull public @NotNull AbstractActivityRun<?,?, createRun?> (ActivityBasedTaskRun taskRun, OperationResult result) Creates and sets the activity run (run). -
doesTaskExecuteTreeRootActivity
-
getChild
- Throws:
SchemaException
-
initializeChildrenMapIfNeeded
- Throws:
SchemaException
-
isRoot
public boolean isRoot()Is this activity the (global) root of the activity tree? -
isLocalRoot
public boolean isLocalRoot()Is this activity the local root i.e. root of run in the current task? -
toString
-
getPath
-
getLocalPath
-
getErrorHandlingStrategy
-
accept
-
isSkipped
public boolean isSkipped() -
getExecutionMode
-