11 / 18 · Module 14 — External Automated Testing of Mule Integrations · filtered: cheatsheet← prev⊞ allnext →
14.25Poll the business condition, not just record existence
If async flow creates Account first and Contacts later:
Account appears
doesn't mean processing is complete.
Poll for:
Account exists
AND
expected Contacts exist
AND
Integration_Status__c = COMPLETE
if such a status exists.
Choose a condition representing actual completion.