Member Junction
    Preparing search index...

    Class EntityActionInvocationSingleRecord

    Base class for invocation of any entity action invocation type that is single record oriented

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • The filter rows that gate this binding, in the order the binding declares.

      Two things this does beyond the obvious lookup:

      1. Disabled bindings are skipped. Filters fail closed by design, so a disabled binding that still gated would not merely be inert — it would prevent the action, and the only visible symptom is a trigger that silently stopped firing. Pending still gates: it is the column default, so treating it as inert would open every gate that was never explicitly activated.
      2. An unresolvable filter is reported separately, and prevents the run. A binding pointing at an ActionFilter the engine cannot see is a misconfiguration; running unfiltered would be the worst possible reading of it, since the whole point of the row is to narrow when this fires. Previously the undefined entry reached the evaluator and threw there — fail-closed by accident, with no usable reason in the log.

      Returns { Filters: MJActionFilterEntity[]; Unresolved: string[] }

    • 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

        the entity object to pass to the script

      Returns Promise<any>