Meridian
A service-request engine that turns a five-day approval trail into a forty-minute one.
STACK — Salesforce Flow · Apex · LWC · Platform Events · REST API
FIG. 01.0 — SYSTEM COMPOSITION, DRAWN IN CODE
THE PROBLEM, PLAINLY
Enterprise service teams lose days to approval trails: a request is created, forwarded, re-keyed, escalated, and finally signed off by someone who saw it four days late. Meridian was built to prove a different pattern — orchestrate the whole trail on-platform, and let humans touch it only where their judgment matters.
The build is our own R&D org, treated like a client engagement: a written spec, a data model review, a test plan before the first line of Apex, and a hard rule that every automated decision leaves an audit trail a compliance officer could reconstruct.
Flow-first orchestration
Record-triggered flows own the happy path: entitlement checks, routing, SLA timers. Declarative where declarative is honest — no Apex for what a flow states more clearly.
Apex where it counts
The approval matrix — amount bands, role hierarchies, delegation windows — lives in one bulkified Apex service with a single entry point, unit-tested against forty scenarios before the first deploy.
An operator console in LWC
Approvers work a queue, not their inbox: a Lightning Web Component console with keyboard actions, optimistic updates, and platform-event refreshes when a peer claims a record.
Test scenarios as the spec
The dev-test matrix is the contract: every business rule became a named scenario first, then code. When coverage reads 92%, it measures rules proven, not lines touched.
$ sf apex run test --code-coverage --result-format human=== Test ResultsVoucherServiceTest.approvalMatrix_routesByAmount PassVoucherServiceTest.entitlementGate_blocksExpired PassVoucherServiceTest.delegation_windowExpiresCleanly PassFlowOrchestrationTest.endToEnd_fortyMinutePath Pass…36 more Pass=== Apex Code CoverageVoucherService 94%ApprovalMatrixHandler 91%Overall 92% (org target 85%)
- Service_Request__c
- Master record · 14 fields · full field history
- Approval_Step__c
- Child · one row per decision, immutable
- Entitlement__c
- Lookup · gates the flow before any routing
- Platform Event
- Console refresh + downstream ERP notification
ENGINEERING NOTE
The fastest approval is the one that never waits in an inbox. Meridian’s matrix auto-approves the low-risk band and reserves humans for the two bands where discretion is real — that single decision produced most of the 5.4× gain.
0%
APEX TEST COVERAGE
0+
NAMED TEST SCENARIOS
0.0×
FASTER APPROVAL PATH
00
UNAUDITED DECISIONS

