Getting started Community Training Tutorials Documentation APIs, AI & Tools
Graphically Construct a Mapping
Graphically Construct a Mapping
Use the graphical UI of the Transform Message component to map fields and structures and to set fixed values or functions. Studio adds the necessary lines to your DataWeave code for each 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 null value 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.