public interface RecordAction extends com.veeva.vault.sdk.infrastructure.core.SdkEntryPoint<RecordActionContext>
RecordActionContext
as input. A record action class must implement this interface.Modifier and Type | Method and Description |
---|---|
void |
execute(RecordActionContext context)
The logic to execute when the action is invoked.
|
boolean |
isExecutable(RecordActionContext context)
Determines if an action is available to users for execution.
|
default void |
onPostExecute(PostExecutionRecordActionUIContext context)
The logic to execute after the action is invoked, during the post-execution phase.
|
default void |
onPreExecute(PreExecutionRecordActionUIContext context)
The logic to execute before the action is invoked, during the pre-execution phase.
|
boolean isExecutable(RecordActionContext context)
context
- target to execute againstvoid execute(RecordActionContext context)
context
- target object records to execute againstdefault void onPreExecute(PreExecutionRecordActionUIContext context)
USER_ACTION
use
case when executing user actions through the UI.context
- to set UI data ondefault void onPostExecute(PostExecutionRecordActionUIContext 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.