Home | Table of Contents | Dictionary | CloverETL 4.6.1
--- | --- | ---
Prev | ETL Graphs | Next

# Chapter 38. Dictionary

Dictionary is a data storage object associated with each run of a graph in CloverETL. Its purpose is to provide simple and type-safe storage of the various parameters required by the graph.

It is not limited to storing only input or output parameters but can also be used as a way of sharing data between various components of a single graph.

When a graph is loaded from its XML definition file, the dictionary is initialized based on its definition in the graph specification. Each value is initialized to its default value (if any default value is set) or it must be set by an external source (e.g., Launch Service, etc.).

| Important
In CTL2 dictionary entries must always be defined first before they are used. The user needs to use standard CTL2 syntax for working with dictionaries. No dictionary functions are available in CTL2. See Dictionary in CTL2

Between two subsequent runs of any graph, the dictionary is reset to the initial or default settings so that all dictionary runtime changes are destroyed. For this reason, dictionary cannot be used to pass values between different runs of the same graph.

| Important
Dictionary entry must be read and written in different phases. If you write data to a dictionary and read it in the same phase, you may get the previous dictionary entry value. Both components run concurrently and therefore you may read dictionary before data has been written to it.

In this chapter we will describe how a dictionary should be created and how it should be used:

- Creating a Dictionary

- Using the Dictionary in a Graph

Prev | Up | Next
Internal/External Graph Elements | Home | Table of Contents | Creating a Dictionary