Skip to content

M2-S1 — The Onboarding module and its seam: a proxy IT can write through

Section titled “M2-S1 — The Onboarding module and its seam: a proxy IT can write through”
ModuleM2 — Data across modules
After this session you canBuild a second module and connect it to the first through a proxy whose limits you set on the source.
TimeFacilitated: 59 min · On your own: 59 min
Before you startM1-S2: your architecture (module map, seams, names). Signed in as yourself; Yusuf Nader in a private window.
Go deeperVirtual entities: control what a proxy allows · Modules · Virtual entities: model and API

◆ Orientation (1 min) — From a page to a working seam

Section titled “◆ Orientation (1 min) — From a page to a working seam”

Your architecture says IT owns a module of its own, sees new hires without copying them, and records each new hire’s company email where HR can see it. In ACD you built a read-only proxy inside one module. Here the proxy crosses a module boundary, and it lets the other team change one field and nothing else. You decide that limit on the source, in HR’s module, because the owner of the data owns the contract.

▤ Concept (3 min) — A proxy is a contract set on the source

Section titled “▤ Concept (3 min) — A proxy is a contract set on the source”

The seam has two owners. HR owns Employees and therefore the proxy view, a special view on Employees that sets the most the proxy may ever do. IT owns the proxy entity, New Hires, in its own module, and the views and permissions built on it.

flowchart LR
  subgraph R["Recruitment System (HR)"]
    E["Employees<br/>(source)"] --> PV["Proxy view: Onboarding feed<br/>4 fields; edit: Company email only"]
  end
  subgraph O["Employee Onboarding (IT)"]
    NH["New Hires<br/>(Virtual Proxy Entity)"] --> V["View: IT onboarding desk<br/>for the IT group"]
  end
  PV --> NH

What to notice: everything IT can ever do through the seam is decided in the proxy view on HR’s side; IT’s own views can only narrow it.

  • Which records. All of the source, or those a saved query selects.
  • Which fields. Only the fields chosen in the proxy view reach the proxy.
  • Which operations. A new proxy is read-only. Turning on Editing entries lets people change records through the proxy; Creating new entries and Archive entries work the same way. The proxy view only switches each operation on or off; which fields can be edited is chosen in the views built on the proxy.

Changes made through the proxy are saved on the source record, so the source’s own rules, required fields, workflow locks and history apply. A view built on the proxy can show less than the proxy view allows, never more, and narrowing the proxy view later takes effect everywhere at once. Access to the proxy itself comes from the proxy entity’s permissions, not from the proxy view. Once a proxy is linked to a proxy view, it stays linked: you can switch to another proxy view on the same source, never remove the link.

Two behaviours surprise first-time designers:

  • A change that would take the record out of the proxy’s scope is refused. If the proxy view selected only employees without a company email, typing a company email through the proxy would push the record out of scope, so the save fails.
  • The source’s workflow still rules. A proxy record’s fields lock where the source’s current step locks them, and a proxy record cannot be edited at all once its source record’s workflow has finished.
  • Records follow the source after a short delay. A new employee appears in New Hires a moment after HR’s reaction creates it, not in the same instant. Design for it: nothing should assume the proxy record exists the instant the source record is saved.

⛏ Lab (22 min) — Create the Employee Onboarding module

Section titled “⛏ Lab (22 min) — Create the Employee Onboarding module”

Goal. The Employee Onboarding module, administered by IT, with its Onboarding Checklists entity, exactly as your architecture names them.

Before you start. Signed in as yourself.

  1. Open Administration › Applications › Modules and select Add Module.

  2. Name Employee Onboarding, Arabic تهيئة الموظفين الجدد. Check that the Normalized name reads employee_onboarding.

  3. Under Sharing, keep Sharing level Public. Pick an icon.

  4. Under Administration Access, choose the group IT. Select DONE.

  5. Open the new module, select the Entities tab, and add a data entity: Name Onboarding Checklists, Arabic قوائم التهيئة; Single Name Onboarding checklist, Plural Name Onboarding checklists. Check the normalized name onboarding_checklists. Create it.

  6. On its Structure tab, add these fields and save with Save and Save Changes:

    FieldTypeSettings
    Employee nameTextRequired; the entity’s main title
    Employee emailText
    Start dateDate
    Laptop readySwitch
    Accounts readySwitch
    Checklist statusCategoryOptions Open and Done; default Open

Screenshot pending The Structure tab of Onboarding Checklists with its six fields, in the Employee Onboarding module What to notice: the checklist stores the employee’s name and email as plain values; it does not point at HR’s Employees, which keeps the two modules independent.

Check.

  • Employee Onboarding exists with normalized name employee_onboarding and IT under Administration Access.
  • Onboarding Checklists is in that module with normalized name onboarding_checklists.
  • Its six fields have the types in the table, and Checklist status defaults to Open.
  • No field of Onboarding Checklists refers to an entity of Recruitment System.

Pass condition. The module and entity exist with the architecture’s normalized names, and nothing in them points into Recruitment System.

If something goes wrong

What you seeWhat to do
The normalized name ends in a numberThe name was used before in this space. Keep it, and correct the name in your architecture document, because later sessions read it.
Save greys out after the date fieldUse the Calculated on-and-off workaround above.
IT is not offered under Administration AccessThe starter’s groups are missing; ask for the starter to be reset.
Model answer

The module list shows Employee Onboarding beside Recruitment System. Its Permissions tab lists IT. Its Entities tab holds Onboarding Checklists with Employee name (Text, required, main title), Employee email (Text), Start date (Date), Laptop ready and Accounts ready (Switch) and Checklist status (Category, Open by default). You fill these checklists automatically in M3-S1.

⛏ Lab (26 min) — The New Hires proxy, editable in one field

Section titled “⛏ Lab (26 min) — The New Hires proxy, editable in one field”

Goal. New Hires in IT’s module shows HR’s employees; IT can type the company email and nothing else; the email lands on HR’s Employees record.

Before you start. The starter’s Employees entity holds two employees, Karim Saleh and Mona Aziz, without a company email.

The contract, on HR’s side

  1. Open Recruitment System › Employees › Views › New View. Name Onboarding feed.
  2. Under Type & source, set View type to Proxy View. In Fields, choose Full name, Email, Phone number and Company email. Leave the query empty: every employee.
  3. Turn on Editing entries. Leave Creating new entries and Archive entries off. Save. (A proxy view has only these switches; you choose the editable field on IT’s side, in step 8.)

The proxy, on IT’s side

  1. Open Administration › Applications › Data Entities and select Add Data Entity. Name New Hires, Arabic الموظفون الجدد; Single Name New hire; Choose Module Employee Onboarding. Check the normalized name new_hires.
  2. In Data Entity Type, choose Virtual Proxy Entity. In Choose Entity, expand Employees and pick the proxy view Onboarding feed. Select Create.
  3. Open New Hires › Views › New View. Name IT onboarding desk, Source view Entries, all four fields. Under Appearance, turn on Pin to sidebar.
  4. Access Permission: Authenticated, Select groups IT.
  5. Turn on Entries list with a Table view of the four fields, and Entries details. Turn on Editing entries with Company email editable and an After Save. Save, then Publish.

Screenshot pending The Add Data Entity dialog with Data Entity Type set to Virtual Proxy Entity and the Onboarding feed proxy view picked under Employees What to notice: you pick the proxy view, not just the entity; picking only the entity would create a read-only proxy view covering every field.

Prove it

  1. In the private window, sign in as Yusuf Nader. Open IT onboarding desk: Karim Saleh and Mona Aziz are listed.
  2. Open Karim Saleh and edit him: only Company email can be changed. Enter karim.saleh@meridian.example.com and save.
  3. As yourself, open Administration › Applications › Data Entities › Employees and open Karim Saleh: the company email is there.

Screenshot pending The IT onboarding desk as Yusuf Nader, editing Karim Saleh with only the Company email field open for input What to notice: the other three fields are read-only, because the proxy view allowed only Company email; the saved value lands on HR’s Employees record.

Check.

  • Onboarding feed on Employees is a Proxy View with four fields and Editing entries on; IT onboarding desk leaves only Company email editable.
  • New Hires is a Virtual Proxy Entity in Employee Onboarding, linked to Onboarding feed.
  • IT onboarding desk is published for IT and pinned to the sidebar.
  • As Yusuf Nader you could change Company email and nothing else.
  • The company email appears on the Employees record.

Pass condition. A change made by Yusuf Nader through New Hires is visible on HR’s Employees record, and no other field of the record can be changed through the proxy.

If something goes wrong

What you seeWhat to do
No Proxy View in View typeYour platform version may not have proxy views. Build the proxy on the entity alone (read-only) and note in your architecture that the write-through seam needs a newer version.
Yusuf Nader cannot edit at allEditing entries is off in the proxy view or in IT onboarding desk; both must allow it.
New Hires is emptyThe proxy has not caught up yet: wait a moment and reload. If it stays empty, check Choose Entity points at Onboarding feed.
Yusuf Nader does not see the viewIt is not published, or IT is not under Select groups.
The save is refusedThe change would take the record out of the proxy’s scope, a required field of Employees is empty on that record, or the employee’s own workflow has finished (a proxy record cannot be edited then).
Model answer

The seam is two pieces with two owners. HR’s Onboarding feed proxy view is the contract: four fields, edit allowed on Company email only, no create, no archive. IT’s New Hires proxy entity and its IT onboarding desk view sit in IT’s module and can only narrow that contract. Yusuf’s edit is saved on the Employees record itself, so HR sees it at once in Employees, and Employees’ own required fields and history still apply. No data was copied, and the two modules do not refer to each other.

◇ Worked scenario (1 min) — The scope that refused its own edit

Section titled “◇ Worked scenario (1 min) — The scope that refused its own edit”

A builder at another company makes a proxy view Awaiting company email on Employees, whose query selects employees whose Company email is empty, and lets IT edit Company email through it. IT reports that every save fails. Pause and predict why before you read on.

What happens. IT types an address and saves. The save would give the record a company email, so it would no longer match the query: the record would leave the proxy’s scope. The platform refuses a change that takes a record out of scope, so the save fails.

Two fixes, and the choice. The builder could drop the query, as you did, and let IT sort the list by Company email in its own view; or keep the query and let HR, not IT, fill the email on the source. The requirement (R-03) says IT records it, so the first fix is right: scope with a condition that the editable field cannot change.

The lesson. Never scope a proxy view on a field that the proxy lets people edit.

✓ Practice (5 min) — Check your understanding

Section titled “✓ Practice (5 min) — Check your understanding”
PracticeChoose one answer.

IT asks to also correct the employee’s phone number through New Hires. Where is that decided?

  1. Explanation for A

    ✗ Incorrect

    Not this one: a view on the proxy can only narrow what the proxy view allows, never widen it. See what the proxy view decides.

  2. Explanation for B

    ✓ Correct

    Correct: the proxy view is the ceiling, and it belongs to the source’s owner. See who owns what.

  3. Explanation for C

    ✗ Incorrect

    Not this one: permissions decide who may open the proxy, not which fields can be changed through it. See what the proxy view decides.

Check your answer

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

PracticeChoose one answer.

A reaction creates an Employees record and, in the same moment, a second reaction looks the new employee up in New Hires. It finds nothing. Why?

  1. Explanation for A

    ✓ Correct

    Correct: the proxy record appears a moment after the source record is saved, so nothing should rely on it existing at once. See what it refuses, and what it delays.

  2. Explanation for B

    ✗ Incorrect

    Not this one: read-only limits what people change through the proxy, not which source records it shows. See what the proxy view decides.

  3. Explanation for C

    ✗ Incorrect

    Not this one: virtual entities are used like any other entity; the gap is only timing. See what it refuses, and what it delays.

Check your answer

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

PracticeDecide whether the statement is true or false.

When Yusuf changes a company email through New Hires, the Employees record’s own rules, required fields and history apply to the change.

  1. Explanation for A

    ✓ Correct

    Correct: changes made through a proxy are saved on the source record, so the source’s own rules apply. See what the proxy view decides.

  2. Explanation for B

    ✗ Incorrect

    The proxy has no records of its own to change; every edit is saved on the source, under the source’s rules. See what the proxy view decides.

Check your answer

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

PracticeChoose one answer.

HR wants to stop IT from seeing employees’ phone numbers from tomorrow. What is the least work that takes effect everywhere at once?

  1. Explanation for A

    ✗ Incorrect

    Not this one: it works only until IT adds the field to a new view, and it is several changes instead of one. See what the proxy view decides.

  2. Explanation for B

    ✗ Incorrect

    Not this one: it breaks IT’s views and anything that refers to the proxy. See what the proxy view decides.

  3. Explanation for C

    ✓ Correct

    Correct: narrowing the proxy view takes effect everywhere the proxy is used, at once. See what the proxy view decides.

Check your answer

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

↺ Recap (1 min) — A seam you can trust

Section titled “↺ Recap (1 min) — A seam you can trust”

You built IT’s module and connected it to HR’s data through a proxy whose limits HR sets on the source. You know what it allows, what it refuses and that it follows the source after a short delay.

Next. In M2-S2 you combine data instead of re-exposing it: a joiner that shows each application with its job, and an aggregate that gives HR one worklist across two entities.