public interface WorkflowUpdateDueDateOperation
execute()
.
Supplying a success handler via onSuccess(Consumer)
is optional.
Supplying a failure handler via onError(Consumer)
is optional, but errors will throw an exception.
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes this workflow update due date operation.
|
WorkflowUpdateDueDateOperation |
onError(Consumer<WorkflowActionError> errorHandler)
Sets the function called when updating the due date of an active workflow has errors.
|
WorkflowUpdateDueDateOperation |
onSuccess(Consumer<WorkflowActionResponse> successHandler)
Sets the function called when updating the due date of an active workflow succeeds.
|
WorkflowUpdateDueDateOperation onSuccess(Consumer<WorkflowActionResponse> successHandler)
successHandler
- function to call after successful executionWorkflowUpdateDueDateOperation
WorkflowUpdateDueDateOperation onError(Consumer<WorkflowActionError> errorHandler)
errorHandler
- function to call after failed executionWorkflowUpdateDueDateOperation
void execute()
If a failure handler is not supplied, then any user-facing errors resulting from subsequent actions that are executed
will be propagated through a thrown RuntimeException.
If a failure handler is not supplied and the request does not have the correct permission, or if the parameters are not valid values,
or if the required parameters are not set, then a RuntimeException may also be thrown.
RuntimeException
- only if a failure handler is not supplied.Copyright © Veeva Systems 2017–2023. All rights reserved.