Contact Us 1-800-596-4880

Graphically Construct a Mapping (Design Center)

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.

Through the graphical UI of the Transform component you can do the tasks below. Each task will produce the DataWeave source code that describes the action.

Map a Field

Drag an element on the input structure over to another on the output structure, this action creates a line that joins these two elements.

to transform data c2fc6
to transform data afe5b

Remove a Mapping

  1. Select the corresponding input element.

    A trash can icon graphically construct mapping design center task 2457b appears on the connection.

  2. Click the trash can icon.

Set a Fixed Value or Function

  1. Double click on a field (that doesn’t have any children) in the output tree. This adds a function icon graphically construct mapping design center task 8a822 next to it.

  2. A box with the default value null appears. You can change null to anything you want, such as:

    • A fixed text value by using " ".

    • A reference to an input field.

    • A statement that includes DataWeave functions.

This experience relates to that of using a spreadsheet, where each field can be a direct reference to another field, or can be the product of a function that involves such references.

Functions can be removed by clicking on the trash-can icons that appear next to them.