Filtering Data
Filtering Data
Follow the following recommendations when creating a new
data set:
- Follow general XML formatting rules.
- Use & to get ampersands &.
Follow the same rule for other special characters.
- Avoid using angle brackets or <element> tags as placeholder values.
- Use '\\' instead of backslashes ('\').
Placeholder values in data sets are filtered by data population before the database update occurs. This provides a consistent way to define environment-specific values for both SQL and import/export files.
Placeholders values are configured in the database/ext-data module
in the following files:
File | Description |
---|---|
resources/config/filtering.properties | Specifies the default values that are shared by all environments. You can override these values in environment-specific property files. |
resources/environments/*/filtering.properties | Specifies environment specific property values. Each environment has its own filtering.properties file. For example, environments/local/filtering.properties |
In this example, the placeholder ${ep.smtp.host} is defined in an
import/export data file with a default value as
localhost.
<configuration_setting> <name_space>COMMERCE/SYSTEM/EMAIL/mailHost</name_space> <default_value type="String">${ep.smtp.host:localhost}</default_value> ... </configuration_setting>You can replace the default value with the following environment-specific values. For example: