Define profile consistency conditions
The Consistency conditions section supports the definition of logical conditions applied to profile elements using boolean operators.
Value dependencies can be defined on profile elements, e.g. When Element A has value X, Element B must have value Y.
Existence dependencies can be defined on profile elements, e.g. When Element A exists, Element B must not exist.
Combinations of value and existence dependencies can also be defined, e.g. When Element A has value X, Element B must not exist.
Multiple consistency conditions can be created.
To create a new consistency condition, follow this workflow logged in as a Superuser or Theme Manager:
- Click «Add consistency condition».
- Select a boolean operator from the dropdown menu.
- Click «+Create condition».
- Select the feature type you would like to reference in the condition.
- Click the property name to expose the available conditions. Select the condition you would like to apply from the drop down menu. It will be used as «If» statement for the condition.Select a second property and repeat the process to add a «Then» statement as second part of the condition. To view the consistency condition expression you have created, scroll to the bottom of the dialog.
- When you are finished, click «Confirm»
- In the final step, add a name and description to the consistency condition. When providing a name, make sure to avoid special characters or spaces (e.g. &, %, ?, #) and to use capitals and underscores or hyphens instead of periods, spaces or slashes. No restrictions apply for the description. To add a tagged value to the condition, click «+Add tagged value». Select a tag name from the drop down menu. Enter the value in the text box provided. Multiple tagged values for the same tag name are not possible. When you are finished, click «Create».