MCD-LEVEL-1 · Question #138
How are multiple conditions used in a Choice router to route events?
The correct answer is B. To find the FIRST true condition, then distribute the event to the ONE matched route. Choice router finds the FIRST true condition, then distribute the event to the ONE matched route. MuleSoft Doc Ref : https://docs.mulesoft.com/mule-runtime/4.1/choice-router-concept The Choice router dynamically routes messages through a flow according to a set of DataWeave…
Question
How are multiple conditions used in a Choice router to route events?
Options
- ATo route the same event to the matched route of EVERY true condition
- BTo find the FIRST true condition, then distribute the event to the ONE matched route.
- CNone of these
- DTo find the FIRST true condition, then route the same event to the matched route and ALL
How the community answered
(67 responses)- A4% (3)
- B93% (62)
- C1% (1)
- D1% (1)
Explanation
Choice router finds the FIRST true condition, then distribute the event to the ONE matched route. MuleSoft Doc Ref : https://docs.mulesoft.com/mule-runtime/4.1/choice-router-concept The Choice router dynamically routes messages through a flow according to a set of DataWeave expressions that evaluate message content. Each expression is associated with a different routing option. The effect is to add conditional processing to a flow, similar to an if/then/else code block in most programming languages. Only one of the routes in the Choice router executes, meaning that the first expression that evaluates to true triggers that route's execution and the others are not checked. If none of the expressions are true, then the default route executes.
Topics
Community Discussion
No community discussion yet for this question.