Interface ObjectLifecycleStateUserActionService
- All Superinterfaces:
Service
Provides methods to execute an object lifecycle user action.
-
Method Summary
Modifier and TypeMethodDescriptionCreates an instance ofUserActionExecutionOperation
, which can be used to execute the user action based on theUserActionExecutionRequest
.Creates aUserActionExecutionRequest.Builder
.
-
Method Details
-
newExecutionRequestBuilder
UserActionExecutionRequest.Builder newExecutionRequestBuilder()Creates aUserActionExecutionRequest.Builder
.- Returns:
- a
UserActionExecutionRequest.Builder
-
executeUserAction
UserActionExecutionOperation<UserActionExecutionResponse> executeUserAction(UserActionExecutionRequest request) Creates an instance ofUserActionExecutionOperation
, which can be used to execute the user action based on theUserActionExecutionRequest
. Once success-handling and error-handling are (optionally) specified, you can callUserActionExecutionOperation.execute()
to execute the user action. For example:userActionService.executeUserAction(userActionExecutionRequest) .onSuccess(response -> { ... }) .onFailure(response -> { ... }) .execute()
- Parameters:
request
- theUserActionExecutionRequest
. An object with the provided object name and the record with the provided record ID must exist in the Vault. A user action with the given name must exist.- Returns:
- an instance of
UserActionExecutionOperation
, which can be used to execute the user action.
-