Package com.veeva.vault.sdk.api.workflow
Interface WorkflowTaskCompleteOperation<T>
public interface WorkflowTaskCompleteOperation<T>
Operation wrapper for executing task completion requests.
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the task completion operation that submits the workflow task.onError(Consumer<WorkflowActionError> handler) Sets the function called when the complete workflow task action has errors due to task-level errors.Sets the function called when the complete workflow task action succeeds.Sets the function called when the complete workflow task action has errors due to multi-value verdict input using withTaskItemVerdictInput(ListitemVerdictInputs).
-
Method Details
-
onSuccess
Sets the function called when the complete workflow task action succeeds.- Parameters:
handler- the consumer to call on success- Returns:
- this operation
-
onTaskItemVerdictInputError
WorkflowTaskCompleteOperation onTaskItemVerdictInputError(Consumer<List<WorkflowTaskItemActionError>> handler) Sets the function called when the complete workflow task action has errors due to multi-value verdict input using withTaskItemVerdictInput(ListitemVerdictInputs). - Parameters:
handler- the consumer to call on failure- Returns:
- this operation
-
onError
Sets the function called when the complete workflow task action has errors due to task-level errors.- Parameters:
handler- the consumer to call on failure- Returns:
- this operation
-
execute
void execute()Executes the task completion operation that submits the workflow task.
-