Package com.veeva.vault.sdk.api.workflow
Interface WorkflowCancelRequest.Builder
- Enclosing interface:
- WorkflowCancelRequest
public static interface WorkflowCancelRequest.Builder
Builds a
WorkflowCancelRequest.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aWorkflowCancelRequestbased on the values set in the builder.withComment(String comment) Sets the cancellation comment.withWorkflowId(String workflowId) Required: sets the active workflow id.
-
Method Details
-
withWorkflowId
Required: sets the active workflow id.- Parameters:
workflowId- of the workflow being cancelled- Returns:
- this
WorkflowCancelRequest.Builder
-
withComment
Sets the cancellation comment. Required: if a workflow is configured with cancellation comment.- Parameters:
comment- workflow cancellation comment- Returns:
- this
WorkflowCancelRequest.Builder
-
build
WorkflowCancelRequest build()Builds aWorkflowCancelRequestbased on the values set in the builder.- Returns:
- the built workflow cancel request
-