Graphically Construct a Mapping (Anypoint Studio)
Standard Support for Mule 4.1 ended on November 2, 2020, and this version of Mule will reach its End of Life on November 2, 2022, when Extended Support ends.
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 Message component you can do the tasks below. When doing each, the necessary lines are added to the DataWeave code to describe the action.
Drag an element on the input structure over to another on the output structure, this casts a line that joins them.
Drag a high-level structure that contains lists of elements or inner fields onto another in the output. This creates a shaded region covering all the mapped structure. Fields that have identical names in these structures are automatically mapped too.
Double click on a field in the output tree. This adds a function icon next to it.
A new line is added to the DataWeave code that assigns a default
nullvalue to the field. This line is highlighted. Change its value to anything you want.
You can add:
A fixed string value by using " ".
A reference to an input field.
A DataWeave statement that includes functions.