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:

tags

In the transformation, a rule retrieves all metadata.

tags

The result is a JSON with all metadata:

tags

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:

tags

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

tags

  1. key column, i.e. the name of the attribute
  2. the corresponding value
  3. another key-value pair is added by clicking on the plus sign
  4. click on the trash can to delete a row
  5. click on Save to save the data

In the image above, 2 entries have been added, the complete metadata now looks like this:

tags

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