DataWeave can be used in Mule to transform message payloads. The Transform Message element allows writing DataWeave code to transform incoming message elements into outgoing message elements. The editor provides input/output previews and autocomplete. DataWeave expressions can also be used directly in other Mule components using the dw() function.