4.4.4.10. Using or changing metadata

In drag and drop transformation you can use metadata associated with the incoming message (such as fileName, receive date, ...). You can also store whatever info in a metadata for future use.

Using metadata

Accessing metadata can be done in your formulas with the function metadata. It just takes one argument, that is the name of the metadata.

Using metadata

Figure 4.198. Using metadata


Define metadata

Defining your own metadata, and storing values into them can be done via the metadata section, on top of the target tree.

To add a new metadata, click on last entry ('...'), and choose your name.

Once the metadata is defined, you can just map value to it exactly as for other fields.

Using metadata

Figure 4.199. Using metadata


Working with object metadata

Babelway transformation supports working with object metadata. This is very useful to add a PDF or images extracted using a Zip unwrapping extra processing in an XML as a Base64 string.

Object metadata as base64

Figure 4.200. Object metadata as base64


Important note

The user defined metadata are propagated from one channel to another. This is useful in case we want to propagate the system metadata from one channel to another.

We will use the user defined metadata to store the system metadata you want to propagate between the channels.

For more information about the system metadata check this link System Metadata