You are here:
Set Up Exclusions and Clauses
To set up exclusions and clauses you use Constraint Builder to update the constraint model that defines the insurance product. From that model, you generate content text that you use to create specific clauses that can be automatically or manually added to quotes.
Required Editions
| Available in: Lightning Experience |
| User Permissions Needed | |
|---|---|
| To create rule models using Constraint Builder | Product Configuration Rules User |
| To create add clauses to products | Manage Product Catalog |
-
Create the exclusion or clause.
- From the App Launcher, select Insurance Clause, then fill in the require fields.
- The Code is whatever alphanumeric string you choose to reference the clause later when you create a rule model. For example vehicleUsage.
- The Content Text is a combination of plain text and variables that are replaced with values based on your Context Definition mappings. An example for an auto insurance policy might be Use of the {{vehicleMake}} vehicle is categorized as {{usageType}} for {{userProfile}}.
- Make sure the effective date is prior to the expiration date.
- Set the Type to be either Exclusion or Clause.
- Set the Creation Method of the exclusion or clause to either AutoAdded to automatically add it to quotes or Manual to required that it be added manually.
- Save the clause.
-
Add the Clauses component to your product pages.
- On each product page, select Setup then Edit Page.
- Select the Details tab and in the right panel select Add Tab and choose Custom.
- Name the new, custom tab Clauses.
- In the left panel, select Components, search for Product Clauses, then drag that component onto the product page.
- Save the page.
- For more information about editing pages, see https://help.salesforce.com/s/articleView?id=platform.lightning_app_builder_customize_lex_pages_add_tabs.htm&language=en_US
-
Add the new clause to your product pages.
- From a product page, select Add Product Clause.
- Select a product from the product hierarchy and click Next.
- Select the clause you just created and click Save.
- You should now see the clause displayed on the Clause tab of the product page.
-
Configure the clause on the product page.
- On the product page, use the dropdown on the far right of the clause to select Configure.
- Copy the contents of the Rule Name field and save it in a text editor. This field contains the rule key that you'll need later when working with Constraint Builder, for example Ex__autoSilver__auto__vehicleUsage.
- You may adjust the effective date and expiration date to shorten the period of the clause, but you can't extend the clause beyond the bounds set when you first defined it.
-
Set up the rule model.
- Select Set up a rule model at the bottom of the clause configuration page. This takes you to a list of constraint models. If you don't have any constraint models yet, seehttps://help.salesforce.com/s/articleView?id=ind.product_configurator_configuration_rules.htm&language=en_US first.
- Select a rule model to open Constraint Builder with that rule model.
- In the Constraint Builder header in the upper left corner, select CML Editor.
-
Create a rule using the rule key you copied earlier when configuring the clause. For
example, you might add the following to the section of a rule that defines coverage:
boolean Ex__autoSilver__auto__vehicleUsage = Year > 2020 && Auto_Value > 10000 && Auto_Value < 30000; - See https://help.salesforce.com/s/articleView?id=ind.product_configurator_use_the_cml_editor.htm&language=en_US for details on using the Constraint Modeling Language.
- Save and activate the rule model.
- Map the variables you used in the Content Text.
Did this article solve your issue?
Let us know so we can improve!

