QuestionQ17

VerifiedDeveloping Mule Applications

Refer to the exhibits. The Set Payload transformer sets the payload to an object. The Logger component’s message attribute is configured with the string Result: #["INFO" ++ payload].

What is logged when the flow runs?

Question Image

Explanation

DataWeave’s ++ operator concatenates two strings or combines two objects, but it has no overload for a String followed by an Object. Because the payload is an object, evaluating "INFO" ++ payload raises a ++ function argument-type error.

Learn more

Community Discussion

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