Metadata is data that is available everywhere within Chioro or a flow. The data is accessed via the ‘context’ attribute
For example, the simple flow consists of three operations:

In the transformation, a rule retrieves all metadata.

The result is a JSON with all metadata:

The first section contains the data of the current operation, followed by the data of the entire flow.
userProperties are the attributes defined by the user that are available everywhere in Chioro.
Adding metadata to the flow is explained below.
Examples of access:
| code | description |
|---|---|
context("") |
all metadata |
context("name") |
name of the current operation |
context("flow.name") |
name of the flow |
context("flow.userProperties") |
Flow width, user-defined data |
User-defined flow-wide metadata is created as follows:

Click on the symbol at the top of the flow editor. A window opens where key-value pairs can be entered:

- key column, i.e. the name of the attribute
- the corresponding value
- another key-value pair is added by clicking on the plus sign
- click on the trash can to delete a row
- click on Save to save the data
In the image above, 2 entries have been added, the complete metadata now looks like this:

The access to the name of the cat:
context("flow.userProperties.cat_name")