ERPClimb logoERPClimb
CPI iFlows
BTP & Integrationadvanced 4 min read

BTP CPI iFlows Part 5: Router, Splitter, Gather, Multicast and Aggregator Patterns

Preview · a free account unlocks the full lesson

Key takeaway

Apply enterprise integration patterns in Cloud Integration: content-based routing with Router, splitting large messages (General/Iterating Splitter), recombining with Gather, parallel/sequential Multicast, and Aggregator for collecting related messages — including error behavior and performance considerations.

In this lessonShow sections

Visual overview

INTEGRATION PATTERNSProcessing a large file safelySplit, route, gather1Large file arrives20,000 recordsSender2Split in groups500 items per chunk, streamingSplitter3Route per chunkBy country; default routeRouter?Chunk failed?Receiver error for itemsYes → error branch; record & alertNoGather summaryProcessed vs failed countsGatherTip: define split error behavior explicitly — never let records vanishsilently.

Explanation

Part 4 covered mapping; this part covers the routing and fan-out patterns an iFlow can use to direct and recombine messages. A router sends a message down exactly one route based on a condition, typically an XPath expression or similar, and should always have a defined default route for anything that doesn't match.

A splitter breaks one message into several parts — for example, splitting an order into its individual line items — and a gather step recombines the results of that split back into a single outcome. Multicast is different again: it sends copies of the same message to several branches, which can run in parallel or sequentially.

An aggregator collects related messages over time, grouped by a correlation value, into a single combined message.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.