Flow mapping template
An integration is not one connection. It is a set of flows β identify a Customer, simulate a cart, confirm it, load the catalog, receive an event β each with its own trigger, its own urgency and its own failure behaviour.
Most integration problems are visible on paper before they are visible in production, provided somebody wrote the flow down. This template is that exercise. Fill one in per flow during the design phase, and the answers become the test plan.
The fields are grouped so that the difficult ones β failure behaviour and ownership β cannot be skipped.
Identificationβ
| Field | What to record |
|---|---|
| Flow ID | A short stable reference used in issue tracking and test cases |
| Flow name | What it does, in business terms |
| Business trigger | The event that starts it: a scan at the checkout, a nightly schedule, a status change |
| Originating system | POS, e-commerce, app, kiosk, ERP, middleware |
| Direction | Towards Loyal Guru, or from Loyal Guru towards your systems |
| Module | Data, Loyalty Management & Promotional Engine, Webhooks, or Embedded Loyalty |
Behaviourβ
| Field | What to record |
|---|---|
| Channel | Synchronous, asynchronous, batch file, or webhook |
| Blocks the sale | Yes or no β this decides most of the rest |
| Timeout budget | How long the caller waits before giving up |
| Expected volume | Requests or records, and over what period |
| Peak volume | The worst realistic hour, not the average |
| Endpoint or file | The specific call or file specification used |
| Customer identifier | Which identifier is used to resolve the Customer, and where it comes from |
| Key business fields | The fields the flow depends on, and their source system |
Failure handlingβ
| Field | What to record |
|---|---|
| Idempotency key | Where it is generated, and where it is persisted |
| Retry policy | What is retried, how often, with what back-off |
| Expected business rejections | The code values this flow can legitimately receive, and what the user is shown for each |
| Degraded mode | What happens if there is no answer β and what the customer is told |
| Compensation | How the effect is reversed on a cancellation or return |
| Observability | Correlation ID, where it is logged, and who is alerted |
Ownershipβ
| Field | What to record |
|---|---|
| Business owner | Who decides the expected behaviour |
| Technical owner | Who implements and maintains it |
| Test data | What is needed in the test environment to exercise it |
| Acceptance criteria | How you will know it works, including the failure cases |
Worked exampleβ
| Field | Value |
|---|---|
| Flow ID | CHK-02 |
| Flow name | Simulate cart at checkout |
| Business trigger | Cashier identifies the Customer and scans the last item |
| Originating system | POS |
| Direction | Towards Loyal Guru |
| Module | Loyalty Management & Promotional Engine |
| Channel | Synchronous |
| Blocks the sale | Yes |
| Timeout budget | Short enough that the cashier does not wait β agreed with operations, and tested |
| Expected volume | Sales per hour across the estate |
| Peak volume | Saturday afternoon peak, measured from POS history |
| Endpoint | POST /carts/simulate (Tier 1, 60 requests/second) |
| Customer identifier | Loyalty card scanned at the checkout |
| Key business fields | Line items, quantities, prices, store, cart total |
| Idempotency key | Not applicable β the simulation does not persist an effect |
| Retry policy | One retry within the timeout budget; then continue without benefits |
| Expected business rejections | customer_inactive, customer_not_found β show a message, continue the sale |
| Degraded mode | Complete the sale with no loyalty benefits applied |
| Compensation | Not applicable |
| Observability | Correlation ID from the POS, propagated through the middleware |
| Business owner | Retail operations |
| Technical owner | Integration team |
| Test data | Active test Customer with an applicable campaign, plus an inactive one |
| Acceptance criteria | Correct discount returned; sale completes when the API is unavailable |
How to use the completed setβ
Once every flow has a filled-in template:
- The "blocks the sale" column tells you which flows need a degraded mode designed and tested.
- The peak volume column, summed across flows, tells you whether the rate limits are a constraint for your traffic profile.
- The expected business rejections column becomes the error-handling specification for the frontend.
- The acceptance criteria column becomes the test plan.
Related pagesβ
- Integration model β how to decide the channel for each flow
- Reliability β idempotency, degraded mode and error classes
- Integration checklist β where this exercise sits in the implementation sequence