GlossaryLoader¶
The GlossaryLoader processes and manages glossary keys and translations using Flow ETL and the BulkWriterFacade.
It loads given rows to the spy_glossary_key and spy_glossary_translation tables.
After loading, it also triggers the publish events for glossary.
Configuration¶
XPath |
Type |
Description |
|---|---|---|
|
Attribute |
Name of the field containing the key. |
|
Attribute |
Name of the field containing the value for the translation table. |
|
Attribute |
Name of the field containing the |
|
Attribute |
Name of the field containing the localized key values. |
|
Attribute |
If set to |
Example 1¶
Input data¶
Row |
keyField |
translationField |
localeIdField |
|---|---|---|---|
1 |
String: |
String: |
Integer: |
2 |
String: |
String: |
Integer: |
Pipeline configuration¶
<glossary
keyField="keyField"
translationField="translationField"
localeIdField="localeIdField"
/>
Database output¶
id_glossary_key |
key |
is_active |
|---|---|---|
|
|
|
|
|
|
id_glossary_translation |
fk_glossary_key |
fk_locale |
value |
is_active |
|---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
Pipeline output¶
Row |
key |
translation |
localeId |
|---|---|---|---|
1 |
String: |
String: |
Integer: |
2 |
String: |
String: |
Integer: |
Example 2¶
This example uses the optional localizedKeyValuesField.
The keyField and translationField must match the provided array.
The localeIdField can be set to any string.
Input data¶
Row |
localizedKeyValuesField |
|---|---|
1 |
Array: |
2 |
Array: |
Pipeline configuration¶
<glossary
keyField="keyField"
translationField="translationField"
localeIdField="localeIdField"
localizedKeyValuesField="localizedKeyValuesField"
/>
Database output¶
id_glossary_key |
key |
is_active |
|---|---|---|
|
|
|
|
|
|
id_glossary_translation |
fk_glossary_key |
fk_locale |
value |
is_active |
|---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
Pipeline output¶
Row |
key |
translation |
localeId |
|---|---|---|---|
1 |
String: |
String: |
Integer: |
2 |
String: |
String: |
Integer: |