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
Constructors Constructor Description CustomCompositeActivityHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull AbstractActivityRun<CompositeWorkDefinition,CustomCompositeActivityHandler,?>
createActivityRun(@NotNull ActivityRunInstantiationContext<CompositeWorkDefinition,CustomCompositeActivityHandler> context, @NotNull OperationResult result)
ArrayList<Activity<?,?>>
createChildActivities(Activity<CompositeWorkDefinition,CustomCompositeActivityHandler> parent)
String
getIdentifierPrefix()
@NotNull ActivityStateDefinition<?>
getRootActivityStateDefinition()
Returns state definition for standalone (root) activity paired with this handler.void
register()
void
unregister()
-
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
-
-
-
-
Method Detail
-
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
public String getIdentifierPrefix()
- Specified by:
getIdentifierPrefix
in interfaceActivityHandler<CompositeWorkDefinition,CustomCompositeActivityHandler>
-
getRootActivityStateDefinition
@NotNull public @NotNull ActivityStateDefinition<?> 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>
-
-