BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
15 / 81 · Module 7 — Error Handling in Mule · filtered: interview← prev⊞ allnext →

7.39Compensation

Example:

create Salesforce
      ↓
create Billing
      ↓ FAIL

Possible compensating action:

deactivate Salesforce record

or:

set Integration_Status__c = "PENDING_BILLING"

or:

queue billing operation for later retry

This is similar to a Saga pattern.

Strong sentence:

“For cross-system side effects I assume partial state is possible and design compensation or reconciliation rather than assuming an exception gives me distributed rollback.”

Senior answer.