Skip to main content

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​

FieldWhat to record
Flow IDA short stable reference used in issue tracking and test cases
Flow nameWhat it does, in business terms
Business triggerThe event that starts it: a scan at the checkout, a nightly schedule, a status change
Originating systemPOS, e-commerce, app, kiosk, ERP, middleware
DirectionTowards Loyal Guru, or from Loyal Guru towards your systems
ModuleData, Loyalty Management & Promotional Engine, Webhooks, or Embedded Loyalty

Behaviour​

FieldWhat to record
ChannelSynchronous, asynchronous, batch file, or webhook
Blocks the saleYes or no β€” this decides most of the rest
Timeout budgetHow long the caller waits before giving up
Expected volumeRequests or records, and over what period
Peak volumeThe worst realistic hour, not the average
Endpoint or fileThe specific call or file specification used
Customer identifierWhich identifier is used to resolve the Customer, and where it comes from
Key business fieldsThe fields the flow depends on, and their source system

Failure handling​

FieldWhat to record
Idempotency keyWhere it is generated, and where it is persisted
Retry policyWhat is retried, how often, with what back-off
Expected business rejectionsThe code values this flow can legitimately receive, and what the user is shown for each
Degraded modeWhat happens if there is no answer β€” and what the customer is told
CompensationHow the effect is reversed on a cancellation or return
ObservabilityCorrelation ID, where it is logged, and who is alerted

Ownership​

FieldWhat to record
Business ownerWho decides the expected behaviour
Technical ownerWho implements and maintains it
Test dataWhat is needed in the test environment to exercise it
Acceptance criteriaHow you will know it works, including the failure cases

Worked example​

FieldValue
Flow IDCHK-02
Flow nameSimulate cart at checkout
Business triggerCashier identifies the Customer and scans the last item
Originating systemPOS
DirectionTowards Loyal Guru
ModuleLoyalty Management & Promotional Engine
ChannelSynchronous
Blocks the saleYes
Timeout budgetShort enough that the cashier does not wait β€” agreed with operations, and tested
Expected volumeSales per hour across the estate
Peak volumeSaturday afternoon peak, measured from POS history
EndpointPOST /carts/simulate (Tier 1, 60 requests/second)
Customer identifierLoyalty card scanned at the checkout
Key business fieldsLine items, quantities, prices, store, cart total
Idempotency keyNot applicable β€” the simulation does not persist an effect
Retry policyOne retry within the timeout budget; then continue without benefits
Expected business rejectionscustomer_inactive, customer_not_found β€” show a message, continue the sale
Degraded modeComplete the sale with no loyalty benefits applied
CompensationNot applicable
ObservabilityCorrelation ID from the POS, propagated through the middleware
Business ownerRetail operations
Technical ownerIntegration team
Test dataActive test Customer with an applicable campaign, plus an inactive one
Acceptance criteriaCorrect 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.