MuleSoft
MCD-LEVEL-1 · Question #197
Refer to the exhibits. In the choice router, the When expression for the domestic shipping route is set to "#[payload= "FR"]". What is the output of logger after the execution of choice router is…
The correct answer is D. A dataweave syntax error. To compare, DataWeave syntax is #[payload == "FR"]. In this case only one = is used so it will give syntax error. Hence the correct answer is A dataweave syntax error
DataWeave
Question
Refer to the exhibits. In the choice router, the When expression for the domestic shipping route is set to "#[payload= "FR"]". What is the output of logger after the execution of choice router is completed?
Exhibit
Options
- A"Domestic"
- B"International"
- C"US"
- DA dataweave syntax error
How the community answered
(37 responses)- A14% (5)
- B8% (3)
- C5% (2)
- D73% (27)
Explanation
To compare, DataWeave syntax is #[payload == "FR"]. In this case only one = is used so it will give syntax error. Hence the correct answer is A dataweave syntax error
Topics
#Choice router#DataWeave#syntax error#comparison operators
Community Discussion
No community discussion yet for this question.
