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 TypeMethodDescriptionvoidapplyChangeTailoring(@NotNull ActivityTailoringType tailoring) voidapplySubtaskTailoring(@NotNull ActivitySubtaskDefinitionType subtaskSpecification) clone()Does the deep clone.Asclone()but discards theexplicitlyDefinedIdentifiervalue.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 AffectedObjectsInformationgetAffectedObjectsInformation(@Nullable AbstractActivityWorkStateType state) @NotNull ActivityControlFlowDefinition@NotNull ActivityDistributionDefinitionDeprecated.@NotNull ExecutionModeType@NotNull ActivityExecutionModeDefinition@Nullable String@Nullable FailedObjectsSelectorType@NotNull ActivityReportingDefinitionbooleantoString()Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
debugDumpin 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 theexplicitlyDefinedIdentifiervalue. -
getReportingDefinition
-
getFailedObjectsSelector
-
getAffectedObjectsInformation
@NotNull public @NotNull AffectedObjectsInformation getAffectedObjectsInformation(@Nullable @Nullable AbstractActivityWorkStateType state) throws SchemaException, ConfigurationException -
shouldCreateSimulationResult
public boolean shouldCreateSimulationResult()
-