How do I map Batch Processor data to a global boolean format?
How do I map Batch Processor data to a global boolean format?
Normally, boolean values are written as the "true" or "false". However, if you have a specific format that you would prefer these booleans to be written in, for example, "Y" for true or "N" for false, you can do so by configuring it with the alternative boolean formatter; the configured value will then apply a value of True or False to all boolean attributes within the configuration file when reading from, or writing to, a data source.
When writing output values, the configured values will be applied strictly as follows:
The configured true-value will be used for all TRUE output values
The configured false-value will be used for all FALSE output values
When reading input values, the configured values will augment the default parsing as follows:
The input value is considered TRUE if it matches the configured true-value
The input value is considered FALSE if it matches the configured false-value
The default parsing rules will be applied if the input value does not match either of the configured values.