Member Junction
    Preparing search index...

    Inputs for createScoringProcess. The required pair — modelId and targetEntityName — plus exactly one scope selector is the minimum to create an on-demand scoring Record Process; everything else has a sensible default (ID primary key, numeric score, generated name).

    Two output modes, driven by whether outputField is supplied:

    • Write-back (outputField present): a run writes the prediction into that target column AND a MJ: ML Model Scoring Bindings lineage row (Mode='OnDemand') is created.
    • Generic (outputField omitted): a run records its predictions in the process run history (MJ: Process Run Details) only — no write-back column and no binding.
    interface CreateScoringProcessOptions {
        contextUser?: UserInfo;
        modelId: string;
        name?: string;
        outputField?: string;
        primaryKeyField?: string;
        provider?: IMetadataProvider;
        scope: ScoringScope;
        targetEntityName: string;
        valueKind?: ScoringValueKind;
    }
    Index

    Properties

    contextUser?: UserInfo

    Server-side context user (required for data isolation + audit on the saved row).

    modelId: string

    The MJ: ML Models id to score with.

    name?: string

    Optional Record Process name; a descriptive default is generated when omitted.

    outputField?: string

    Optional. The target-entity column to write the prediction into (e.g. 'RenewalScore'). Omit for generic output — a run's predictions are recorded in the process run history (MJ: Process Run Details) only; no write-back column and no scoring binding are created.

    primaryKeyField?: string

    Primary-key field on the target entity (defaults to 'ID').

    Metadata provider to create the entity object against (defaults to the global).

    scope: ScoringScope

    The records a run scores. Populate EXACTLY ONE of: filter, viewId, listId, all.

    targetEntityName: string

    The entity whose rows are scored (e.g. 'Memberships').

    valueKind?: ScoringValueKind

    Which prediction value to write — numeric 'score' (default) or 'class' label.