Access the Metadata Editor
There are several ways of accessing the Metadata editor in Anypoint Studio.
Metadata Tab
-
Select a component in your canvas to display its Mule Properties view.
-
Select the Metadata tab on the component’s Mule Properties view.
-
Click the Add Metadata button to start defining the metadata of your payload, attributes, and variables.
-
Select the Mule event component to which you want to define metadata.
-
Click the Edit icon to open the Metadata Editor.
For example, this is the metadata tab for an HTTP Listener source:
If you edit inbound endpoint metadata, you can define outbound metadata. |
Transform Message Component
-
Select a Transform Component in your canvas to display its Mule Properties view.
-
Click the Define Metadata link in either the input or output columns of the component, depending on the metadata you want to define.
If the previous component in your flow is already defining output metadata, the input section of the Transform Component already recognizes it. You can right click the payload field and select Set Metadata.
When you set metadata for a Transform Message component, you can select a checkbox to wrap elements in a collection. Selecting the wrap-elements option sets the metadata as a list, where each element on the list is an instance of the structure you defined. So for example, if you set your metadata as an XML structure and click this checkbox, metadata shows as a list that contains N instances of that XML structure.