The rule builder is used in different views within the Workbench. Currently, you can define condition rules for the following properties:
The visibility and preselection rules are based on Question-Answer Option pairs, the annotation filters uses Data Attribute-Value pairs as conditions. The following description of the rule builder settings are based on the Question-Answer pairing but can be applied to the Data Attribute-Value variant as well.
Table of contents
Normally if no conditions are defined, you can click on a button with a caption like "Add Conditions ...". If there are already some, the caption text is "Edit Conditions ...".
Either way, clicking the button opens a modal window in which you can add, edit and delete the option's selection conditions.
If you click on the "Add Condition" button a new empty condition line appears (see image above). It contains the following elements.
Within this combobox you can select any available question from the Concept Board.
A Question is available if its selection does not create a circular dependency. This can happen if one of the source questions contains the current target question as its source question. In this case, a selection of Answer A of the source question in the Product Guide can lead to a Answer B selection of the same question. These successive actions happen instantly to that a user selection is directly overwritten by another selection. That is why these questions are not available. Circular dependency schema: Described in words: Question A is defined as a source condition in Question B. Question B is also a source of Question C. Now, if you want to select Question A as a source condition in Question C, it is not possible because it would close the circle of dependencies. |
Note: The circular dependency check only works for the preselection rule at the moment. |
After a question was selected, it is possible to choose a mathematical operator. Depending on the questions' answer option type, different operators are displayed.
Answer Option Type | Operator | Constraints to fulfill the condition |
---|---|---|
default, ordered, boolean | one of | At least one of the given answer options has to be selected |
all of | All of the given answer options have to be selected | |
is answered | Any answer can be to be selected | |
is not answered | As long as no answer is selected | |
none of | None of the given answer options have to be selected | |
continuous numeric | less than | The answer must be less than the given value. |
less than equal | The answer must be less or equal than the given value. | |
greater than | The answer must be greater than the given value. | |
greater than equal | The answer must be greater or equal than the given value. | |
between | The answer must be between a start and an end value. Start and end values are not included. | |
not between | The answer must be outside the interval of start and end value. Start and end values are included. | |
equal | The answer must be equal to the given value. | |
not equal | The answer must be unequal to the given value. |
The answer option selection is enabled after selecting a question. Depending on the questions' answer option type you can either select an existing answer option from a combobox (for default, ordered and boolean) or enter a numeric value (for continuous numeric).
Clicking the button with the caption "+( )" creates a group around the corresponding condition row. With the new subgroup, a new logical operator selection is added too. That allows you to change the logical operator within this group to create more complex condition trees.
Within this group, you can add further conditions and create more nested subgroups. You can also remove the group again. Note that removing the group also removes all underlying conditions as well.
Structure: Example: Explained in words: |
The button with the trash can icon removes the corresponding condition from the rule set. This action cannot be reverted.