Interface ActivityHandler<WD extends WorkDefinition,AH extends ActivityHandler<WD,AH>>
-
- All Superinterfaces:
ActivityRunSupplier<WD,AH>
,CandidateIdentifierFormatter
- All Known Implementing Classes:
AsyncUpdateActivityHandler
,AutoScalingActivityHandler
,CleanupActivityHandler
,CustomCompositeActivityHandler
,DeletionActivityHandler
,FocusValidityScanActivityHandler
,ImportActivityHandler
,IterativeChangeExecutionActivityHandler
,IterativeScriptingActivityHandler
,LiveSyncActivityHandler
,ModelActivityHandler
,NonIterativeChangeExecutionActivityHandler
,NonIterativeScriptingActivityHandler
,NoOpActivityHandler
,ObjectIntegrityCheckActivityHandler
,RecomputationActivityHandler
,ReconciliationActivityHandler
,ReindexActivityHandler
,ShadowCleanupActivityHandler
,ShadowIntegrityCheckActivityHandler
,ShadowRefreshActivityHandler
,SimpleActivityHandler
,TriggerScanActivityHandler
@Component @Experimental public interface ActivityHandler<WD extends WorkDefinition,AH extends ActivityHandler<WD,AH>> extends ActivityRunSupplier<WD,AH>, CandidateIdentifierFormatter
Spring component that ensures handling activity invocations. It is really minimalistic: its only responsibility is to instantiate appropriateAbstractActivityRun
object. The naming is derived from theTaskHandler
, to which it is conceptually somewhat similar.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ArrayList<Activity<?,?>>
createChildActivities(Activity<WD,AH> activity)
default @NotNull String
formatCandidateIdentifier(int iteration)
default @Nullable String
getDefaultArchetypeOid()
Returns task archetype OID connected to this activity handler.default String
getIdentifierPrefix()
default @NotNull ActivityStateDefinition<?>
getRootActivityStateDefinition()
Returns state definition for standalone (root) activity paired with this handler.-
Methods inherited from interface com.evolveum.midpoint.repo.common.activity.ActivityRunSupplier
createActivityRun
-
-
-
-
Method Detail
-
createChildActivities
default ArrayList<Activity<?,?>> createChildActivities(Activity<WD,AH> activity) throws SchemaException
- Throws:
SchemaException
-
formatCandidateIdentifier
@NotNull default @NotNull String formatCandidateIdentifier(int iteration)
- Specified by:
formatCandidateIdentifier
in interfaceCandidateIdentifierFormatter
-
getIdentifierPrefix
default String getIdentifierPrefix()
-
getRootActivityStateDefinition
@NotNull default @NotNull ActivityStateDefinition<?> getRootActivityStateDefinition()
Returns state definition for standalone (root) activity paired with this handler. Definitions for embedded activities are provided by activities themselves, which are returned bycreateChildActivities(Activity)
method.
-
getDefaultArchetypeOid
@Nullable default @Nullable String getDefaultArchetypeOid()
Returns task archetype OID connected to this activity handler. When a generic task starts, it is given an archetype based on the activity handler for the task's main activity. (If not set before.)
-
-