Use Constraint Builder With Constraint Rules Engine
Use Constraint Builder to create constraint models that manage complex configuration
and validation for your products. Constraint models describe real-world entities and define
their relationships with one another. Constraint Builder uses constraints in addition to if-then
rules to customize complex products quickly and accurately.
To define a constraint model, you add
constraints and rules. The Constraint Builder uses Constraint Modeling Language (CML), the
domain-specific language of the Constraint Rules Engine, to represent the constraint model.
To work in the Constraint Builder, you can choose between two interfaces:
In the Visual Builder, use point-and-click tools to define constraints and rules,
without needing to work directly with code.
You can work in either of the interfaces. You can also switch between the Visual
Builder and the CML Editor as you work. For example, you can define constraints and rules in
the Visual Builder, and then view the code in the CML Editor to make additional changes.
Considerations and Limitations
Keep these limitations and
considerations in mind when defining constraint models.
The maximum execution time for constraints is 10 seconds.
Constraint models don't support datetime attributes.
Constraint models don't support product variants.
Constraint Builder only supports unicode letters, numeric characters, and underscores.
Using other characters can cause errors.
Configurator with Constraint Rules Engine doesn't support decimal quantities. Rules or
constraints defined with decimal quantities can't be enforced precisely, and rules that
set quantities to decimal values can pass incorrect quantities to downstream processes.
For example, rules like "If quantity > 1.5 then..." or "If... then quantity = 1.5" won't
be processed accurately.
Create a Constraint Model To create a constraint model, in the Constraint Models app, name the constraint model and specify a context definition.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.