Base class for invocation of any entity action invocation type

Hierarchy (view full)

Constructors

Properties

_scriptCache: Map<string, Function> = ...

Methods

  • Attempt to execute a script and wraps in try/catch to handle any errors so that no exceptions are thrown The scripts are passed an object called EntityActionContext which has a property called entityObject that is the entity object for the current Entity Action. The script can do whatever it wants to do, and passes back a value in the result property of the EntityActionContext object

    Parameters

    • EntityActionID: string
    • scriptText: string

      the script to execute

    • entityObject: BaseEntity<unknown>

      the entity object to pass to the script

    Returns Promise<any>