Class ActivityDefinition<WD extends WorkDefinition>
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.activity.definition.ActivityDefinition<WD>
-
- All Implemented Interfaces:
DebugDumpable
,Cloneable
public class ActivityDefinition<WD extends WorkDefinition> extends Object implements DebugDumpable, Cloneable
Definition of an activity. It is analogous to (and primarily filled-in from) `ActivityDefinitionType`, but contains the complete information about particular activity in the context of given task.
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Method Detail
-
createRoot
public static <WD extends AbstractWorkDefinition> ActivityDefinition<WD> createRoot(Task rootTask, CommonTaskBeans beans) throws SchemaException, ConfigurationException
Creates a definition for the root activity in the task. It is taken from: 1. "activity" bean 2. handler URI
-
createChild
public static ActivityDefinition<?> createChild(@NotNull @NotNull ActivityDefinitionType bean, @NotNull @NotNull WorkDefinitionFactory workDefinitionFactory)
Creates a definition for a child of a pure-composite activity. It is taken from the "activity" bean, combined with (compatible) information from "defaultWorkDefinition" beans all the way up.
-
getExecutionMode
@NotNull public @NotNull ExecutionModeType getExecutionMode()
-
getErrorCriticality
@Deprecated public ErrorSelectorType getErrorCriticality()
Deprecated.
-
getWorkDefinition
@NotNull public WD getWorkDefinition()
-
getDistributionDefinition
@NotNull public @NotNull ActivityDistributionDefinition getDistributionDefinition()
-
getControlFlowDefinition
@NotNull public @NotNull ActivityControlFlowDefinition getControlFlowDefinition()
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
getExplicitlyDefinedIdentifier
public String getExplicitlyDefinedIdentifier()
-
applyChangeTailoring
public void applyChangeTailoring(@NotNull @NotNull ActivityTailoringType tailoring)
-
applySubtaskTailoring
public void applySubtaskTailoring(@NotNull @NotNull ActivitySubtaskDefinitionType subtaskSpecification)
-
clone
public ActivityDefinition<WD> clone()
Does the deep clone. The goal is to be able to modify cloned definition freely. BEWARE: Do not use this method to create a definition clone to be used for child activities. UsecloneWithoutId()
instead. See MID-7894.
-
cloneWithoutId
public ActivityDefinition<WD> cloneWithoutId()
Asclone()
but discards theexplicitlyDefinedIdentifier
value.
-
getReportingDefinition
@NotNull public @NotNull ActivityReportingDefinition getReportingDefinition()
-
getFailedObjectsSelector
@Nullable public @Nullable FailedObjectsSelectorType getFailedObjectsSelector()
-
-