QuestionQ5

VerifiedDeveloping Mule Applications

Refer to the exhibits. Northern Trail Outfitters is building a Mule application to handle web-client POST requests whose payloads contain order information, including the user name and purchased items. The Shipping connector returns a shipping address for the input payload’s user name. The Shipping connector’s Shipping Address operation is configured with a target named shippingAddress.

The Set Payload transformer must set an items key to the items value from the originally received payload and a shippingInfo key to the response from the Shipping Address operation. What is a straightforward way to correctly configure the Set Payload transformer with the required data?

Question Image

Explanation

A Mule operation’s target stores its output as a Mule event variable, accessible in DataWeave through vars.shippingAddress. Configuring a target also preserves the incoming message for the next processor, so the original order items remain at payload.items. The required output therefore uses items: payload.items and shippingInfo: vars.shippingAddress.

Learn more

Community Discussion

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