Nested Order Processing

An outer order pipeline binds whole sub-workflows as single nodes, nesting Payment and FraudCheck two levels deep with inner events bubbling to the parent

Nested Order Processing An outer order pipeline binds whole sub-workflows as single nodes, nesting Payment and FraudCheck two levels deep with inner events bubbling to the parent Payment sub-workflow FraudCheck sub-workflow Order Intake · incoming order · Architecture component Order Intake incoming order Order Pipeline · outer workflow · Architecture component · parent Order Pipeline outer workflow parent Payment · sub-workflow · Payment sub-workflow · level 1 Payment sub-workflow level 1 Charge Card · inner step · Payment sub-workflow · level 2 Charge Card inner step level 2 Fraud Check · sub-workflow · FraudCheck sub-workflow · level 1 Fraud Check sub-workflow level 1 Risk Score · inner step · FraudCheck sub-workflow · level 2 Risk Score inner step level 2 Fulfillment · ship order · Architecture component Fulfillment ship order Event Bus · bubble up · Architecture component · events Event Bus bubble up events submit on success event event bubble up Legend External Backend Message bus

Outer Pipeline

  • • The order pipeline is the parent workflow
  • • It orchestrates Payment, FraudCheck, and Fulfillment
  • • Sub-workflows are bound as single nodes

Two Levels Deep

  • • Payment nests Charge Card as an inner step
  • • FraudCheck nests Risk Score as an inner step
  • • Nesting composes without flattening the graph

Event Bubbling

  • • Inner steps emit events to the bus
  • • Events bubble up to the parent pipeline
  • • The parent reacts without reaching inside a child