QuestionQ13

VerifiedDeveloping Mule Applications

Refer to the exhibits. The Set Variable transformer is configured with the value:

#[ \{ first: "Max", last: "Mule" \} ]

Which valid DataWeave expression can be set as the Logger message attribute to access the value "Max" from the Mule event?

Question Image

Explanation

A value set with Set Variable is stored as a Mule event variable and is accessed in a DataWeave expression through vars. The customer variable contains an object, so selecting its first field with vars."customer"."first" returns "Max".

Learn more

Community Discussion

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