Guide

Analyze

Rule conflicts

1 min readOpen in Neblex

Rules and functions written at different times can contradict each other. Data Functions › Rule Conflicts checks a whole model before the contradiction reaches a salesperson.

Choose the Model and click Run audit. Each finding has a Severity (errors cannot work as intended, warnings might be deliberate), a Type, a Message, the Target and the rules, functions or layouts involved. Typical findings:

  • an attribute that is both hidden and required, or required while every option is disabled, so the configuration can never be completed;
  • a section hidden by a rule whose own trigger attribute sits in that section, so the person configuring can never undo it;
  • a required attribute that is not on any layout;
  • a value set to an option that is disabled or does not exist;
  • several rules setting the same attribute to different values, or two price overrides on the same item;
  • a function that watches values nothing produces, so it never runs.

Filter by severity, fix the rules, and run the audit again. Check conflicts in the rule builder runs the same check for a single rule as you write it.