Apply the Business Central data process model

Completed

The Business Central data process model separates configuration, reusable business entities, work in progress, and historical results. This separation makes state changes visible and gives each object a predictable lifecycle.

Trace data through the process

Map a process before you select AL object types. A typical process uses these responsibilities:

Data responsibility Purpose Typical lifecycle
Setup Defines company policy and defaults. Few records that administrators maintain.
Master Identifies reusable business entities. Long-lived records referenced by transactions.
Supplemental Adds reusable details to master records. Changes with the related master record.
Document Captures a business event before processing. Editable, reviewed, released, and processed.
Journal Collects entries for batch validation and posting. Temporary work that posting consumes.
Ledger entry Preserves the financial or operational result. Append-only history with limited correction paths.
Register Groups entries created by one processing operation. Permanent audit and navigation record.

For an inspection process, setup stores number series, equipment is master data, an inspection request is a document, and inspection entries preserve processed results. A future register could group every entry created by one processing run.

Assign lifecycle ownership

Decide which record owns each state and relationship. A document header owns shared identity, business entity, date, and status. Document lines own repeated details and use the header number as part of a compound primary key. Resulting entries copy the values needed for history instead of depending on an editable source document.

This ownership prevents ambiguous state. For example, don't store a Released Boolean independently on every line when the header releases the entire document. Don't calculate historical descriptions only from current master data because the master description can change after processing.

Place business logic with its responsibility

Put field-level invariants in tables so pages, APIs, reports, and codeunits receive the same validation. Use table relations for valid references and field triggers for dependent defaults. Put multi-record transitions, such as release and processing, in a codeunit because the operation coordinates a header, lines, and entries.

Pages control presentation and action availability, but page properties aren't a security or data-integrity boundary. A page can disable editing for a released document while table and codeunit logic still validates the state for callers outside that page.

For more information, see Development in AL.