Member Junction
    Preparing search index...

    Interface IEntityStateMachinePolicy

    interface IEntityStateMachinePolicy {
        deletableInStates?: string[];
        editableFieldsByState?: Record<string, string[]>;
        fieldFreezeExemptOperations?: string[];
        freezeAllFieldsInTerminalStates?: boolean;
        frozenFieldsByState?: Record<string, string[]>;
        immutableAfterCreateFields?: string[];
        initialStates?: string[];
        nonDeletableStates?: string[];
        statusField: string;
        terminalStates?: string[];
        transitions: IStateTransitionRule[];
    }
    Index

    Properties

    deletableInStates?: string[]

    If provided, Delete() is only permitted when the record's stored status is in this list.

    editableFieldsByState?: Record<string, string[]>

    Allow-list of fields editable while the record's stored (pre-save) state equals key S.

    fieldFreezeExemptOperations?: string[]

    Server operation keys exempted from field-freeze checks (e.g. controlled server amendment operations).

    freezeAllFieldsInTerminalStates?: boolean

    Default true: records stored in a terminal state freeze all non-virtual fields and refuse Delete().

    frozenFieldsByState?: Record<string, string[]>

    Deny-list of fields frozen while the record's stored (pre-save) state equals key S (or '*' for all states).

    immutableAfterCreateFields?: string[]

    Fields that may be populated on Create (!entity.IsSaved) and never modified once saved.

    initialStates?: string[]

    Allowed status values when creating a new record (!entity.IsSaved).

    nonDeletableStates?: string[]

    Stored statuses in which Delete() is explicitly forbidden.

    statusField: string

    Exact field name on the entity holding the lifecycle status (e.g. 'Status').

    terminalStates?: string[]

    Terminal states: outbound transitions are blocked, and field edits / deletes are locked by default.

    transitions: IStateTransitionRule[]

    Directed transition edges. Keeping the same status (prior === next) is always treated as a non-transition.