public interface DocumentAction extends com.veeva.vault.sdk.infrastructure.core.SdkEntryPoint<DocumentActionContext>
DocumentActionContext
as input. A DocumentAction
Class must
implement this interface.Modifier and Type | Method and Description |
---|---|
void |
execute(DocumentActionContext context)
The logic to execute when the action is invoked.
|
boolean |
isExecutable(DocumentActionContext context)
Determines if an action is available to users for execution.
|
default void |
onPostExecute(PostExecutionDocumentActionUIContext context)
The logic to execute after the action is invoked during the post-execution phase.
|
default void |
onPreExecute(PreExecutionDocumentActionUIContext context)
The logic to execute before the action is invoked during the pre-execution phase.
|
boolean isExecutable(DocumentActionContext context)
context
- indicates the target documents to execute againstvoid execute(DocumentActionContext context)
context
- indicates the target documents to execute againstdefault void onPreExecute(PreExecutionDocumentActionUIContext context)
USER_ACTION
use
case when executing user actions through the UI.context
- to set UI data ondefault void onPostExecute(PostExecutionDocumentActionUIContext context)
USER_ACTION
use
case when executing user actions through the UI.context
- to set UI data onCopyright © Veeva Systems 2017–2021. All rights reserved.