Contact Us 1-800-596-4880

Access the Metadata Editor

There are several ways of accessing the Metadata editor in Anypoint Studio.

Metadata Tab

  1. Select a component in your canvas to display its Mule Properties view.

  2. Select the Metadata tab on the component’s Mule Properties view.

  3. Click the Add Metadata button to start defining the metadata of your payload, attributes, and variables.

  4. Select the Mule event component to which you want to define metadata.

  5. Click the Edit icon access metadata editor task 93b19 to open the Metadata Editor.

For example, this is the metadata tab for an HTTP Listener source:

access metadata editor task 320a3

Note that when editing inbound endpoint metadata, you can only define outbound metadata.

Transform Message Component

  1. Select a Transform Component in your canvas to display its Mule Properties view.

  2. 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.

    access metadata editor task b0be6

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, your metadata is expressed as a list that contains N instances of that XML structure.

Package Explorer View

  1. Select Window > Show View > Package Explorer if the package explorer is not already displayed.

  2. Right click a project in the Package Explorer view.

  3. Select Mule > Manage Metadata Types.