Member Junction
    Preparing search index...

    Base class for all Scheduled Job-related actions. Provides common functionality for job operations including validation, filtering, and entity loading.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    AuthorizesCaller: boolean

    True when the action authorizes its caller itself, so a public entry point such as the RunAction mutation may run it for an authenticated user without an MJ: Action Authorizations link. Set it only on an action that either checks an authorization the caller must hold, or reads and writes only with the caller's own permissions. Leave it false for an action that acts with more authority than its caller, or that reaches data or sends messages the caller chooses but could not otherwise reach.

    The engine reads the marker only from the class that runs, never from its parent classes. A subclass that overrides a marked action must declare the marker again.

    Methods

    • Build filter expression for job queries

      Parameters

      • filters: {
            createdAfter?: Date;
            createdBefore?: Date;
            isActive?: boolean;
            jobTypeId?: string;
            status?: string;
        }

        Object containing optional filter criteria

      Returns string

      SQL WHERE clause string

    • Get boolean parameter with default value

      Parameters

      • params: RunActionParams

        The action parameters

      • name: string

        Parameter name to find

      • defaultValue: boolean

        Default value if parameter is missing

      Returns boolean

      The boolean parameter value or default

    • Get numeric parameter with default value

      Parameters

      • params: RunActionParams

        The action parameters

      • name: string

        Parameter name to find

      • defaultValue: number

        Default value if parameter is missing or invalid

      Returns number

      The numeric parameter value or default

    • Validate job status value

      Parameters

      • status: string

        The status value to validate

      Returns boolean

      True if the status is valid

    • Validate cron expression format

      Parameters

      • cronExpression: string

        The cron expression to validate

      Returns { error?: string; valid: boolean }

      Object with valid flag and optional error message