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”| Module | M2 — Data across modules |
| After this session you can | Build a second module and connect it to the first through a proxy whose limits you set on the source. |
| Time | Facilitated: 59 min · On your own: 59 min |
| Before you start | M1-S2: your architecture (module map, seams, names). Signed in as yourself; Yusuf Nader in a private window. |
| Go deeper | Virtual 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”Who owns what
Section titled “Who owns what”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.
What the proxy view decides
Section titled “What the proxy view decides”- 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.
What it refuses, and what it delays
Section titled “What it refuses, and what it delays”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.
-
Open Administration › Applications › Modules and select Add Module.
-
Name Employee Onboarding, Arabic تهيئة الموظفين الجدد. Check that the Normalized name reads
employee_onboarding. -
Under Sharing, keep Sharing level Public. Pick an icon.
-
Under Administration Access, choose the group IT. Select DONE.
-
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. -
On its Structure tab, add these fields and save with Save and Save Changes:
Field Type Settings Employee name Text Required; the entity’s main title Employee email Text Start date Date Laptop ready Switch Accounts ready Switch Checklist status Category Options 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_onboardingand 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 see | What to do |
|---|---|
| The normalized name ends in a number | The 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 field | Use the Calculated on-and-off workaround above. |
| IT is not offered under Administration Access | The 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
- Open Recruitment System › Employees › Views › New View. Name Onboarding feed.
- 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.
- 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
- 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. - In Data Entity Type, choose Virtual Proxy Entity. In Choose Entity, expand Employees and pick the proxy view Onboarding feed. Select Create.
- Open New Hires › Views › New View. Name IT onboarding desk, Source view Entries, all four fields. Under Appearance, turn on Pin to sidebar.
- Access Permission: Authenticated, Select groups IT.
- 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
- In the private window, sign in as Yusuf Nader. Open IT onboarding desk: Karim Saleh and Mona Aziz are listed.
- Open Karim Saleh and edit him: only Company email can be changed. Enter
karim.saleh@meridian.example.comand save. - 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 see | What to do |
|---|---|
| No Proxy View in View type | Your 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 all | Editing entries is off in the proxy view or in IT onboarding desk; both must allow it. |
| New Hires is empty | The 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 view | It is not published, or IT is not under Select groups. |
| The save is refused | The 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”IT asks to also correct the employee’s phone number through New Hires. Where is that decided?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
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?
Check your answer
The correct answer is A. Open the explanation under each option to see why.
When Yusuf changes a company email through New Hires, the Employees record’s own rules, required fields and history apply to the change.
Check your answer
The correct answer is A (True). Open the explanation under each option to see why.
HR wants to stop IT from seeing employees’ phone numbers from tomorrow. What is the least work that takes effect everywhere at once?
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.