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, e.g. various defaults resolved.
Should not contain any data related to the execution of the activity.-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyChangeTailoring
(@NotNull ActivityTailoringType tailoring) void
applySubtaskTailoring
(@NotNull ActivitySubtaskDefinitionType subtaskSpecification) clone()
Does the deep clone.Asclone()
but discards theexplicitlyDefinedIdentifier
value.static <WD extends AbstractWorkDefinition>
ActivityDefinition<WD>createActivityDefinition
(@NotNull ActivityDefinitionType definitionBean, @NotNull ConfigurationItemOrigin origin) static @NotNull ActivityDefinition<?>
createChild
(@NotNull ActivityDefinitionType childDefBean, @NotNull ConfigurationItemOrigin childDefOrigin) Creates a definition for a child of a custom composite activity.static <WD extends AbstractWorkDefinition>
ActivityDefinition<WD>createRoot
(Task rootTask) Creates a definition for the root activity in the task.debugDump
(int indent) @NotNull AffectedObjectsInformation
@NotNull ActivityControlFlowDefinition
@NotNull ActivityDistributionDefinition
Deprecated.@NotNull ExecutionModeType
@NotNull ActivityExecutionModeDefinition
@Nullable String
@Nullable FailedObjectsSelectorType
@NotNull ActivityReportingDefinition
boolean
toString()
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 Details
-
createRoot
public static <WD extends AbstractWorkDefinition> ActivityDefinition<WD> createRoot(Task rootTask) throws SchemaException, ConfigurationException Creates a definition for the root activity in the task. It is taken from theActivityDefinitionType
, as legacy handler URIs are no longer supported (since 4.8). -
createActivityDefinition
public static <WD extends AbstractWorkDefinition> ActivityDefinition<WD> createActivityDefinition(@NotNull @NotNull ActivityDefinitionType definitionBean, @NotNull @NotNull ConfigurationItemOrigin origin) throws SchemaException, ConfigurationException -
createChild
@NotNull public static @NotNull ActivityDefinition<?> createChild(@NotNull @NotNull ActivityDefinitionType childDefBean, @NotNull @NotNull ConfigurationItemOrigin childDefOrigin) Creates a definition for a child of a custom composite activity. Currently, it is taken solely from the child activity definition bean. -
getExecutionMode
-
getErrorCriticality
Deprecated. -
getWorkDefinition
-
getWorkDefinitionClass
-
getDistributionDefinition
-
getControlFlowDefinition
-
getExecutionModeDefinition
-
toString
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
getExplicitlyDefinedIdentifier
-
applyChangeTailoring
-
applySubtaskTailoring
public void applySubtaskTailoring(@NotNull @NotNull ActivitySubtaskDefinitionType subtaskSpecification) -
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
Asclone()
but discards theexplicitlyDefinedIdentifier
value. -
getReportingDefinition
-
getFailedObjectsSelector
-
getAffectedObjectsInformation
@NotNull public @NotNull AffectedObjectsInformation getAffectedObjectsInformation() throws SchemaException, ConfigurationException -
shouldCreateSimulationResult
public boolean shouldCreateSimulationResult()
-