ontoloji.orgOpen Reference Hub

Status Code & Business Glossary Mapping

Binding terse numeric or character flags (STAT = 4, SPEC_CODE = "B2") in operational tables to verified business states and calculation inclusion rules.

Why It Matters for Enterprise AI

The most dangerous AI errors in enterprise operations come from misinterpreting undocumented status flags rather than syntax errors.

Architectural Context & Execution Mechanics

No foundation model knows what CUSTOM_FLAG_2 = 7 means in your plant. Recording status semantics once in the ontology ensures every assistant filters active, blocked, and cancelled records identically.

Typical Production Failure Without an Ontology

Asked for open orders, an LLM writes WHERE STATUS = 1 and misses all partially shipped orders stored under STATUS = 2.

Semantic state mapping over numeric ERP flags
enum OrderState on erp.ORD_HDR.STAT {
  1 = Confirmed    [open: true,  shippable: false]
  2 = PartialShip  [open: true,  shippable: true]
  3 = QualityHold  [open: true,  shippable: false]
  8 = Closed       [open: false, shippable: false]
}
Related Engineering Guide

Connecting SAP, Odoo, Dynamics, NetSuite, Logo & Netsis ERPs to AI via Ontology

Mapping real-world ERP schemas, fiscal-period tables, multi-currency rules, and unit conversions into a clean zero-copy ontology.

Read guide (11 min read)

Related Ontology Concepts

Open License (CC BY 4.0) · Cite This Page

Free to reference in engineering docs, ADRs, articles, and course syllabi with attribution.

[Status Code & Business Glossary Mapping — Ontoloji.org](https://ontoloji.org/en/glossary/status-codes-business-glossary)