BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
3 / 18 · Module 6 — Mule Routing and Orchestration · filtered: cheatsheet← prev⊞ allnext →

6.28Realistic orchestration scenario

Let's design something interview-worthy.

Requirement:

Receive an order. Ensure the customer exists in Salesforce, create/update Opportunity, call an external credit service, and publish an event if approved.

Flow:

POST /orders
      ↓
Validate
      ↓
Save original order
      ↓
ensure-account-subflow
      ↓
Scatter-Gather
   ┌───────┴────────┐
   ↓                ↓
Credit API     Existing SF data
   └───────┬────────┘
           ↓
        Choice
     ┌─────┴─────┐
     ↓           ↓
 approved      rejected
     ↓           ↓
upsert opp.   update status
     ↓
publish event
     ↓
response

Now you're doing actual orchestration rather than a simple pipeline.