Interface WorkflowBulkActionEventHandler
- All Superinterfaces:
com.veeva.vault.sdk.infrastructure.core.SdkEntryPoint<WorkflowBulkActionEventContext>
WorkflowInstanceService.
One generic handler for the results of every bulk workflow action.
Each action type contributes its own pair of on***Start / on***Complete
methods. Implementers override only the action types they care about; methods
for unneeded action types do not require a body.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidFires when a bulk participant action job completes.default voidFires when a bulk participant action job starts processing.
-
Method Details
-
onParticipantsUpdateStart
Fires when a bulk participant action job starts processing.If an exception is thrown inside
onParticipantsUpdateStart(com.veeva.vault.sdk.api.workflow.WorkflowBulkParticipantEventStartContext), the handler's own logic rolls back, but the participant changes already applied by the job remain in effect.Default implementation is a no-op; override to process results.
- Parameters:
context- provides the job ID and action type
-
onParticipantsUpdateComplete
Fires when a bulk participant action job completes. Provides the per-(workflow, group, member) results for every attempted change in the job.If an exception is thrown within this method, the logic within this implementation of
onParticipantsUpdateComplete(com.veeva.vault.sdk.api.workflow.WorkflowBulkParticipantEventCompletionContext)will roll back; however, the job will still complete.Default implementation is a no-op; override to process results.
- Parameters:
context- provides the job ID, action type, and per-group results
-