Lime Web Components API Documentation - v7.11.0
    Preparing search index...

    Interface PreparedApprovalAlpha

    What AIActionWithApproval.prepare resolves with: one preview and the run that belongs to it.

    interface PreparedApproval {
        preview: ApprovalPreview;
        run(): Promise<AIActionResult>;
    }
    Index

    Properties

    Methods

    Properties

    What the user approves.

    Methods

    • Alpha

      Run the action after the user has approved it.

      Runs what the preview showed. Keep whatever the preview read, such as the object's timestamp, in this function, read it again here, and if it has changed since, resolve with an AIActionFailed instead of writing. The check narrows the window in which someone else's change can be overwritten but does not close it, because the limeobject write path has no conditional update.

      Returns Promise<AIActionResult>

      What happened. Resolve with an AIActionFailed rather than rejecting when the action could not be done.