Package com.veeva.vault.sdk.api.action
Interface DocumentAction
- All Superinterfaces:
com.veeva.vault.sdk.infrastructure.core.SdkEntryPoint<DocumentActionContext>
public interface DocumentAction
extends com.veeva.vault.sdk.infrastructure.core.SdkEntryPoint<DocumentActionContext>
Executes a given document action; takes
DocumentActionContext as input. A DocumentAction Class must
implement this interface.-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(DocumentActionContext context) The logic to execute when the action is invoked.booleanisExecutable(DocumentActionContext context) Determines if an action is available to users for execution in theUSER_ACTIONuse case.default voidThe logic to execute after the action is invoked during the post-execution phase.default voidThe logic to execute before the action is invoked during the pre-execution phase.
-
Method Details
-
isExecutable
Determines if an action is available to users for execution in theUSER_ACTIONuse case.- Parameters:
context- indicates the target documents to execute against- Returns:
- true if the action is available, otherwise false
-
execute
The logic to execute when the action is invoked. Executes this action against the target identified in the context.- Parameters:
context- indicates the target documents to execute against
-
onPreExecute
The logic to execute before the action is invoked during the pre-execution phase. Used to set up action-related UI behavior to be displayed in theUSER_ACTIONuse case when executing user actions through the UI.- Parameters:
context- to set UI data on
-
onPostExecute
The logic to execute after the action is invoked during the post-execution phase. Used to set up action-related UI behavior to be displayed in theUSER_ACTIONuse case when executing user actions through the UI.- Parameters:
context- to set UI data on
-