HR Leave · Australia

09 — Modules & Integration (Studio From Scratch)

Application Menu, Modules, Flow — full create; cross-module study abbreviated

Scopex_786686_hr_leave
sys_ide5f5bc9493a303507520703efaba104d
Instance labdev398980
URL token{BASE}
Quick open Visual map App Menu Modules Flow Designer

Visual map — Ch.09 · Modules & Flow

See in 10 seconds

Application menu + Ask For Approval flow

You build

Navigator modules · exclusive flow

Track

Development

MENUHR Leave
→
MOD4 modules
→
FLOWAsk approval
→
STATEapproved
✓ Role per module✓ Flow exclusive✓ No Send Email in flow✗ Empty approver = stuck

Full visual path (all chapters): VISUAL_FROM_SCRATCH_00_16.html

Studio-only from scratch: Full create steps for navigator and approval flow. Cross-module study is optional reading.

Also open: Properties + Direct Links · Schema · Studio Create All Objects · Previous: 08 ATF Testing

How menu, modules, and flow relate

Part 1 Application Menu → Part 2 Modules (4 list links)
Submit (UI Action / Catalog) → Part 3 Flow → Approval → BR3/BR4

Rule 0 — Before any object (Application + Update Set + Studio)

Repeat these checks before creating or editing any application file. This section is also section 00 Update Set — create the capture set first.

  1. Application picker — top-right globe / application menu → select HR Leave (x_786686_hr_leave). Never leave Global selected when creating scoped artifacts.
  2. Update Set — All → System Update Sets → Local Update Sets → New:
    FieldValue
    NameHR Leave – Build
    ApplicationHR Leave
    StateIn Progress
    DescriptionCaptures all HR Leave lab artifacts
    After submit: open the record → click Make Current. Direct list: {BASE}/sys_update_set_list.do
  3. Open Studio — {BASE}/$studio.do → confirm header shows HR Leave.

If artifacts land in Global scope, delete them and recreate under HR Leave. ACLs and events created globally will not behave correctly for this app.

Verify Update Set: Create a test Script Include in Studio → open HR Leave – Build → Related List Customer Updates shows the new file.


Part 1: Application Menu

Purpose

Top-level Application Navigator entry for HR Leave modules.

Navigation path

Direct URL

Prerequisites

Form fields

FieldValue
TitleHR Leave
ApplicationHR Leave
Order100
Rolesx_786686_hr_leave.employee (minimum)

Step-by-step create

  1. If missing: Studio → Application Menu → New → fill fields.
  2. Save. Confirm appears in Application Navigator.

Verify checklist

Demo / test

employee1 login → sees HR Leave menu after modules Modules.


Part 2: Modules

Purpose

Four list modules linking to req_v2, employee_v2, bal_v2, audit_v2 tables.

Navigation path

Direct URL

Prerequisites

Form fields

TitleTypeTableOrderRoles
Leave RequestsListx_786686_hr_leave_req_v210employee, manager, hr_admin
EmployeesListx_786686_hr_leave_employee_v220hr_admin
BalancesListx_786686_hr_leave_bal_v230hr_admin
Audit TrailListx_786686_hr_leave_audit_v240hr_admin

Step-by-step create

  1. Module → New for each row. Application Menu = HR Leave.
  2. Type = List → Table = as listed. Order as table.
  3. Roles: restrict Employees/Balances/Audit to hr_admin; Requests to all three roles.

Verify checklist

Demo / test

employee1 → only Leave Requests visible.


Part 3: Flow Designer — Leave Approval

Purpose

When leave state becomes submitted, sends approval to u_approver_user; on approve/reject updates u_state.

Navigation path

Direct URL

Prerequisites

Form fields — Create Flow wizard

FieldValue
NameHRLX Leave Approval
ApplicationHR Leave
DescriptionApproval flow for submitted leave requests

Trigger — Record Updated

FieldValue
Trigger typeRecord Updated
Tablex_786686_hr_leave_req_v2
ConditionState [u_state] is submitted AND State changes
Run flowOnce per record (recommended)

Action 1 — Ask For Approval

InputValue
RecordTrigger → Leave Request Record (data pill)
Tablex_786686_hr_leave_req_v2
Approval fieldu_approver_user
Approval reasonLeave approval required
Rules → ApproveAnyone approves (required — do not leave empty)

If Approved → Update Record

RecordTrigger record pill
Field mapu_state = approved

Else → Update Record

Field mapu_state = rejected

Step-by-step create

  1. Flow Designer → Create Flow → Name HRLX Leave Approval, Application HR Leave.
  2. Add trigger → Record Updated → table req_v2 → condition u_state is submitted + changes.
  3. + → Ask for Approval → fill Action 1 table → Rules: Anyone approves → Done.
  4. + → Flow Logic → If → condition "approval was Approved".
  5. Yes branch → Update Record → u_state = approved.
  6. Else branch → Update Record → u_state = rejected.
  7. Save → fix any red errors (missing approval rule is common).
  8. Test → pick sample submitted req_v2 → Run test.
  9. Publish → Publish new version → wait for Published status.

Verify checklist

Demo / test

  1. employee1 submits leave (UI Action or catalog).
  2. manager1 → My Approvals → Approve.
  3. Verify state, audit_v2, bal_v2 updated.

Part 4: Professional Module Encyclopedias

Purpose

After HR Leave menu/flow works, use the professional implementer guides (same Part structure as 01 Development) for ITSM, CMDB, ITOM, ITAM, HRSD, CSM, FSM, SPM, GRC, SecOps, DevOps, App Engine — with direct URLs, properties, and navigator module publish steps.

Navigation path

Direct URL

Prerequisites

Related guides

Verify checklist

Demo / test

employee1 → HR Leave menu → submit → manager approves. Then open HRSD Part 13 for HR Leave cross-link.

Modules verify checklist

  1. HR Leave menu visible.
  2. Four modules with correct roles.
  3. Flow published and approving.