add_custom_field_to_export.py
The add_custom_field_to_export.py script is used to add custom MDC fields to a configuration YAML file that is used by the data_export.jar program.
Syntax
add_custom_field_to_export.py inputConfigFile updatedConfigFile
Command Line Options
- inputConfigFile
- The name of the input configuration file, either one of the sample configuration files provided with the product (under /opt/mtx/data) or one you created.
- updatedConfigFile
- The name of the generated configuration file with the added custom fields and their required functions, which will be added by the script. Use this generated file as the input for the data_export.jar program.
Results From Running add_custom_field_to_export.py
Given a YAML file, the add_custom_field_to_export.py Python script looks up specific fields that are not lists, arrays, or structs. It adds entries for the fields that it finds to a new YAML file that it generates for use as input to the data_export.jar program. All other entries are copied over from the input YAML file to the new YAML file without any changes.
Configuration Properties
The entries in the YAML file that is used to control the behavior of the data_export.jar program have a defined set of parameter values used to describe MTX objects. Three sample configuration YAML files are provided when you install the product, under the opt/mtx/data directory. You can use these sample YAML files as they are, customize them, or create your own YAML files, using the appropriate parameter values for the MTX objects and the optional configuration file parameters.