Demonstration

ERP operations console with approval workflows

A demonstration of an operations console that sits beside an ERP: purchase requests are routed through configurable approval chains, every decision is recorded, and approved orders sync to the ERP through an idempotent integration.
Demonstration · fictional data
.NETC#AngularPostgreSQLAzure Service BusMicrosoft Entra IDAzure
Type
Demonstration · fictional data
Domain
ERP & operations
Problems
Workflow automation, Auditability, System integration
Year
2026

This is a demonstration, not client work. It was built for this portfolio with fictional companies and data to show how I approach this kind of system. Outcomes below are illustrative targets, not achieved results.

01Interactive preview

Try it. Everything here works.

A working product preview with fictional data. State changes, events and edge cases are simulated in your browser; nothing is sent anywhere.
Demofenwick-ops · Purchase approvals

PR-2041 · submitted Tue 09:00 · policy v3

Oscilloscope probes (4)

€1,860

Requester:
Maya Okafor
Supplier:
Nordtek Instruments
Category:
Lab equipment
Cost center:
CC-410 Test lab

Approval route

  1. manager · Tomás Ruiz

    Due Wed 09:00 · SLA 24 h

Policy v3

≥ €0manager24 h
≥ €2,500finance24 h
≥ €25,000director48 h

Requesters never approve their own requests; approvals by delegates record both names.

New purchase request · as Tomás Ruiz

Audit log · append-only

0 events
  1. Decisions, routing and ERP sync events will appear here.

02Context & constraints

The situation

A fictional precision-instruments manufacturer, Fenwick Instruments, runs purchasing through email threads and a shared spreadsheet before re-entering approved orders into its ERP. Approvals stall when someone is traveling, and auditors ask for evidence that is hard to assemble.

The console replaces email approvals with configurable chains while leaving the ERP as the system of record for purchase orders and payments.

Role

A self-initiated demonstration, not client work. In a real engagement I would own the workflow engine, the console, the ERP integration and the audit model.

  1. Approval policy model and rule evaluation
  2. Request lifecycle state machine
  3. Role-based access and segregation of duties
  4. Operations console
  5. ERP integration with idempotent sync
  6. Audit log and reporting exports

Constraints

  • Segregation of duties

    A requester can never approve their own request, and the person who approves cannot also release the payment.

  • Policy changes without deployments

    Finance adjusts thresholds and approvers as the organization changes, so rules must be data, not code.

  • The ERP stays the system of record

    Approved requests become purchase orders in the ERP exactly once, even when the integration retries.

  • Audit-ready history

    Every state change records the actor, timestamp, reason and the policy version that applied.

03Architecture & data flow

Follow the data, one step at a time.

Pick a flow and step through it, or press play. Each step highlights the connection involved and explains what happens there and why.

Step 1 / 5

Scroll sideways to see the whole diagram →

Architecture diagram: ERP operations console with approval workflowsComponents: Requesters, Approvers, Console API, Entra ID, Workflow engine, Policy store, Notifications, PostgreSQL, Service Bus, ERP sync worker, ERP. Highlighted path: Submit and route, step 1 of 5: Request submitted.OPERATIONS CONSOLE · BESIDE THE ERPRequestersWeb · mobileUIApproversWeb · Teams linkUIConsole API.NET · role checksSVCEntra IDSSO · group rolesEXTWorkflow engineState machine · SoDSVCPolicy storeVersioned rulesDATANotificationsEmail · TeamsEXTPostgreSQLRequests · audit logDATAService BusSessions per requestQUEUEERP sync workerIdempotent PO createJOBERPSystem of recordEXT

Submit and route

How a purchase request finds the right approvers under the policy in force today.

Submit and route, step 1 of 5: Request submitted. Amount, category, cost center, supplier and justification are captured with attachments.

04Engineering decisions

Decisions, with their costs.

Written as short decision records: what was chosen, what it costs, and what else was considered.

ADR-01

Approval policies as versioned data

Decision
Rules (amount bands, categories, cost centers, approver roles) are stored as versioned policy documents, and each request records the version it was routed under.
Trade-off
Needs an admin screen and validation, but finance can change policy without a release, and audits show exactly which rules applied.
Alternatives considered
Hard-coded rules (every change needs a developer) or a full BPM suite (powerful, but heavy and costly to license and run).

ADR-02

A state machine with guarded transitions

Decision
Requests move through Draft, Submitted, In approval, Approved, Rejected, Changes requested and Ordered, with guards that enforce segregation of duties.
Trade-off
Explicit modeling effort, repaid by impossible states staying impossible and the audit trail writing itself.
Alternatives considered
Status flags on a table, which allow contradictory combinations.

ADR-03

Integrate through the ERP's API, not its database

Decision
A worker consumes approval events and creates purchase orders through the ERP's API, with the request ID as an idempotency reference.
Trade-off
Slower than writing to the database directly, but supported, upgrade-safe and auditable on both sides.
Alternatives considered
Direct database inserts, which break on ERP upgrades and bypass the ERP's own validation.

05Implementation

Where the details live

Routing rules

Routing evaluates the request against the active policy and produces an ordered list of approval steps. Delegation is resolved at routing time and recorded, so the audit trail shows both the delegate and the original approver.

Building an approval route (C#, simplified)C#
public ApprovalRoute BuildRoute(PurchaseRequest request, Policy policy)
{
    var steps = policy.Bands
        .Where(b => request.Amount >= b.From && b.Covers(request.Category))
        .OrderBy(b => b.Order)
        .Select(b =>
        {
            var approver = _directory.Resolve(b.ApproverRole, request.CostCenter);
            var delegate = _delegations.ActiveFor(approver, _clock.Today);
            return new ApprovalStep(b.ApproverRole, approver, delegate, b.Sla);
        })
        .ToList();

    if (steps.Any(s => s.ActingApprover.Id == request.RequesterId))
        throw new SegregationOfDutiesException(request.Id);

    return new ApprovalRoute(request.Id, policy.Version, steps);
}

Escalation

Each step has an SLA. Overdue steps send a reminder, then escalate to the approver's manager, and every escalation is recorded alongside the decision.

Audit log

An append-only table records every transition with actor, timestamp, reason and policy version. Finance can export it for any period without asking engineering.

06Deployment

Running it for real

Proposed topology for a production version of this design.
Runtime
.NET services on Azure Container Apps; the Angular console served from Azure Static Web Apps.
Identity
Microsoft Entra ID single sign-on with group-based roles mapped to approval roles.
Data and messaging
Azure Database for PostgreSQL with point-in-time restore; Azure Service Bus sessions to keep per-request ordering.
Delivery
Bicep templates and Azure DevOps pipelines with environment approvals.

07Outcomes & lessons

What this shows, honestly labeled.

Nothing below is a client result. These are the capabilities the demonstration exercises and how success would be measured in a real engagement.
  • What the demo shows

    Illustrative — not a client result

    Role switching (requester, manager, finance), routing by amount, approve, reject and request-changes actions, SLA indicators and a live audit trail.

  • How success would be measured

    Illustrative — not a client result

    Median approval time, share of requests approved within SLA, zero segregation-of-duties violations, and time spent preparing audits.

  • What is simulated

    Illustrative — not a client result

    Users, policies and the ERP are simulated in the browser; no real organization's data is used.

Design notes

  • Most of the value is in the policy model. Spend design time with finance before writing workflow code.
  • Delegation and absence handling decide whether people trust the system or go back to email.
  • Show approvers the context they need (remaining budget, previous orders) right next to the approve button.

Next step

Tell me what you’re building. I’ll tell you how I’d approach it.

Send a short brief. You’ll get a written reply from me within two business days — either a few clarifying questions, a suggested first step, or an honest “I’m not the right fit” with a pointer elsewhere.

Parth Patel

Senior full-stack engineer