Concept 5 of 15Catalog, configure, price

Product Configurator and constraint rules

Constraint-based configuration with the Constraint Modeling Language (CML), the visual builder and CML editor, constraint types, smart product discovery with constraint rules, comparison with CPQ product rules, and performance of large models.

Your confidence:Not rated

Simple explanation

The Product Configurator ensures a configuration is valid and complete.

Constraint-based means you describe what must be true (constraints), and the engine finds valid combinations, instead of writing step-by-step rules for each scenario.

ToolUse
Visual builderSimple constraints without code
CML editorComplex models written in the Constraint Modeling Language
Constraint rulesRequires, excludes, quantity relationships, attribute conditions

Examples of constraints

  • A server with more than 64 GB memory requires the high-capacity power supply.
  • Product A excludes product B.
  • Storage quantity must be at least the number of servers.
  • An attribute value limits other attribute values.

Recent releases add smart product discovery: constraint rules surface compatible products and hide incompatible ones while selling, and importing product defaults from the catalog into CML.

vs CPQ product rules: CPQ used selection, validation, alert and filter rules evaluated in order; constraint models are declarative and handle interactions between many options more reliably.

Real-world analogy

Constraint configuration is a Sudoku solver: you state the rules of the grid, and it works out which numbers can go where, instead of you writing instructions for every possible puzzle.

Worked example

An industrial pump configurator has 40 attributes. The CML model states pressure ranges by motor size, material compatibility with fluid type, and required certifications by region. Sellers only see valid choices, and invalid combinations are explained.

Diagram

Rendering diagram…

Key points

  • Declare constraints; the engine finds valid configurations.
  • Visual builder for simple, CML for complex models.
  • Requires, excludes, quantity and attribute constraints.
  • Explains conflicts to the user.
  • More robust than ordered CPQ product rules for complex products.

Limits and gotchas

  • CML is a skill teams must learn; budget training.
  • Very large models need performance testing with realistic configurations.
  • Keep constraint models in version control and test them like code.

🎀 How to say this in an interview

Contrast declarative constraints with procedural rules, give two example constraints, and mention testing and performance.

Common follow-ups

How do you test a constraint model?

A suite of valid and invalid configurations with expected outcomes, run after every change, plus performance tests on the largest bundles.

Who maintains CML models?

Product configuration specialists with developer support; changes go through review and deployment like code.