---
id: change/bcquality/237
type: change
title: "#237 knowledge(data-modeling): keep business state independent of Job Queue lifetime"
summary: A new knowledge article explains how to preserve business state independently of Job Queue lifetime by storing it on business-owned records rather than relying on Job Queue Entry existence as a status indicator. The article includes good and bad code examples and adds discovery logic to the data-modeling review skill.
tier: official
language: en
tags:
  - feature
  - main
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-21T00:48:29.333Z"
  flags: []
generated:
  at: "2026-10-29T21:26:59.577Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: c3f4895ca4de6f08124eab02658adfd2a67fbf15
evidence:
  - kind: code
    url: https://github.com/microsoft/BCQuality/pull/237
    title: "microsoft/BCQuality#237: knowledge(data-modeling): keep business state independent of Job Queue lifetime"
    date: "2026-10-20"
    commit: c3f4895ca4de6f08124eab02658adfd2a67fbf15
    t: null
    quote: Store state that must survive execution cleanup on its business owner or a domain record with the required lifetime.
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines:
    - guideline/microsoft/knowledge/data-modeling/business-state-must-have-a-domain-owner
    - guideline/microsoft/skills/review/al-data-modeling-review
  changes: []
number: 237
repo: microsoft/BCQuality
source_id: bcquality-prs
url: https://github.com/microsoft/BCQuality/pull/237
kind: pr
base_branch: main
major: null
merged_at: "2026-10-20T08:52:14Z"
author: RaimondStokkel
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 5
  additions: 190
  deletions: 4
  al: 4
apps: []
objects_touched: []
objects_unjoined:
  - path: microsoft/knowledge/data-modeling/business-state-must-have-a-domain-owner.bad.al
    status: added
    reason: not-in-snapshot
  - path: microsoft/knowledge/data-modeling/business-state-must-have-a-domain-owner.good.al
    status: added
    reason: not-in-snapshot
  - path: microsoft/knowledge/data-modeling/business-state-must-have-a-domain-owner.md
    status: added
    reason: not-in-snapshot
  - path: microsoft/skills/review/al-data-modeling-review.md
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items: []
systems:
  - development
quote: Store state that must survive execution cleanup on its business owner or a domain record with the required lifetime.
joined_against:
  major: null
  commit: null
---

# #237 knowledge(data-modeling): keep business state independent of Job Queue lifetime

> A new knowledge article explains how to preserve business state independently of Job Queue lifetime by storing it on business-owned records rather than relying on Job Queue Entry existence as a status indicator. The article includes good and bad code examples and adds discovery logic to the data-modeling review skill.

[Pull request](https://github.com/microsoft/BCQuality/pull/237) · merged into `main` on 2026-10-20 by RaimondStokkel · 5 files (+190 -4), 4 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Deleting a Job Queue Entry can lose business state when the entry is the only evidence of an unresolved condition
- State that must survive cleanup belongs on the business owner or a domain record with the right lifetime
- Job Queue Entry should run the work and reference the owner record
- Data-modeling review gains discovery cues for existence reads and cleanup paths
- A finding needs an identified business consumer and a deletion path that changes its result; a FlowField or table extension name alone is not enough

## AL objects touched

- `microsoft/knowledge/data-modeling/business-state-must-have-a-domain-owner.bad.al`: added, not in the BC? snapshot yet
- `microsoft/knowledge/data-modeling/business-state-must-have-a-domain-owner.good.al`: added, not in the BC? snapshot yet
- [`microsoft/knowledge/data-modeling/business-state-must-have-a-domain-owner.md`](../../guidelines/microsoft/knowledge/data-modeling/business-state-must-have-a-domain-owner.md): added, not in the BC? snapshot yet
- [`microsoft/skills/review/al-data-modeling-review.md`](../../guidelines/microsoft/skills/review/al-data-modeling-review.md): modified, not in the BC? snapshot

## Context

- Systems: development
- From the description: "Store state that must survive execution cleanup on its business owner or a domain record with the required lifetime."

Source: metadata of a merged pull request in microsoft/BCQuality (bcquality): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
