Salesforce Flow submits an attached invoice to a published MuleSoft Intelligent Document Processing action, receives the result through a platform event, and creates Invoice__c and InvoiceLine__c records only after a fail-closed gate: execution status, required fields, arithmetic consistency and id…