Skip to content
Back to Insights
ArticlePlatform13 min read

Process orchestration as the architectural foundation of a sales platform

Why traditional API composition stops being enough when the sales process lasts longer than a single HTTP request — and what is gained by choosing an orchestration platform as the central element of the architecture.

In this article, you will learn why traditional API composition and loosely coupled microservices stop being enough when a sales process lasts from seconds to days. The text shows when process orchestration becomes the architectural foundation of a sales platform and which practices determine whether the implementation will be scalable, auditable, and maintainable for years.

Łukasz JackowiczCTO, QRQS.eu PSA5 October 2026

The click you do not see

Imagine an ordinary Friday evening. A customer from a small transport company visits a commercial partner's website, configures an offer for four new laptops for drivers, and clicks the button „Submit leasing application". The screen shows a spinner and the message „Verification in progress". After several seconds, the customer is redirected to an identity verification page, then returns, sees the screen „Your application is being analysed", and receives an SMS with a link to sign the agreement in an external system. After signing, the customer sees another screen, pays the initial instalment through a payment gateway, returns, and receives the message: „Thank you, the supplier will contact you within 24 hours". Three days later, the laptops arrive at the office.

From the customer's perspective, this is one interaction with one website: they clicked something, signed something, paid for something, and received the equipment.

From an engineering perspective, it is more than twenty separate operations involving a dozen internal and external systems. They are spread over time from seconds to days — with several points where the process must wait for the customer, several where it must wait for an external system, and stages that require approval by an employee of the leasing company. Each of these operations can fail, each has its own SLA and separate error-handling semantics.

A large financial institution handles tens of thousands of such applications every month. Each of them — from clicking in the cart to activating the agreement in the accounting system — is an instance of a long-running, multi-step, multi-channel process. It must be resilient to failures while remaining auditable, versioned, and modifiable without downtime in production.

This article answers the question of which architectural decision should be made so that such a platform can be maintained, developed, and scaled over years without friction. The thesis I put forward is this: the foundation of a modern sales platform should be a specialised process orchestration engine, not loosely coupled microservices communicating only through events or HTTP requests.

Why „just microservices" are not enough

The natural response of an engineering team to the complexity described above is familiar: split the system into microservices, each responsible for its own slice of the domain (verification, scoring, signing, payment, delivery), connect them with events on a bus, add distributed metrics and monitoring, and we will get a flexible architecture.

This pattern works very well for short, atomic operations. Reading a user profile, retrieving a product list, or calculating an instalment simulation is a simple sequence: HTTP request, response, end. If a failure occurs, the customer receives an error and tries again.

However, in the case of a long-running process, this model starts to crack in three key places:

State visibility. When a customer's application stops halfway through the path — after a preliminary decision, before signing the agreement, while waiting for payment posting — where exactly is that state? In the application service database? In the decisioning service? On the event bus? In the context of a task waiting for a manual decision by an analyst? Distributed process state, which is a single business whole, becomes the source of constant service questions: „why is this stuck?" and „what stage is this case at?". Finding the answer requires laborious correlation of logs and telemetry traces from many independent services.

Time coordination. A customer redirected to identity verification may return after five minutes, after two hours, after three days — or not at all. An external signing system may return an asynchronous response immediately after the signature is submitted, only in a nightly synchronization batch, or twice if the procedure has to be repeated. Who in an event-driven architecture ensures that an application is waiting for a response from an external API that declared a one-hour SLA but did not answer? Who is responsible for retry? Who decides on automatic escalation after a day has passed?

Managing changes to the process model. A leasing company does not have one sales process. It has operating leases, financial leases, leasing loans — each with variants adapted to the customer's legal form (sole proprietorship, limited liability company, corporation). Moreover, these processes evolve every few weeks in response to regulatory changes, new product segments, or new partner channels. In a distributed architecture, each such change requires coordinated deployment of many microservices, complex integration tests at event boundaries, and the risk of inconsistent logic.

These are not purely theoretical problems. They are daily challenges for platforms based exclusively on the microservices + event bus pattern when the modelled domain is in fact a single, long-running workflow.

Orchestration as the answer

An alternative architectural approach replaces distributed coordination with central orchestration. At the heart of the platform sits an engine that:

  • stores the formal process definition (transition graph, business conditions, waiting points for user action or an external system),
  • manages the durable state of each instance (current step, process variables, passage of time),
  • delegates tasks to other services, treating them as stateless executors of individual steps.

This is a fundamental change of perspective. In event choreography, knowledge of „who reacts to what" is distributed across the entire ecosystem — each component independently listens for messages and decides how to behave. In orchestration, the sequence of „what should happen and under what conditions" is explicitly written in one place — in the process model. The remaining services become specialised executors: the engine requests scoring, the service calculates and returns the result, and the engine autonomously decides on the next path.

In software engineering, this pattern is usually compared with two other approaches:

  • Choreography — a distributed event-based model. It has no central coordinator: each service knows its domain and reacts directly to events published by other components.
  • API composition — a synchronous aggregation model in which a facade sequentially calls APIs and combines the results. It is a simple solution, but limited to interactions that fit within a standard HTTP timeout.

Orchestration introduces a key third dimension into the architecture: time. The process engine can maintain an instance for hours, days, or weeks. It can safely suspend execution while waiting for a webhook, callback, payment, or analyst authorisation. Built-in timers allow an escalation action to be defined after a timeout without writing custom code, and parameterised subprocesses enable the same logic to be reused many times.

The modern standard for modelling such flows is BPMN 2.0 (Business Process Model and Notation) — a graphical notation standard that has become a directly executable technical specification. A BPMN diagram prepared together with business analysts is interpreted directly by the engine, eliminating the need to manually translate requirements into procedural code. For purely decision-oriented logic (for example, a matrix selecting a process variant based on application parameters), the complementary standard is DMN 2.0 (Decision Model and Notation).

In the process engine segment, Camunda 8 currently holds a strong position — a cloud-native solution based on the distributed Zeebe engine. Alternative solutions include Temporal, Netflix Conductor, and AWS Step Functions. Regardless of the chosen product, the fundamental design principles remain universal.

Four architectural practices that determine success

Choosing an orchestration engine does not guarantee success. There are implementations where the BPMN diagram for a single product grows to more than one hundred nodes: nobody can understand it, and modifying the logic becomes risky. This situation results from treating the engine as a board for drawing every technical detail, instead of as a flexible composition environment.

Here are four practices that distinguish a mature implementation from a chaotic one:

Practice 1: Composing the process from layers

Instead of building one monolithic model per product, the process should be divided into modular layers:

  • Master process — common to the entire sales ecosystem. It is synthetic and abstract: it models standardised phases (application, risk scoring, agreement, payment, activation). It does not contain technical details or the specifics of individual products.
  • Phase components — sets dedicated to specific business lines. A phase component implements a selected phase for a given product type (for example, data collection for an operating lease differs in scope from a leasing loan). The master process dynamically starts the appropriate component based on rules stored in a DMN table.
  • Reusable subprocesses — atomic operations shared across the whole organisation (customer identity verification, scoring engine call, agreement PDF generation, qualified signature, payment handling). Such a subprocess is a clean module: it accepts a strictly defined input contract and returns a result without knowing the caller's context.

As a result, implementing a new product comes down to preparing specific phase components and registering them in a DMN table. The main process and the library of shared subprocesses remain untouched, minimising regression risk.

Programming analogy: the master process is the main() function, phase components are higher-order functions, and reusable subprocesses are independent libraries of pure functions.

Practice 2: Asynchronous callbacks as a first-class mechanism

Most operations in a leasing process are asynchronous communication. Sending an application to an electronic signature platform results in a response after minutes or days — depending on when the customer signs the document. Submitting a transaction to a payment gateway returns a result after several seconds or minutes. A scoring query may take seconds in an automated process, but in case of doubt it may go to manual analyst review for many hours.

In an architecture based on pure microservices, this requires building custom correlation mechanisms (correlation tables in a database, schedulers checking status, code matching identifiers).

In BPMN notation, this problem is solved natively using message events with correlation (Message Intermediate Catch Event or Receive Task). The diagram defines waiting for a specific message linked to a unique business key (for example, a case number). When an asynchronous response arrives from outside, the input layer passes it to the engine, and the engine automatically resumes the correct instance.

Additionally, Timer Boundary Events allow SLA conditions to be defined declaratively, for example: „if signature confirmation does not arrive within 24 hours, start the reminder or escalation path". Retry, backoff, and dead-letter mechanisms become platform configuration, not code overhead for developers.

Practice 3: A unified communication contract with the frontend

The sales platform supports multiple channels: customer portal, mobile application, and an internal back-office system for contract managers. At many points in the process, these users must review data, complete fields, or make decisions.

Anti-pattern: each process step exposes a dedicated API endpoint for the frontend (/api/step-1-data, /api/step-2-signature). The frontend then becomes a rigid grid of screens permanently tied to the order of steps. Every process change requires changes in the client application code and a parallel deployment.

Mature pattern: the frontend integrates with the platform through a generic case state contract (for example, GET /api/cases/{id}/current-state). The engine response contains metadata for the current step expressed in an abstract model: view identifier, required fields, validation rules, and available actions. The client application becomes a universal rendering engine that does not need to know the specifics of a given product or process version.

This unification brings three important benefits:

  • Thin, universal frontend: adding a new product variant does not require changes in the presentation layer — it is enough to update the process model and field configuration.
  • Test isolation: business process logic can be verified entirely at the engine and integration mock level without launching the graphical interface. UI components, in turn, can be tested on prepared JSON responses without starting a Camunda cluster.
  • Stable versioning: active processes based on an older definition version render the existing screen layout without friction, while new instances use the updated model — within the same client application version.

Practice 4: Separating the orchestration engine from external integrations

The job of the process engine is to manage state and control flow. Trying to call third-party systems directly from the engine leads to performance and stability problems (handling specific authentication, retry policies, protocol conversion, rate limiting).

In a mature architecture, a layer of dedicated adapters is placed between the engine and each external system (in the Camunda ecosystem: job workers or specialised connectors). The adapter takes a task from the engine, maps generic data to the specific contract of a given provider, handles network communication, and sends the result back to the engine.

This solution separates responsibilities:

  • When an external service provider (for example, a payment gateway or qualified signature provider) changes the API format, the change is limited to the adapter code; the process diagram remains unchanged.
  • When business logic changes (for example, an additional identity verification step appears), the BPMN diagram is modified, while adapters remain unchanged.

In a complex corporate environment, maintaining adapters as independent, versioned modules (separate artefacts and repositories) guarantees failure isolation and an independent change deployment cycle.

When this pattern makes sense, and when it is overengineering

A business process orchestration engine is a powerful tool, but when you are holding a hammer, it is easy to be tempted to treat every problem as a nail.

This pattern is fully justified when:

  • The process is long-running: it exceeds the limits of a single HTTP connection, contains asynchronous points, and requires waiting for a human decision or a response from an external party.
  • There is high variability: the offer covers many segments, products, and sales channels that share common operational stages.
  • The logic changes frequently: business requirements and legal regulations force continuous modification of process paths.
  • Full audit is required: in regulated sectors (banking, leasing, insurance), precise reconstruction of every step of a historical application is an absolute legal requirement.

On the other hand, orchestration has no business justification when:

  • Operations are short and synchronous: adding a product to a cart, retrieving a price list, or simple user login should be handled by standard lightweight API services.
  • The flow is linear, trivial, and unchanging: if the process always consists of the same three steps and will not evolve, introducing a BPMN engine is unjustified architectural overhead — a simple finite state machine in application code is entirely sufficient.
  • The team is not ready: implementation requires understanding the notation, mastering the engine, and maintaining specialised infrastructure. This entry cost makes sense only when justified by the scale and complexity of the system.

Summary

Sales platforms in regulated sectors have characteristics that fit process-driven architecture very well: long duration, high variability, frequent evolution, and the need to maintain strict auditability.

Classic approaches — based only on event choreography or synchronous aggregation — handle individual transactions well, but fail when state is distributed and time coordination becomes difficult.

Implementing an orchestration engine based on the BPMN standard, complemented by layered composition, asynchronous message correlation, a universal frontend contract, and integration adapters, makes it possible to remove these barriers. In organisations building systems with a multi-year growth perspective, this is a technological decision of strategic significance. Making it correctly at an early stage protects against costly technical debt in the future.

Tags

  • process orchestration
  • BPMN
  • DMN
  • Camunda
  • microservices
  • API
  • system architecture
  • sales platform
  • workflow

Working on a similar topic?

Happy to compare notes on architecture, delivery and audit findings in your institution.

Get in touch