NOTICE: All information contained herein is, and remains the property of
TechnoCore Automate.
Credit-style scoring engine. Loads variable/attribute definitions from
def_scorecard, reads a primary context record, evaluates each variable
against the bureau/simulation data, and returns an integer score.
All credit lending institutions like banks have complex credit models that
use bureau and past loan performances to determine a credit score of an
application or an existing customer. The model outputs a score that
represents how likely the lender will be repaid on time if they give a
person a loan or a credit card.
See ObjServiceExperian for live bureau integration.
compute_score_run(scorecard, context, context_table, inbound_guid, ...)Main scoring entry point. Loads scorecard variable rows from def_scorecard
filtered by Package IN ('{package}', 'CORE', ''), reads the context record
from the primary table defined in def_scorecard_context, evaluates each
variable, and accumulates the score.
Package resolution: rows with the active package take priority over
CORE rows, enabling package-specific overrides of individual variables.
compute_score(param1, param2, param3, param4)Thin wrapper called by service invocations. Delegates to compute_score_run.
compute_bulk(scorecard, list, context_table, score_insert)Batch-scores a list of GUIDs, writing results back to context_table.
_ensure_scorecard_table(table_name)Creates data_scorecard_{scorecard} on the fly if it does not yet exist.
Each scorecard gets its own tracking table named after it
(e.g. data_scorecard_virtual_score), avoiding a single monolithic table.
Called automatically before the first INSERT for each scorecard.
Results are written to data_scorecard_{scorecard_name} where
scorecard_name is the lower-cased scorecard code. The table is created
automatically on first use with columns:
| Column | Type | Description |
|---|---|---|
TrackId |
INT AUTO_INCREMENT | PK |
Rdg |
VARCHAR(50) | Random decision group |
Scorecard |
VARCHAR(100) | Scorecard code |
Context |
VARCHAR(255) | Context identifier |
Guid |
VARCHAR(100) | Run UUID |
CreateTime |
DATETIME | Timestamp |
Score |
VARCHAR(50) | Computed score |
TTR |
VARCHAR(50) | Time-to-run (seconds) |
Param1 |
VARCHAR(255) | Expected score (for testing) |
Param2 |
VARCHAR(255) | Input GUID |
Param3 |
VARCHAR(255) | PASS / FAIL / test result |
Module |
VARCHAR(255) | Module linkage |
| Table | Purpose |
|---|---|
def_scorecard |
Variable/attribute definitions with scores |
def_scorecard_context |
Maps scorecard → primary data table |
data_scorecard_{name} |
Per-scorecard tracking (auto-created) |
cythonize -3 -a -i ObjServiceScorecard.py
Updated: 2026-03-01