BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
193 / 1048 · Module 6 — Mule Routing and Orchestration← prev⊞ allnext →

6.24Example decomposition

Instead of this monster:

customer-flow
 ↓
validate
 ↓
transform account
 ↓
upsert account
 ↓
extract id
 ↓
transform contacts
 ↓
upsert contacts
 ↓
call marketing
 ↓
build response

I'd likely structure:

customer-api-flow
      ↓
validate-customer-subflow
      ↓
upsert-account-subflow
      ↓
upsert-contacts-subflow
      ↓
publish-customer-event-subflow
      ↓
build response

Now each part has a clear responsibility.