Class CustomCompositeActivityHandler
java.lang.Object
com.evolveum.midpoint.repo.common.activity.handlers.CustomCompositeActivityHandler
- All Implemented Interfaces:
ActivityRunSupplier<CompositeWorkDefinition,
,CustomCompositeActivityHandler> CandidateIdentifierFormatter
,ActivityHandler<CompositeWorkDefinition,
CustomCompositeActivityHandler>
@Component
public class CustomCompositeActivityHandler
extends Object
implements ActivityHandler<CompositeWorkDefinition,CustomCompositeActivityHandler>
Handles custom composite activities, see
https://docs.evolveum.com/midpoint/reference/tasks/activities/#configuring-custom-composite-activities.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateActivityRun
(@NotNull ActivityRunInstantiationContext<CompositeWorkDefinition, CustomCompositeActivityHandler> context, @NotNull OperationResult result) @NotNull ActivityStateDefinition<?>
Returns state definition for standalone (root) activity paired with this handler.void
register()
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.repo.common.activity.handlers.ActivityHandler
formatCandidateIdentifier, getDefaultArchetypeOid
-
Constructor Details
-
CustomCompositeActivityHandler
public CustomCompositeActivityHandler()
-
-
Method Details
-
register
@PostConstruct public void register() -
unregister
@PreDestroy public void unregister() -
createActivityRun
@NotNull public @NotNull AbstractActivityRun<CompositeWorkDefinition,CustomCompositeActivityHandler, createActivityRun?> (@NotNull @NotNull ActivityRunInstantiationContext<CompositeWorkDefinition, CustomCompositeActivityHandler> context, @NotNull @NotNull OperationResult result) - Specified by:
createActivityRun
in interfaceActivityRunSupplier<CompositeWorkDefinition,
CustomCompositeActivityHandler>
-
createChildActivities
public ArrayList<Activity<?,?>> createChildActivities(Activity<CompositeWorkDefinition, CustomCompositeActivityHandler> parent) - Specified by:
createChildActivities
in interfaceActivityHandler<CompositeWorkDefinition,
CustomCompositeActivityHandler>
-
getIdentifierPrefix
- Specified by:
getIdentifierPrefix
in interfaceActivityHandler<CompositeWorkDefinition,
CustomCompositeActivityHandler>
-
getRootActivityStateDefinition
Description copied from interface:ActivityHandler
Returns state definition for standalone (root) activity paired with this handler. Definitions for embedded activities are provided by activities themselves, which are returned byActivityHandler.createChildActivities(Activity)
method.- Specified by:
getRootActivityStateDefinition
in interfaceActivityHandler<CompositeWorkDefinition,
CustomCompositeActivityHandler>
-