DWPlatform lifecycle
Field guide · the employment lifecycle

One person, one file, from the post that was short to the day they come back.

Nineteen swimlane diagrams covering every process an employee passes through in DWPlatform — who acts, who decides, what the platform does on its own, and where Egyptian labour law refuses to let the software do the convenient thing.

Updated 26 Jul 2026 19 BPMN swimlanes Law 14/2025 in the gateways
Notation

How to read these diagrams

Each diagram is a pool divided into lanes, one lane per actor. A box sits in the lane of whoever does that step — so the shape of the picture answers the question people actually have, which is whose move is it. Read left to right; the dashed warm lines are the refusals, and they are drawn deliberately because on every one of these processes the refusal is the branch people forget exists.

LegendThe shapes, and what each one commits to
Start — what sets it off End — where it rests Task — a person does it System — the platform, unattended Gateway — a decision or a rule Record — something written that outlives the step Timer — a clock that fires on its own Dashed — refusal, or a return to an earlier step

One convention worth internalising. Validation always happens before routing, never after approval. A manager should never be asked to approve leave the employee has no balance for, or an advance whose instalments would breach the 25% ceiling — approving something the system must then refuse to execute is worse than refusing it up front, because by then the employee has been told yes.

The whole thing at once

The arc

Everything below is a magnification of one step in this picture. The detail worth noticing now is the last arrow: re-hire returns to the same file rather than creating a new one, and that single decision is what makes total service — the number the ten-year leave tier and the end-of-service gratuity both turn on — computable at all.

OverviewThe employment arcscroll →
A file is opened once and closed never. Periods open and close inside it; the file itself is the person.
Phase 1

Becoming an employee

A manager asks for a post; approval creates the requisition; a candidate becomes a file.

5 processes
Phase 2

At work

Attendance, leave, pay, advances, documents — the loops that repeat for years.

6 processes
Phase 3

Growing, and going wrong

Appraisal, learning, transfer — and discipline, which the law constrains hardest.

4 processes
Phase 4

Leaving and returning

Resignation or abandonment, clearance, settlement — and the way back in.

4 processes
Phase 1 · five processes

Becoming an employee

Hiring begins before recruitment does. The person who knows a post is short is the manager holding it, not the recruiter — so the first process is the manager's, and the requisition recruitment works from is what its approval produces. That ordering is the point: a requisition can never exist without the authorisation that created it.

1.1 · طلب احتياج — asking for a post

Process 1Manpower request → requisitionscroll →
The approved request becomes the requisition, already Approved. Putting an authorised ask back into Draft would ask the same question twice, and the second asker has less information than the first.

Why a backfill must name who is leaving. It is not bookkeeping. Naming the leaver is the evidence that headcount is not growing, and that single fact is the difference between a decision a budget holder can make in a minute and one that needs a meeting.

1.2 · Advert to shortlist

Process 2Posting, application, pipeline, interviewscroll →
Every stage move is written to a dated log. Months later, "why was this candidate dropped" has an answer that is not somebody's memory.

1.3 · The hand-off out of recruitment

Process 3Offer → acceptance → employeescroll →
Converting is the one moment recruitment becomes employment: it creates the employee, the first employment period and the first employment record together. It is one-way, and it happens once per offer — a second conversion would be a second employee for one person.

1.4 · The first days

Process 4Onboardingscroll →
A missing mandatory document raises a compliance flag rather than blocking the hire. Somebody who started work on Sunday is an employee on Sunday; the paperwork catches up, and the flag is what makes sure it does.

Probation is set here, and can never be set again. Art. 90 allows a probationary period once per employee per employer. The re-hire process (7.1) has nowhere to express one, which is deliberate — see the last diagram in this guide.

Phase 2 · the shared mechanism

The request spine

Nineteen kinds of request — leave, advance, letter, mission, resignation, objection, manpower and the rest — all run on one spine. Learning it once means every request diagram after this is just the middle box changing.

Process 5Submitted → validated → routed → decided → appliedscroll →
Approved and Applied are separate states, on purpose. Approval is a human decision; applying is a ledger movement that can fail. Collapsing them would mean an employee told "approved" while nothing happened.
Why validate before routing

The rule that would refuse the request is tested at submission, in the requester's own language. A refusal that names the balance, the ceiling or the deadline is actionable; one that arrives after three approvals is an insult.

Why the effect is idempotent

Approvals arrive on a bus that delivers at least once, and a reconcile job re-offers anything unfinished. Applying twice is not an edge case — it is expected traffic, and every effect is keyed so it cannot double-deduct someone's leave or schedule the same advance twice.

Phase 2 · six processes

At work

These are the loops that run for years without anyone thinking about them, which is exactly why their edge cases matter more than the showpiece features.

3.1 · A day, and what the fence actually says

Process 6Punching in, geofencedscroll →
Boundaries are drawn on satellite imagery and stored as SQL Server geography; containment is STIntersects and nearness is STDistance.

The verdict is three-valued, and that is the whole design. A GPS fix is a circle, not a point. "Inside the boundary, accurate to ±400 m" is not evidence that somebody was at work, so the answer is Inside, Uncertain, or Outside. Uncertain means the phone could not tell us — a different fact from the employee not being there, and the one that has to survive to an argument about a deduction eight months later.

Nothing blocks. Mocked-location and impossible-travel signals are recorded and sent to a review queue, never used to refuse a punch. A spoofing heuristic that blocks hurts an honest employee with a bad phone long before it inconveniences anyone actually cheating, and the two mistakes do not cost the same.

Location is read only when a button is pressed, never between punches. That is a product decision, stated on the employee's screen rather than in a policy nobody opens.

3.2 · Leave

Process 7Request → balance → chain → ledgerscroll →
The manager deciding the request can see the balance it is taken against. Approving an absence without being allowed to see whether the employee can afford it is not a decision, it is a rubber stamp.

3.3 · The payroll month

Process 8Draft → calculated → approved → locked → paidscroll →
Locking is final. The payslips become the legal record of what was paid, and the correction path afterwards is a retro run, not an edit.

Why the calculation trace is stored rather than recomputed. When an employee or an inspector disputes a deduction two years later, the engine will have changed — re-running it proves nothing. The stored trace is the only thing that shows which employment record, which insurable-wage clamp, which tax ladder and which statutory cap produced that number.

3.4 · An advance

Process 9سلفة, against the art. 114 ceilingscroll →
Instalments already running count toward the same 25% ceiling. The refusal shows the arithmetic, because "denied" without the sum is a conversation that comes straight back.

3.5 · Documents and their expiry

Process 10Filed, watched, renewed by the employeescroll →
A renewal is a new row, not an edit. The expired copy is the evidence of what was on file during the period it covered, and an inspection asks about that period.

The half that used to be missing. The system tracked expiry, warned before it, and raised a compliance flag when a mandatory document was absent — while giving the person being chased no way to respond. Chasing somebody for a document they cannot submit is a process that only produces flags.

3.6 · Transfer and promotion

Process 11Effective-dated, never overwrittenscroll →
The old record closes the day before the new one opens. Payroll for March reads whichever record was in force in March, which is the only way a retro run can ever be correct.
Phase 3 · two processes

Growing

4.1 · An appraisal cycle

Process 12Self → manager → 360 → calibration → acknowledgementscroll →
Calibration moves scores only. A calibration that could rewrite the evidence would make the evidence worthless, and the conversation that follows is with the manager who wrote it.

4.2 · Learning

Process 13Request → nomination → enrolment → completion → skillscroll →
What a course leaves behind is a skill on the matrix, not an attendance record. Attendance answers "did they turn up"; the matrix answers "who can do this", which is the question anyone actually asks.
Phase 3 · where the law is strictest

When it goes wrong

Discipline is the process Egyptian labour law constrains hardest, and the one where software most easily produces something indefensible. Two rules void a sanction, and one of them is counted from a date most people get wrong.

Process 14Infraction → investigation → sanction → تظلمscroll →
The thirty-day deadline runs from the day the investigation closed — not from the infraction everybody remembers. That is what most disputed penalties actually fail on, so the form computes and shows the deadline the moment an investigation date is entered.
Art. 143

A single violation is capped at five days' wage. The form checks it as the days are typed and refuses to save past it, rather than letting an unlawful penalty reach an employee's payslip and be argued about afterwards.

The right to object

A discipline system that can impose a sanction but never hear an objection is half the law. تظلم is an ordinary request kind — a chain, a decision, a visible history — and upholding it annuls the sanction. Except one already carried into a payslip: the money left, and unwinding it is a retro adjustment, not a status flip that would leave payslip and penalty disagreeing.

The employee can see the sanction. Not a courtesy — a precondition. Nobody objects to something they were told about verbally and cannot point at, so a right to object that exists only on paper is no right at all.

Phase 4 · three processes

Leaving

Service can end three ways in this platform: the employee resigns, the employer terminates, or absence accumulates until the law treats it as abandonment. All three converge on one end-of-service case.

6.1 · Resignation

Process 15Notice, and what happens when it is shortscroll →
Notice owed is derived from service length, not typed. Where it is not served, pay in lieu is computed rather than negotiated.

6.2 · Absence that becomes abandonment

Process 16The art. 69 ladderscroll →
The registered letter is not paperwork; it is the step that makes the termination lawful. Ending service on abandonment without it is an arbitrary dismissal.

6.3 · Clearance and settlement

Process 17The day employment actually endsscroll →
Clearance blocks approval rather than merely recording it. Recovering a laptop is cheap while somebody still works here and nearly impossible afterwards, which is the whole reason the checklist is a gate and not a note.

Approval is the moment employment ends, and it does four things at once: it closes the employment period, stops the assignment on the same day, flips the employee to Terminated, and releases the settlement to payroll. Stopping the assignment matters more than it looks — approval routing reads the org chart, and a terminated employee still sitting in a department would keep receiving other people's requests to approve.

The settlement is shown broken out rather than as one figure, because each component is owed for a different reason: gratuity for service, notice where it was not served, compensation where the ending was unlawful, and the leave cash-out that art. 125 makes mandatory on termination. An employee disputing one of them is disputing that line, not the total.

Phase 4 · the way back

Coming back

A returning employee is the case that quietly tests whether the whole model was built correctly, because getting it wrong is invisible for years and then wrong in the one calculation that matters most.

Process 18Re-hire — the same file, a second periodscroll →
A new employment period on the existing file. Creating a second employee record would split the service history in two.
What splitting the file would cost

Total service is the number that decides the thirty-day annual leave tier at ten years, and the end-of-service gratuity. Two files means both are computed from the wrong figure — and nothing looks broken until somebody leaves after eleven years and is paid as though they had six.

Why there is no probation field

Art. 90 allows probation once per employee per employer, and it was used on the first period. A returning employee cannot be put back on trial however long they were away, so the form has nowhere to say otherwise — the rule is enforced by absence rather than by a validation message.

And the loop closes. The re-hired employee re-enters phase 2 at exactly the same place as a new joiner — attendance, leave, payroll, appraisal — with one difference nobody has to remember, because the file already knows it.

Reference

The law, by gateway

Every diamond above that refuses something refuses it for a reason. These are the reasons, and the process each one lives in.

RuleWhat it decidesWhere it fires
Art. 69Absence becomes abandonment only after the ladder and a registered letter6.2 Abandonment
Art. 90Probation once per employee per employer — never on a re-hire1.3 Offer · 7.1 Re-hire
Art. 92The employee file is kept five years after service ends, electronically3.5 Documents
Art. 114Advance recovery may not exceed 25% of the wage, counting instalments already running3.4 Advance
Art. 121Overtime multipliers, and the substitute rest day that a payment does not discharge3.1 Attendance
Art. 125Unused leave is cashed out on termination — mandatory, not optional6.3 Settlement
Art. 128Casual leave is drawn from the annual balance, capped per occasion3.2 Leave
Art. 139The sanction ladder a penalty must sit on5 Discipline
Art. 140 · 143Thirty days from the close of investigation; five days' wage per violation5 Discipline
Law 14/2025 leave tiers21 days rising to 30 at ten years' service or age 503.2 Leave

Standing gate before any live payroll. The statutory formulas — the six tax ladders, the social-insurance wage clamp, the health-insurance phases and the end-of-service gratuity — are implemented from the published rules but have not been reviewed by an Egyptian accountant and lawyer. That sign-off is required before a real tenant runs live payroll, and the statutory configuration screen says so on the page rather than in a tooltip.