QuestionQ46

VerifiedDesign and implement API-led integrations

Refer to the exhibits.

In the color flow, both the variable called color and the payload are set to “red”. An HTTP POST request is then made to the decideColor flow’s HTTP Listener.

What is the payload value at the Logger component once the HTTP Request has completed?

Question Image

Question Image

Question Image

Explanation

An HTTP Listener starts a separate Mule event and does not automatically receive variables from the calling flow. Thus, vars.color is null in decideColor, so its conditional sets the payload to white. By default, an HTTP Request operation places the HTTP response body in its output payload, which is what the Logger records.

Learn more

Community Discussion

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