09_ControlFlow Flashcards
What is a router?
they send events t oone or more gorups of event processors (routes)
What does the Choice router do?
1 route executed based on conditional logic
What does the First Succesful router do?
routes executed sequentially until one is succesfully executed
What does the Scatter-Gather router do?
All routes execute concurrently.
What does the Round Robin router do?
one route executed, which one is selected by iteration through a list maintained across executions
Where does the event get sent with a scatter-gather router?
to every route concurrently (same time)
What does the scatter-gather return?
Collection of objects (object of objects). Each object contains attributes and payload from each Mule event returned from a flow.
Which router sends the event to one route based on conditional logic?
Choice router
How are the conditions written for the Choice router?
DataWeave.
What are validators?
Provide a way to test some conditions are met and throw an error if validation fails.
After a scatter-gather what would you use to flattern the data?
DataWeave to flattern the collection (as an object of object is returned)
What should you use to specify whether an event can proceed in a flow?
Validation