Contact Us 1-800-596-4880

Move Transformation to Separate Files (Anypoint Studio)

This version of Mule reached its End of Life on May 2, 2023, when Extended Support ended.

Deployments of new applications to CloudHub that use this version of Mule are no longer allowed. Only in-place updates to applications are permitted.

MuleSoft recommends that you upgrade to the latest version of Mule 4 that is in Standard Support so that your applications run with the latest fixes and security enhancements.

By default, the DataWeave code from a Transform Message component is expressed inline within your Mule XML file. You can instead keep each in a separate file ( .dwl ) and have your XML reference them. These files are packaged with your Mule application when built.

To export the DataWeave code to a .dwl file:

  1. Click the Edit Current Target button.

    edit target
  2. Select the File radio button.

    external file 2
    • Type a name for your .dwl file.

    • Click OK.

A file is created under the src/main/resources folder in your project containing your DataWeave code.