QuestionQ6

VerifiedDeveloping Mule Applications

Refer to the exhibits. The updateTemp and getTemp flows use the same default object store.

A web client sends a single GET request to the test flow’s HTTP Listener, causing the test flow to invoke the updateTemp flow. After the test flow has returned its response, the web client sends a separate GET request to the getTemp flow’s HTTP Listener. The test flow is not invoked again.

What response is returned by the request to the getTemp flow’s HTTP Listener?

Question Image

Explanation

A For Each scope processes each array element one at a time, and each POST stores its payload under the same temp key. Object Store Store overwrites an existing value when failIfPresent is false, so the successive values leave only the final value, 85. Retrieve All returns the current key-value pairs, producing {"temp":"85"}.

Learn more

Community Discussion

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