M2-S1 — Entities, fields and the ticket’s status
Section titled “M2-S1 — Entities, fields and the ticket’s status”| Module | M2 — The data model |
| After this session you can | Write an entity dictionary and a status model that a builder can follow field by field, with a requirement behind every choice, and list what must be settled before go-live. |
| Time | Facilitated: 60 min · On your own: 60 min |
| Before you start | M1-S2: your signed BRD 1.0, above all the requirements register (A8) and the decisions D-01 to D-06. The design options job aid and the BRD and blueprint template (sections B1 to B4 and B13). |
| Your binder | You have: BRD 1.0 (signed), the process definition 0.1 with map 1, the traceability matrix’s first columns, the change-request register (CR-01 Logged). This session adds: blueprint 0.3, begun (B1 to B4, B13), and the matrix’s Data cells for Release 1. |
| Go deeper | Create and design an entity · Choose a field type · Protect a field · Change an entity safely |
◆ Orientation (1 min) — From sentences to records
Section titled “◆ Orientation (1 min) — From sentences to records”It is week 5 of the project. BRD 1.0 is signed: it says what Bayt Devices needs, in the business’s own words. A builder cannot build a sentence, though. They build entities with fields. In ACP you built one entity from a plan someone gave you (ACP M6-S1). Now you write that plan, and you decide what goes in it and why.
The plan is the second document of your binder: the solution blueprint, in the platform’s words, every row tied to a requirement of the BRD. Writing it is elaboration, not change: it adds detail the signed BRD left to design, and contradicts nothing in it (M1-S2).
After this session your blueprint has its first sections: the Support Tickets dictionary for Release 1, its status model, the protection decision, and the notes the builder must respect.
▤ Concept (12 min) — Deciding the data
Section titled “▤ Concept (12 min) — Deciding the data”Finding the entities
Section titled “Finding the entities”Read your register and underline the nouns. Each one is a candidate. Four questions sort them:
- Does the business keep many of them, each with its own data? Tickets: yes, about 400 a month, each with its title and status. That is an entity.
- Is it one piece of information about something else? The ticket’s title, its description: fields of the ticket.
- Is it one of a fixed set of values? Open, Closed, scores 1 to 5: options of a field, not entities.
- Is it a person, or a team of people? The customer, the representative, the desk: people already exist as users and groups of the tenant. You point at them with a field; you do not make an entity for them.
The trap is to make every noun an entity. The “solution” is a noun, but a ticket has one solution, written by one person at one step: it is a field (or a small group of fields) on the ticket. A thing earns its own entity when it has its own life: its own records, its own lists, its own changes over time, or links to several other things. In Release 2, the customer’s account (case file P1) passes that test: many tickets belong to one account, and the account has its own tier and manager.
Which module? A module is one application. Everything the support system needs goes in one module, Customer Support System, including the Release 2 entities. Put an entity in another module only when it belongs to another application with its own owners (for example a product catalogue owned by Sales); the next session shows how to use it from there.
Choosing the field type
Section titled “Choosing the field type”The type decides what people can enter, how it is checked, and what the field can do later in lists, filters, charts and reports. You choose from what the field must do, not from what it looks like.
| The field must hold… | Choose | Why it matters later |
|---|---|---|
| A short text the customer writes, in their own language | Localized Text | Kept in Arabic and English; a plain Text holds one value only |
| A longer description or comment | Long-text (or Localized Long Text for both languages) | Several lines |
| A number the system gives in order | Sequence Field | Assigned once, always unique, never typed |
| One of a fixed list of values | Category | Lists can be grouped, filtered, coloured and charted by it |
| A person who has an account | User | Notifications, @me filters and step owners can use it |
| A record of another entity | Reference | Links that stay right when names change (next session) |
| A date, or a date with a time | Date or Date-time | Calendar faces, deadlines, “this month” filters |
| An amount or a count | Number | Totals, averages, comparisons |
| A file or a photo | File or Image | Attached to the record |
| Several fields that belong together | Block (repeatable if there can be several rows) | Shown, hidden or protected as a group at each workflow step |
Two choices analysts get wrong most often:
- Category or Number for a score? A rating from 1 to 5 looks like a number, but the business will ask “how many 1s and 5s did we get?”, which is a grouping. A Category with the options 1 to 5 groups and charts naturally; a Number is right when you will add or average it. Say which question the field must answer, and the type follows.
- User or Text for a person? A typed name cannot be notified, cannot own a workflow step and
cannot be matched to
@me. Whenever the person has an account, use User.
Some values are calculated from others, such as the hours between opening and closing a ticket. The platform can calculate a field from a formula (an expression). You specify the rule in words (“resolution time = closing date minus opening date, in hours”) and write “the builder writes the formula”. You never write the formula yourself.
The rules on each field
Section titled “The rules on each field”For every field, specify:
- Required or not, and at which moment. “Required” on the entity means required always, from the very first save. A value that is filled in later in the process (the representative’s solution, the end date) must not be required on the entity; a workflow rule makes sure it is there at the right moment (Module 3).
- Unique if no two records may share the value (a serial number, an email).
- Multiple if it may hold several values (several products), or Repeatable if a whole group of fields repeats (several item lines).
- Default value where most records start the same way (status Open).
- Who fills it in: the customer, the desk, the representative, or the system.
And for the entity as a whole, choose the Main title (the field that names each record in lists, cards and pickers) and, optionally, a Sub title. The main title cannot be a field that holds several values, repeats, or is protected (below). For tickets, the number or the title are good main titles.
Decide early what is expensive to change
Section titled “Decide early what is expensive to change”Each record remembers the version of the structure it was saved with. Some changes after go-live are free; others create a new version and mark existing records Obsolete until someone upgrades them (you met the lifecycle states in ACP M4-S1).
| Safe to change later | Expensive later: records become Obsolete |
|---|---|
| Adding an optional field | Adding a required field, or making a field required |
| Renaming a field or the entity | Changing a field’s type |
| Labels, help text, layout | Turning Multiple or Repeatable on or off |
| Deleting a field | Turning Encrypt on or off |
| Adding, removing or changing workflow steps |
Two names are fixed for good once the entity exists: the entity’s and each field’s normalized name, the short English machine name (ACP M6-S1). So the analyst’s rule is: settle types, required rules, repeatability and protection before the builder starts. That is what the blueprint is for.
“Later” starts with the first records that matter. Bayt Devices’ pilot holds only test tickets, and they are archived when Release 1 replaces it in week 10. So every improvement you make to the pilot’s structure now costs nothing; the same change after week 10 means upgrading every stored ticket. Write each one down as a design note (blueprint B13), so the builder makes it before go-live and nobody undoes it afterwards.
Protecting a field
Section titled “Protecting a field”Ordinary access decides who can open a record. Some fields need more: only some of the people who can open the record may see the value. Osos offers two protections:
| Sensitive | Encrypt | |
|---|---|---|
| What others see | **** instead of the value, everywhere: lists, the record, history, reports, exports | The value is kept encrypted and shown only on request to people allowed |
| What it costs | Only people allowed can filter or sum on it; nobody can search it | Cannot be searched, filtered, summed, grouped or reported on, even by people allowed |
| Typical use | Salaries, phone numbers, notes most staff may not read | Identity numbers that must stay encrypted even in storage |
For each protected field you specify who may see it, as groups or people. Some fields cannot be protected: the main title (everyone who sees the record sees its title), references and whole blocks (the fields inside a block can be). Choose Sensitive unless the requirement is that the value is unreadable even in storage; Encrypt costs every report and filter on that field. Hiding a field at a workflow step is not protection: it only changes what one screen shows.
The status model
Section titled “The status model”A status is a Category field that says what the business thinks of a record right now: Open, In Progress, Responded, Duplicate, Closed. A good status model is:
- exclusive: a ticket is in exactly one status at a time;
- complete: every real situation has a status (a duplicate is not “closed for a normal reason”);
- owned: for each value, you say whose action makes it true, and when.
A status is not the workflow step. The step says whose turn it is (the desk, the representative, the manager); the status says what state the ticket is in for the business and the customer. They often move together, but not always: a ticket can be at the Help Desk step while its status is In Progress (sent back for checking) or Responded.
stateDiagram-v2 [*] --> Open : customer sends the ticket Open --> InProgress : desk passes it to a representative Open --> Duplicate : desk finds an open duplicate InProgress --> Responded : desk sends the checked solution Responded --> Closed : desk closes after the rating Duplicate --> Closed : desk closes Closed --> [*]
What to notice: every arrow names whose action moves the status. If an arrow has no owner, nobody will set it, and the status will lie.
So your blueprint states, for each value, the moment it becomes true and whose action that is. Your decisions log already fixes one meaning: Responded means solved, because a ticket is solved when the desk sends the checked solution (D-04). In Module 3 you decide how each value is kept true: a person sets it at a step, or an automation sets it when the ticket reaches or leaves a step. A value that is a judgement, such as Duplicate, stays with a person.
◇ Worked scenario (2 min) — Four decisions on Support Tickets
Section titled “◇ Worked scenario (2 min) — Four decisions on Support Tickets”Here is how an analyst reasons through four fields of Support Tickets. Decide each before you read the reasoning.
- Ticket title: Text or Localized Text? Localized Text. Bayt Devices serves customers in Arabic and English, and staff read tickets in both. Required: yes, from the first save (F-01: the customer gives a title). Locked for staff (NF-01), which is a workflow rule, not a field rule: note it for Module 3.
- Assigned to: required? No. The customer opens the ticket without knowing who will solve it; the desk fills it in (F-05). Making it required would force the customer to choose a representative. Type User, because the representative must be told (F-11) and see their own tickets (F-13).
- Evaluation score: Number or Category? Category, options 1 to 5, inside a Block Service evaluation with a Comment. The manager will count scores by value, and the block lets the workflow hide the whole evaluation until the customer is asked for it.
- The pilot asks the customer for a Start date. Keep it? No. No requirement needs the customer’s own date: every record already knows when it was created, to the second, and queries and reports can use that. F-16 (time from opening to closing) is better served by it. Removing the field is free now, while the pilot holds only test tickets, so the analyst writes it as a design note: pilot · Release 1 · why.
The habit to copy: every field points at a requirement. If you cannot name the requirement, question the field, even when it already exists.
⛏ Lab (38 min) — Entity dictionary, status model, protection and decide-early notes (B2 to B4, B13)
Section titled “⛏ Lab (38 min) — Entity dictionary, status model, protection and decide-early notes (B2 to B4, B13)”Goal. The first sections of your blueprint, version 0.3: the Support Tickets dictionary for Release 1 (B2), its status model (B3), the protection decision (B4) and the notes the builder must respect (B13). You write one entity completely; every other entity in the binder follows the same pattern.
Before you start. Your register (A8: F-01 to F-16, NF-01 to NF-05) and your decisions log (D-01 to D-06), or the reference versions you filed at the end of Part 1. The design options job aid. Copy the B2, B3, B4 and B13 headings from the template. Do not look at the hand-out or the worked solution below until step 8.
With a facilitator: you work on your own; the facilitator comes round and asks you to defend one field type and one required rule from a requirement ID. On your own: tick the five boxes under Check, then compare with the worked solution line by line.
Steps.
-
List the fields Support Tickets needs to meet F-01 to F-16 and NF-01. For each, write: Field · Type · Required (yes/no) · Default · Filled in by · Requirements · Note. The Release 2 fields come in the next session.
-
Group fields that belong together into blocks, and say why each block exists.
-
Choose the Main title and, if useful, a Sub title, with a reason.
-
Where a value is calculated (F-16), name the calculation in words and write “the builder writes the formula”.
-
Write the status model (B3), one row per value: Value · Meaning · Becomes true when · Set how. In Becomes true when, name whose action it is. In Set how, write “default” for the starting value, “by hand” for a judgement, and “M3-S2” for the others: you decide there.
-
Write B4: mark any field that needs Sensitive or Encrypt and who may see it; if none does, write “none, because…”.
-
Compare your dictionary with the pilot’s Support Tickets, below. For every difference, write a design note in B13: No. · Pilot · Release 1 · Why. Then write B13’s first paragraph: what the builder must not change after go-live without asking you.
Pilot field Type Required Ticket number Sequence Field (automatic) Ticket title Localized Text Yes Ticket description Localized Text (one line) Yes Ticket status Category: Open, In Progress, Responded, Duplicate, Closed; default Open Yes Assigned to User No Start date Date-time, typed by the customer Yes End date Date-time No Solution Block holding Solution (Localized Text, one line) No Service evaluation Block holding Evaluation score (Category 1 to 5) and Comment (Long-text) No -
Tick the boxes below, then read the hand-out and file it, and compare your slice with the worked solution. Write the reason for every difference you keep.
Check.
- Every field names at least one requirement, and a pilot field that meets none is removed or questioned.
- Fields filled in later in the process (solution, end date, assignee, evaluation) are not required on the entity.
- The people fields are User, not Text.
- The status model is exclusive and complete, and every value says whose action makes it true.
- B13 has a design note for each difference from the pilot, and a decide-early paragraph.
Pass condition. All five boxes are ticked, and your dictionary matches the worked solution’s nine fields in type and required-ness, allowing for differences whose reason you have written down.
If something goes wrong
| What you see | What to do |
|---|---|
| You made Customer a field the customer fills in | The person who opens a ticket is already known: the record’s Created by. No field needed. |
| You have an entity for the desk or the representatives | They are a group and users. Point at them; do not model them. |
| Ticket status has a value such as Waiting for manager | That is a step (whose turn), not a status. Keep the status for what the customer and the charts read. |
| You cannot decide Number or Category | Ask what question the field answers: “how many of each?” means Category; “what total or average?” means Number. |
| You kept Start date because the pilot has it | Ask which requirement needs it. None does: the record’s creation date already says when the ticket was opened. |
| You wrote who sets each status by automation | Too early: write whose action makes it true, and leave how to M3-S2. |
Hand-out: the rest of this part of the binder
Section titled “Hand-out: the rest of this part of the binder”These pages come from the reference binder: the same project’s documents, written by an experienced analyst. Read them after you have written your own slice. File them in your binder beside your pages, and trace them: check that every row names a requirement in your register.
B1. Module and entities (Release 1). Module: Customer Support System (one application, one owner: Customer Service).
| Entity | Release | Why it is an entity | Requirements |
|---|---|---|---|
| Support Tickets | 1 | Hundreds a month, each with its own data, status and route | F-01 to F-16, NF-01 to NF-05 |
Not entities: customers, desk members and representatives (users and a group, pointed at with User fields); the solution and the evaluation (blocks on the ticket); statuses (Category options). The Release 2 entities are added in M2-S2.
Traceability matrix (C2): the Data cells for Release 1. An empty cell is not allowed: write the design element, or “none” with the reason.
| ID | Data (B1 to B5) |
|---|---|
| F-01 | B2 Ticket title, Ticket description |
| F-02 | B2 Ticket number |
| F-03 | B3 Ticket status |
| F-04 | None: who claims a ticket is a workflow matter (Part 3) |
| F-05 | B2 Assigned to; B3 Duplicate |
| F-06 | B2 Solution |
| F-07 to F-11 | None: checking, approving, closing and telling people are workflow and automation (Part 3) |
| F-12 | B2 Service evaluation |
| F-13 | B2 Assigned to |
| F-14 | B3 Ticket status |
| F-15 | None: the report reads the fields above (Part 4) |
| F-16 | B2 End date, Resolution time |
| F-17 | None: moved to Release 2 as P4 (D-03) |
| NF-01 | B4 (no protection needed); who sees what is Parts 3 and 4 |
| NF-02 to NF-04 | None: phone use, and the time limits, are Parts 3 and 4 |
| NF-05 | B5 (next session) |
Model answer
B2. Support Tickets, Release 1 (module Customer Support System; main title Ticket number, sub title Ticket title: the number is what people quote, the title says what it is about)
| Field | Type | Required | Default | Filled in by | Requirements | Note |
|---|---|---|---|---|---|---|
| Ticket number | Sequence Field | (unique, automatic) | — | The system | F-02 | Never typed. |
| Ticket title | Localized Text | Yes | — | Customer | F-01 | Locked for staff once sent (NF-01): a workflow rule, Module 3. |
| Ticket description | Localized Long Text | Yes | — | Customer | F-01 | Several lines, in either language (DN-2). |
| Ticket status | Category: Open, In Progress, Responded, Duplicate, Closed | Yes | Open | See B3 | F-03, F-05, F-14 | B3. |
| Assigned to | User | No | — | Desk | F-05, F-11, F-13 | Not required: the customer cannot know it. |
| End date | Date-time | No | — | The system, when the desk closes the ticket | F-16 | How it is filled in: Module 3. |
| Resolution time | A calculated value, in hours: End date minus the record’s creation date; the builder writes the formula | — | — | The system | F-16 | The time records show lateness per step, not the time from opening to closing; M4-S1 charts this field. |
| Solution | Block holding Solution (Localized Long Text) | No | — | Representative, or the desk | F-06, F-07 | A block, so each step can hide or lock it whole. Several lines (DN-2). |
| Service evaluation | Block holding Evaluation score (Category 1 to 5) and Comment (Long-text) | No | — | Customer | F-12 | Category: the manager counts each score. |
B3. Ticket status (how each value is set: M3-S2)
| Value | Meaning | Becomes true when | Set how |
|---|---|---|---|
| Open | Received; nobody has worked on it yet | The customer sends the ticket | Default value |
| In Progress | A representative is working on it | The desk passes it to a representative | M3-S2 |
| Responded | Solved: the customer has the checked solution (D-04) | The desk sends the checked solution | M3-S2 |
| Duplicate | Same problem as a ticket already open | The desk judges it a duplicate, before closing it | By hand: a judgement |
| Closed | Finished; nothing more will happen | The desk closes the ticket | M3-S2 |
Duplicate is followed by Closed; the ticket’s history keeps both.
B4. Protection. None in Release 1. The tickets hold only what customers write about their problem, and no requirement keeps a value from people who may open the record. NF-01 is met by who sees which tickets and by locking fields at steps (Modules 3 and 4); hiding a field at a step is display only, not protection.
B13. Design notes. Decide early: do not change after go-live without asking the analyst. The types of Ticket status and Evaluation score; keeping Assigned to, Solution, End date and every other field filled in later optional on the entity; the main title.
| No. | Pilot | Release 1 | Why |
|---|---|---|---|
| DN-1 | The customer types a Start date | Removed; the record’s creation date is the opening time | No requirement needs the customer’s own date; the creation date is exact (F-16). |
| DN-2 | Ticket description and the Solution inside its block are one line of localized text | Localized Long Text | Customers describe faults, and representatives explain solutions, in several lines (E). |
Both are free now, because Release 1 starts with no stored tickets. After week 10, DN-2 would be a type change: every stored ticket would go obsolete until upgraded. That is the decide-early rule made concrete.
Your binder now
- Blueprint 0.3, begun: B1 (Release 1) filed; B2 Support Tickets, B3 Ticket status, B4 and B13 written.
- Every field has a type, required or not, who fills it in, and a requirement.
- Every difference from the pilot is a numbered design note with its reason.
- The traceability matrix has its Data cells for Release 1, with “none” and a reason where a row needs no data.
Compare with the worked solution and the hand-out above: together they are the reference binder’s B1 to B4 and B13 at this point.
✓ Practice (6 min) — Check your understanding
Section titled “✓ Practice (6 min) — Check your understanding”The case file mentions customers, tickets, representatives, solutions and statuses. Which of these is an entity in Release 1?
Check your answer
The correct answer is A. Open the explanation under each option to see why.
The manager asks: “How many tickets were rated 1, 2, 3, 4 and 5 last month?” Which type should Evaluation score have?
Check your answer
The correct answer is C. Open the explanation under each option to see why.
Three months after Release 1 goes live, with 1,200 tickets stored, the director asks to make Assigned to required, “so no ticket is ever unassigned”.
What do you tell her?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
A later version adds a Courier cost field to tickets, for parts sent by courier. Only the desk and the support manager may read it, and the manager wants the month’s total. Which protection?
Check your answer
The correct answer is C. Open the explanation under each option to see why.
A colleague adds the status value Waiting for manager approval. What is the problem?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
↺ Recap (1 min) — What you can do now
Section titled “↺ Recap (1 min) — What you can do now”You can now find the entities in a register, choose each field’s type and rules from what it must do, decide early what would be expensive to change, protect what must be hidden, and design a status model that is not a copy of the workflow. You also reconciled your design with a system that already exists: every difference is a design note with its reason, made while it is still free.
Next. In M2-S2 your data stops being one entity: Release 2 adds customer accounts and site visits, and you specify how records link, which values are copied across links, and when a virtual entity is the answer. You also take CR-01, logged last week, to its next step: you identify what it touches.