Skip to content

M2-S1 — Entities, fields and the ticket’s status

Section titled “M2-S1 — Entities, fields and the ticket’s status”
ModuleM2 — The data model
After this session you canWrite 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.
TimeFacilitated: 60 min · On your own: 60 min
Before you startM1-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 binderYou 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 deeperCreate 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”

Read your register and underline the nouns. Each one is a candidate. Four questions sort them:

  1. 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.
  2. Is it one piece of information about something else? The ticket’s title, its description: fields of the ticket.
  3. Is it one of a fixed set of values? Open, Closed, scores 1 to 5: options of a field, not entities.
  4. 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.

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…ChooseWhy it matters later
A short text the customer writes, in their own languageLocalized TextKept in Arabic and English; a plain Text holds one value only
A longer description or commentLong-text (or Localized Long Text for both languages)Several lines
A number the system gives in orderSequence FieldAssigned once, always unique, never typed
One of a fixed list of valuesCategoryLists can be grouped, filtered, coloured and charted by it
A person who has an accountUserNotifications, @me filters and step owners can use it
A record of another entityReferenceLinks that stay right when names change (next session)
A date, or a date with a timeDate or Date-timeCalendar faces, deadlines, “this month” filters
An amount or a countNumberTotals, averages, comparisons
A file or a photoFile or ImageAttached to the record
Several fields that belong togetherBlock (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.

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.

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 laterExpensive later: records become Obsolete
Adding an optional fieldAdding a required field, or making a field required
Renaming a field or the entityChanging a field’s type
Labels, help text, layoutTurning Multiple or Repeatable on or off
Deleting a fieldTurning 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.

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:

SensitiveEncrypt
What others see**** instead of the value, everywhere: lists, the record, history, reports, exportsThe value is kept encrypted and shown only on request to people allowed
What it costsOnly people allowed can filter or sum on it; nobody can search itCannot be searched, filtered, summed, grouped or reported on, even by people allowed
Typical useSalaries, phone numbers, notes most staff may not readIdentity 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.

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.

  1. 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.
  2. 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).
  3. 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.
  4. 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.

  1. 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.

  2. Group fields that belong together into blocks, and say why each block exists.

  3. Choose the Main title and, if useful, a Sub title, with a reason.

  4. Where a value is calculated (F-16), name the calculation in words and write “the builder writes the formula”.

  5. 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.

  6. Write B4: mark any field that needs Sensitive or Encrypt and who may see it; if none does, write “none, because…”.

  7. 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 fieldTypeRequired
    Ticket numberSequence Field(automatic)
    Ticket titleLocalized TextYes
    Ticket descriptionLocalized Text (one line)Yes
    Ticket statusCategory: Open, In Progress, Responded, Duplicate, Closed; default OpenYes
    Assigned toUserNo
    Start dateDate-time, typed by the customerYes
    End dateDate-timeNo
    SolutionBlock holding Solution (Localized Text, one line)No
    Service evaluationBlock holding Evaluation score (Category 1 to 5) and Comment (Long-text)No
  8. 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 seeWhat to do
You made Customer a field the customer fills inThe 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 representativesThey are a group and users. Point at them; do not model them.
Ticket status has a value such as Waiting for managerThat is a step (whose turn), not a status. Keep the status for what the customer and the charts read.
You cannot decide Number or CategoryAsk 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 itAsk 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 automationToo 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).

EntityReleaseWhy it is an entityRequirements
Support Tickets1Hundreds a month, each with its own data, status and routeF-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.

IDData (B1 to B5)
F-01B2 Ticket title, Ticket description
F-02B2 Ticket number
F-03B3 Ticket status
F-04None: who claims a ticket is a workflow matter (Part 3)
F-05B2 Assigned to; B3 Duplicate
F-06B2 Solution
F-07 to F-11None: checking, approving, closing and telling people are workflow and automation (Part 3)
F-12B2 Service evaluation
F-13B2 Assigned to
F-14B3 Ticket status
F-15None: the report reads the fields above (Part 4)
F-16B2 End date, Resolution time
F-17None: moved to Release 2 as P4 (D-03)
NF-01B4 (no protection needed); who sees what is Parts 3 and 4
NF-02 to NF-04None: phone use, and the time limits, are Parts 3 and 4
NF-05B5 (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)

FieldTypeRequiredDefaultFilled in byRequirementsNote
Ticket numberSequence Field(unique, automatic)—The systemF-02Never typed.
Ticket titleLocalized TextYes—CustomerF-01Locked for staff once sent (NF-01): a workflow rule, Module 3.
Ticket descriptionLocalized Long TextYes—CustomerF-01Several lines, in either language (DN-2).
Ticket statusCategory: Open, In Progress, Responded, Duplicate, ClosedYesOpenSee B3F-03, F-05, F-14B3.
Assigned toUserNo—DeskF-05, F-11, F-13Not required: the customer cannot know it.
End dateDate-timeNo—The system, when the desk closes the ticketF-16How it is filled in: Module 3.
Resolution timeA calculated value, in hours: End date minus the record’s creation date; the builder writes the formula——The systemF-16The time records show lateness per step, not the time from opening to closing; M4-S1 charts this field.
SolutionBlock holding Solution (Localized Long Text)No—Representative, or the deskF-06, F-07A block, so each step can hide or lock it whole. Several lines (DN-2).
Service evaluationBlock holding Evaluation score (Category 1 to 5) and Comment (Long-text)No—CustomerF-12Category: the manager counts each score.

B3. Ticket status (how each value is set: M3-S2)

ValueMeaningBecomes true whenSet how
OpenReceived; nobody has worked on it yetThe customer sends the ticketDefault value
In ProgressA representative is working on itThe desk passes it to a representativeM3-S2
RespondedSolved: the customer has the checked solution (D-04)The desk sends the checked solutionM3-S2
DuplicateSame problem as a ticket already openThe desk judges it a duplicate, before closing itBy hand: a judgement
ClosedFinished; nothing more will happenThe desk closes the ticketM3-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.PilotRelease 1Why
DN-1The customer types a Start dateRemoved; the record’s creation date is the opening timeNo requirement needs the customer’s own date; the creation date is exact (F-16).
DN-2Ticket description and the Solution inside its block are one line of localized textLocalized Long TextCustomers 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”
PracticeChoose one answer.

The case file mentions customers, tickets, representatives, solutions and statuses. Which of these is an entity in Release 1?

  1. Explanation for A

    ✓ Correct

    Correct: the business keeps many tickets, each with its own data and its own life. See Finding the entities.

  2. Explanation for B

    ✗ Incorrect

    Not this one: representatives are people with accounts; a User field points at them. See Finding the entities.

  3. Explanation for C

    ✗ Incorrect

    Not this one: a ticket has one solution written at one step, so it is a field or block on the ticket. See Finding the entities.

Check your answer

The correct answer is A. Open the explanation under each option to see why.

PracticeChoose one answer.

The manager asks: “How many tickets were rated 1, 2, 3, 4 and 5 last month?” Which type should Evaluation score have?

  1. Explanation for A

    ✗ Incorrect

    Not this one: the question is a count per value, a grouping; Number suits totals and averages. See Choosing the field type.

  2. Explanation for B

    ✗ Incorrect

    Not this one: free text cannot be counted per score; the comment field already takes free words. See Choosing the field type.

  3. Explanation for C

    ✓ Correct

    Correct: a Category groups and charts by value, which is exactly the manager’s question. See Choosing the field type.

Check your answer

The correct answer is C. Open the explanation under each option to see why.

Scenario

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”.

PracticeChoose one answer.

What do you tell her?

  1. Explanation for A

    ✗ Incorrect

    Not this one: making a field required is a breaking change; tickets saved without it become obsolete. See Decide early.

  2. Explanation for B

    ✓ Correct

    Correct: the real need is “assigned before it leaves the desk for a representative”, which a workflow rule meets without either cost. See The rules on each field.

  3. Explanation for C

    ✗ Incorrect

    Not this one: it can be done; it is expensive, and there is a better design for the real need. See Decide early.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

PracticeChoose one answer.

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?

  1. Explanation for A

    ✗ Incorrect

    Not this one: hiding a field at a step only changes one screen; lists, history and reports still show it. See Protecting a field.

  2. Explanation for B

    ✗ Incorrect

    Not this one: an encrypted field cannot be summed or reported on by anyone, so the monthly total fails. See Protecting a field.

  3. Explanation for C

    ✓ Correct

    Correct: others see ****, and the people allowed to read it can still filter and sum on it. See Protecting a field.

Check your answer

The correct answer is C. Open the explanation under each option to see why.

PracticeChoose one answer.

A colleague adds the status value Waiting for manager approval. What is the problem?

  1. Explanation for A

    ✗ Incorrect

    Not this one: the value describes whose turn it is, which the workflow step already says. See The status model.

  2. Explanation for B

    ✓ Correct

    Correct: steps say whose turn it is; statuses say what state the ticket is in. Mixing them makes both lie. See The status model.

  3. Explanation for C

    ✗ Incorrect

    Not this one: option names can be written freely; the problem is what the value means. See The status model.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

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.