Refer to the exhibits. In the Choice router, the When expression for the domesticShipping route is set to “#[payload =’FR’]”
What is logged after the Choice router completes?
Refer to the exhibits. In the Choice router, the When expression for the domesticShipping route is set to “#[payload =’FR’]”
What is logged after the Choice router completes?
The Choice router's When expression uses a single equal sign ('='), which is incorrect for DataWeave syntax in MuleSoft. The correct syntax to compare values in DataWeave is '=='. Therefore, the router's expression will cause a syntax error.
Will fail and throw dataweave error, the correct syntax for the when clause would be: payload == 'FR'
True, there should be a red circle with exclamation mark in the picture. The image was edited...
Will fail and throw dataweave error, the correct syntax for the when clause would be: payload == 'FR'
You mean C, right?
To compare, DataWeave syntax is #[payload == "FR"]. In this case only one = is used so it will give syntax error.
B syntax error, tested locally
Typo error, it's C - Syntax error (not B)