|
Download mock-app/modules/README.md from EnergyVenom/patchwise-agent-studio: direct link, hf CLI and curl.
- Browser
- Download file 3.25 kB
-
https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/mock-app/modules/README.md
- Command line
-
hf download hf://spaces/EnergyVenom/patchwise-agent-studio/mock-app/modules/README.md
-
curl -L -o README.md https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/mock-app/modules/README.md
3.25 kB
Mock module packs (MOCK app; NOT Oracle software)
The mock is a shared shell (core/) plus one pack per Fusion module (modules/<id>/). There is no Oracle Fusion pod: every rule
in a pack is ASSUMED, all data is synthetic (ZZ-…, (MOCK)), and nothing here holds secrets. A pass against a pack proves only that the
scripts and the pack agree.
| Pack | Case prefix | Status |
|---|---|---|
p2p/ |
P2P- |
Procure to Pay |
o2c/ |
O2C- |
Order to Cash (O2C P1 + 4 P2 cases) |
r2r/ |
R2R- |
Record to Report (R2R P1 + P2). Role note (UNVERIFIED, confirmed for the mock by Chief of Staff 9 Oct 2026 20:01 IST): gl_accountant has report-level Financial Reporting Center access to the two subledger reconciliation reports only (reports.recon); the financial statements stay denied. Pod role design is POD-REQUIRED. |
a2r/ |
A2R- |
Acquire to Retire / Fixed Assets (A2R P1) |
_template/ |
XYZ- |
Starting point; skipped by the loader (leading _) |
What the shell owns (core/)
registry.js: pack registration; persona merge (same persona id in several packs = one persona whosemoduleslists them all); task panel; scheduled-process parameters/processes; REST schemas; worklist and journal providers.shell.js: login (mock_rolecookie /X-Mock-Roleheader), Home, Tasks panel, worklist, Scheduled Processes (dialog groupSchedule New Process, test idsprocess-<id>/process-status-<id>),/journals(subledger + GL batches from all packs),/api/test/reset,/api/health,/api/modules, RESTdescribe().ui.js: HTML helpers (inp,sel,table,dl,layout, …),page(fn, moduleId)/act(fn, moduleId)with the module guard;actredirects with?ok=on success and back to the referer with?error=on failure.
Pack contract (modules/<id>/index.js exports)
| Key | Required | Meaning |
|---|---|---|
id, name, idPrefix |
yes | Folder name / display name / case-ID prefix |
personas |
yes | { key: { label, bus? } }. Reuse a key (e.g. auditor_ro) only with the same label |
tasks |
no | [label, href, allowed(role)], gate with R.inModule(role, id) |
processParams |
no | Shared parameter fields. Same name = one field (first pack alphabetically wins; select options merge) |
processes |
no | { name, roles, run(role, params, proc) } (set proc.log; throw AppError for ERROR) |
schemas |
no | REST describe() shapes per resource (UNVERIFIED) |
worklist, journals |
no | Providers for the shared worklist and /journals |
reset() |
yes | Restore the full seed (called before every test) |
mount({ app, rest }) |
yes | Mount UI pages and REST routers |
Adding a module
cp -r modules/_template modules/<id>; setID,idPrefix, personas, tasks, processes; split intostore.js/rest.js/ui.jsonce it grows (seer2r/).- Use labels from
tests/ui-glossary.yaml <id>:and the case steps; record every rule you invent as ASSUMED. - Check:
node -e "require('./server')", thencurl -s localhost:3100/api/moduleswith the mock running. - Automation side: see
automation/README.md→ Adding a module.