Systems integrationProcess mapping

Process mapping that works with the ERP, not around it.

An industrial automation firm wanted tighter control over how material and information move through its projects. It already ran an in-house ERP, and the new system had to work with that ERP, not around it.

We built a value-stream mapping application on top of it: streams, workflows, stages and tasks on an interactive timeline. It has been in daily use since launch.

Sector
Industrial automation
System
Process mapping platform
Status
In production
4 h → 15 min
Average workflow rescheduling time
91%
Tasks completed on time
Instant
Variance detection, manual before

Reported 90 days after launch. Rescheduling took more than four hours before and under fifteen minutes after.

01

Staying in step with the ERP

#erp-sync

The problem

The ERP held the records the business ran on. A mapping tool that kept its own version of those records would have drifted away from them.

What we tried

We built the application's database on SQL Server with clone tables that mirror the ERP's structure, and synchronised the two at API level. The mapping tool reads and writes data in the shape the ERP already uses.

Data path
  1. ERP
  2. API sync
  3. Clone tables
  4. Mapping application

What we found

The application was integrated with the ERP from its first day in use, and the rollout needed no downtime.

What we'd tell another engineer

When an existing system owns the data, mirror its structure. Keeping one shape on both sides leaves less to translate and less to go wrong.

02

A permission check on every action

#permission-checks

The problem

Role-based access had to apply to every stream, workflow, stage and task. The interface is drag-and-drop with a timeline that people resize and move constantly, so a slow check would be felt on every interaction.

What we tried

We wrote the API services in Go and cached permissions and sessions in Redis, so that each check takes milliseconds. Every edit, comment and status change is also written to an activity log.

What we found

Fine-grained roles run behind an interface that still responds at once, and every change can be traced back to who made it.

What we'd tell another engineer

If every action needs a permission check, make the check cheap before building the interface on top of it.

03

Two statuses for every task

#two-statuses

The problem

A status that a person sets tells you what they believe. It does not tell you whether the work is on schedule. Before this system, finding a delay meant checking by hand.

What we tried

Each task carries two statuses. The user status shows progress as reported. The system status is worked out from the schedule and marks the task as on schedule or delayed automatically.

What we found

Delays show up as they happen. Moving or resizing anything on the timeline updates the schedule at once: average rescheduling time fell from more than four hours to under fifteen minutes. Ninety days after launch, 91% of tasks were completed on time.

What we'd tell another engineer

Store what people report and what the system computes as separate fields. The difference between the two is the thing a manager needs to see.

Takeaways

If you are building something similar

  1. 01Work with the system that already owns the data. Mirror its structure and sync at the API.
  2. 02Make permission checks fast first, then build the interactive parts.
  3. 03Keep reported status and computed status apart, and show both.