Contact Free trial Login

To Move Transformation to Separate Files (Anypoint Studio)

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
  3. Type a name for your .dwl file.

  4. Click OK.

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

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.