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 TypeMethodDescriptionvoid
accept
(@NotNull ActivityVisitor visitor) @NotNull AbstractActivityRun<?,
?, ?> createRun
(ActivityBasedTaskRun taskRun, OperationResult result) Creates and sets the activity run (run
).debugDump
(int indent) boolean
doesTaskExecuteTreeRootActivity
(Task activityTask) abstract @NotNull ActivityStateDefinition<?>
protected abstract @NotNull CandidateIdentifierFormatter
Returns objects that suggest child activity identifiers.@NotNull Activity<?,
?> @NotNull ActivityControlFlowDefinition
@NotNull ActivityDefinition<WD>
@NotNull ActivityDistributionDefinition
@NotNull ExecutionModeType
abstract AH
@Nullable ActivityPath
protected abstract @NotNull ActivityRunSupplier<WD,
AH> Returns objects that createAbstractActivityRun
objects for this activity.abstract Activity<?,
?> @NotNull ActivityPath
getPath()
@NotNull ActivityReportingDefinition
getRun()
@NotNull ActivityTree
getTree()
void
boolean
Is this activity the local root i.e.boolean
isRoot()
Is this activity the (global) root of the activity tree?boolean
void
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Method Details
-
getIdentifier
-
getDefinition
-
getWorkDefinition
-
getDistributionDefinition
-
getReportingDefinition
-
getControlFlowDefinition
-
getHandler
-
getLocalRunSupplier
Returns objects that createAbstractActivityRun
objects 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:
debugDump
in 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
-