Class EmbeddedActivity<WD extends WorkDefinition,AH extends ActivityHandler<WD,AH>>
java.lang.Object
com.evolveum.midpoint.repo.common.activity.Activity<WD,AH>
com.evolveum.midpoint.repo.common.activity.EmbeddedActivity<WD,AH>
- All Implemented Interfaces:
DebugDumpable
public class EmbeddedActivity<WD extends WorkDefinition,AH extends ActivityHandler<WD,AH>>
extends Activity<WD,AH>
A sub-activity that does not have its own (explicit) definition. Typical examples are sub-activities of reconciliation,
cleanup, or focus validity scan activity.
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptionstatic <WD extends WorkDefinition,AH extends ActivityHandler<WD, AH>>
EmbeddedActivity<WD,AH> create(@NotNull ActivityDefinition<WD> definition, @NotNull ActivityRunSupplier<WD, AH> activityRunSupplier, @Nullable PreRunnable<WD, AH> preRunnable, @NotNull CandidateIdentifierFormatter candidateIdentifierFormatter, @NotNull ActivityStateDefinition<?> activityStateDefinition, @NotNull Activity<WD, AH> parent) Creates an embedded activity.@NotNull ActivityStateDefinition<?>protected @NotNull CandidateIdentifierFormatterReturns objects that suggest child activity identifiers.protected @NotNull ActivityRunSupplier<WD,AH> Returns objects that createAbstractActivityRunobjects for this activity.@Nullable PreRunnable<WD,AH> Methods inherited from class com.evolveum.midpoint.repo.common.activity.Activity
accept, createRun, debugDump, doesTaskExecuteTreeRootActivity, getChild, getChildrenCopy, getChildrenCopyExceptSkipped, getControlFlowDefinition, getDefinition, getDistributionDefinition, getErrorHandlingStrategy, getExecutionMode, getIdentifier, getLocalPath, getPath, getReportingDefinition, getRun, getTree, getWorkDefinition, initializeChildrenMapIfNeeded, isLocalRoot, isRoot, isSkipped, setLocalRoot, toStringMethods 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
public static <WD extends WorkDefinition,AH extends ActivityHandler<WD, EmbeddedActivity<WD,AH>> AH> create(@NotNull @NotNull ActivityDefinition<WD> definition, @NotNull @NotNull ActivityRunSupplier<WD, AH> activityRunSupplier, @Nullable @Nullable PreRunnable<WD, AH> preRunnable, @NotNull @NotNull CandidateIdentifierFormatter candidateIdentifierFormatter, @NotNull @NotNull ActivityStateDefinition<?> activityStateDefinition, @NotNull @NotNull Activity<WD, AH> parent) Creates an embedded activity.- Parameters:
definition- Definition to be used. Should be freely modifiable (typically cloned, e.g. viaActivityDefinition.cloneWithoutId())!
-
getHandler
- Specified by:
getHandlerin classActivity<WD extends WorkDefinition,AH extends ActivityHandler<WD, AH>>
-
getLocalRunSupplier
Description copied from class:ActivityReturns objects that createAbstractActivityRunobjects for this activity. It is used in cases where the activity runs locally i.e. is not delegated nor distributed. SeeActivityRunSupplier.- Specified by:
getLocalRunSupplierin classActivity<WD extends WorkDefinition,AH extends ActivityHandler<WD, AH>>
-
getCandidateIdentifierFormatter
Description copied from class:ActivityReturns objects that suggest child activity identifiers.- Specified by:
getCandidateIdentifierFormatterin classActivity<WD extends WorkDefinition,AH extends ActivityHandler<WD, AH>>
-
getActivityStateDefinition
- Specified by:
getActivityStateDefinitionin classActivity<WD extends WorkDefinition,AH extends ActivityHandler<WD, AH>>
-
getParent
- Specified by:
getParentin classActivity<WD extends WorkDefinition,AH extends ActivityHandler<WD, AH>>
-
getPreRunnable
-