An API has been built to enable scheduling email provider. The front-end system does very little data entry validation, and problems have started to appear in the email that go to patients. A validate- customer'' flow is added validate the data.
What is he expected behavior of the `validate-customer'' flow?
- If only the email address Is invalid a VALIDATION.INVALID_EMAIL error is raised
- If the email address is invalid, processing continues to see if the appointment data and customer name are also invalid
- If the appointment date and customer name are invalid, a SCHEDULE:INVALID_APPOINTMENT_DATE error is raised
- If all of the values are invalid the last validation error is raised:SCHEDULE:INVALID_CUSTOMER_NAME
Answer(s): A
Explanation:
The validate-customer flow uses an until-successful scope to validate each field of the customer data. The until-successful scope executes its processors until they succeed or exhausts the maximum number of retries. If any processor fails, it raises an error and stops executing the remaining processors. Therefore, if only the email address is invalid, a VALIDATION.INVALID_EMAIL error is raised and the validation of appointment date and customer name is skipped.
Reference:
https://docs.mulesoft.com/mule-runtime/4.3/until-successful-scope
Reveal Solution Next Question