QuestionQ35

VerifiedDeveloping Mule Applications

Refer to the exhibits. Each route in the Scatter-Gather assigns its payload to the number displayed in its label.

What response is returned to a web-client request sent to the HTTP Listener?

Question Image

Explanation

A Mule 4 Scatter-Gather produces an indexed object of the route-result messages: {0: messageFromRoute0, 1: messageFromRoute1, …}. Assigning payload directly in the DataWeave transform preserves those message objects rather than extracting their individual payload values. The JSON response therefore contains keys "0" and "1", each mapped to a message that includes its attributes and the respective payload, "100" or "200".

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!