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).
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
-
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 Detail
-
getIdentifier
public String getIdentifier()
-
setIdentifier
public void setIdentifier(String identifier)
-
getDefinition
@NotNull public @NotNull ActivityDefinition<WD> getDefinition()
-
getWorkDefinition
@NotNull public WD getWorkDefinition()
-
getDistributionDefinition
@NotNull public @NotNull ActivityDistributionDefinition getDistributionDefinition()
-
getReportingDefinition
@NotNull public @NotNull ActivityReportingDefinition getReportingDefinition()
-
getControlFlowDefinition
@NotNull public @NotNull ActivityControlFlowDefinition getControlFlowDefinition()
-
getHandler
@NotNull public abstract AH getHandler()
-
getLocalRunSupplier
@NotNull protected abstract @NotNull ActivityRunSupplier<WD,AH> getLocalRunSupplier()
-
getCandidateIdentifierFormatter
@NotNull protected abstract @NotNull CandidateIdentifierFormatter getCandidateIdentifierFormatter()
-
getActivityStateDefinition
@NotNull public abstract @NotNull ActivityStateDefinition<?> getActivityStateDefinition()
-
getRun
public AbstractActivityRun<WD,AH,?> getRun()
-
getTree
@NotNull public @NotNull ActivityTree getTree()
-
setLocalRoot
public void setLocalRoot(boolean localRoot)
-
getParent
public abstract Activity<?,?> getParent()
-
getChildrenCopyExceptSkipped
@NotNull public @NotNull List<Activity<?,?>> getChildrenCopyExceptSkipped()
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
createRun
public AbstractActivityRun<?,?,?> createRun(ActivityBasedTaskRun taskRun, OperationResult result)
-
doesTaskExecuteTreeRootActivity
public boolean doesTaskExecuteTreeRootActivity(Task activityTask)
-
getChild
@NotNull public @NotNull Activity<?,?> getChild(String identifier) throws SchemaException
- Throws:
SchemaException
-
initializeChildrenMapIfNeeded
public void initializeChildrenMapIfNeeded() throws SchemaException
- Throws:
SchemaException
-
isRoot
public boolean isRoot()
-
isLocalRoot
public boolean isLocalRoot()
Is this activity the local root i.e. root of run in the current task?
-
getPath
@NotNull public @NotNull ActivityPath getPath()
-
getLocalPath
@Nullable public @Nullable ActivityPath getLocalPath()
-
getErrorHandlingStrategy
public ActivityErrorHandlingStrategyType getErrorHandlingStrategy()
-
accept
public void accept(@NotNull @NotNull ActivityVisitor visitor)
-
isSkipped
public boolean isSkipped()
-
-