Skip to content · Zum Inhalt

Rules and the rule builder

A rule is what a family knows about itself. It reads the answers of a configuration, compares them with values, and then acts: it sets a value, hides or shows an answer, stops the configuration with a message of its own, or runs another rule. A rule has a code, a description that says in one sentence what the rule is for, and a category code that groups rules so that an action can run only one group.

Rules are written on the Rules page and edited in the rule builder, which opens from the rule itself.

Before you start

  • The app is set up: the Configuration ID No. Series on the Setup page is filled.
  • The family the rule guards exists as an item category, and its options and choices are in place, because a rule can only read variables that the family offers.
  • You know the code you want to group the rule under, for example STD-LOGIC.

Create a rule

  1. Choose the search icon, enter Rules, and open the page.
  2. Choose New. A new line is added to the list.
  3. In Code, type the code of the rule, for example STD-OAK-WOOD.
  4. In Description, write the sentence the rule stands for, for example Choice C set to Premium. Whoever reads the list later knows what the rule does without opening it.
  5. In Category Code, type the group the rule belongs to, for example STD-LOGIC.
  6. Choose Edit Definition to open the rule builder and write the conditions and the actions of the rule.
  7. Close the rule builder. The rule is in the list and runs with every configuration that reaches it.

The rules of the company, each one row with its code, its sentence and its group

Tip: Write the Description as the sentence a salesperson would say out loud — "Choice C set to Premium" tells the reader more than "Rule 17".

Change a rule

  1. Open the Rules page and select the rule you want to change.
  2. Read its Code, its Description and its Category Code to be sure it is the right line.
  3. Choose Edit Definition. The rule builder opens with the rule's lines.
  4. Change the conditions or the actions, add a line, or remove a line.
  5. Close the rule builder. The rule is stored as you left it.
  6. To remove a rule altogether, select it and choose Delete.

A rule selected in the list, with the actions that read it and change it

Important: Deleting a rule does not undo what it did. A configuration that was refused by the rule can be configured again once the rule is gone, but a configuration that was saved with a value the rule set keeps that value.

Find a rule by its category

  1. Open the Rules page.
  2. Choose the filter arrow on Category Code and type the group you are after, for example STD-LOGIC.
  3. Read the Description of the remaining lines. Each one is the sentence the rule stands for.
  4. Clear the filter to see the whole list again.

The rules read by their code, their sentence and their group

See the variables a rule may use

  1. Open the rule in the Rules page and choose Edit Definition.
  2. In the rule builder choose Variables. The page shows every variable the rule may read.
  3. Read a variable by its name, its type and its description; the variables are the codes of the family's options.
  4. Close the page. Nothing is changed by reading it.

The rules a rule builder draws its variables from, each with its code and its group

Example

QUALIA Manufacturing ApS writes the rule STD-OAK-WOOD with the description Choice C set to Premium and the group STD-LOGIC. The list also holds STD-R3, the Rule group base of the same group STD-LOGIC, and HARDWARE-CHOICE-4, Glass Shelf Insert, in the group WOODEN-OAK. When a salesperson changes choice C, the rules of STD-LOGIC run and the rule STD-OAK-WOOD decides what the change means.

What happens

  • A rule is stored once and runs for every configuration of the families that reach it.
  • The rules of one group can be run on their own, so an action can be limited to STD-LOGIC or to WOODEN-OAK.
  • A rule that ends in an error action refuses the save of the configuration, and the message names the option the message is about.

If something goes wrong

  • A rule is refused when it runs, and the message names a line. A condition compares a blank or a non-numeric value with Is Less Than, Is Greater Than or one of their siblings. Compare the value with Is Blank or Contains first, or compare against a number.
  • A group is refused when the rule runs. The group has no Line Subtype. Give the group one of Match All, Match Any, Match None, Ignore All or Action Prompt.
  • A configuration cannot be saved and the message is the text of a rule. A rule ended in an error action. Read the message: it names the option the rule is about. Change the answer, or change the rule if the rule is wrong.
  • A rule is not found by its category. The Category Code is free text; a typing difference makes it a different group. Correct the code in the list with Edit List.