Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Creating a circumstance template

Updated on April 5, 2022

Create a circumstance template to specialize a rule by more than one feature.

  1. In the header of Dev Studio, click CreateTechnicalCircumstance Template.
  2. On the Circumstance Template Record Configuration form, enter values in the fields to define the context of the flow.
    1. In the Label field, enter text that describes the purpose of the circumstance template.
    2. Optional: To change the default identifier for the circumstance template, click Edit, and then provide a unique value in the Identifier field.
    3. Select the Context.
    4. In the Apply to field, press the Down Arrow key and select the class that defines the scope of the circumstance template.
    5. In the Add to ruleset field, select the name and version of a ruleset that stores the circumstance template.
  3. Click Create and open.
  4. On the Template tab, list the properties that circumstance definitions can evaluate.
    1. Click the Add a row icon.
    2. In the Property field, press the Down Arrow key, and then select the name of a property in your application.
  5. Click Save.
  6. Control the order in which the circumstance definitions for this template run.
    1. On the Definitions tab, ensure that there are at least two circumstance definitions listed in the All Definitions section.
      You may need to wait for your development team to create circumstance definitions that are associated with your circumstance template.
    2. In the Priority Definitions section, click the Add a row icon.
    3. In the field that is displayed, press the Down Arrow key, and then select the name of a circumstance definition.
    4. Drag a field to a different position in the list to change its run-time priority.
    5. Click Save.
  • Circumstance templates

    Use a circumstance template rule to identify properties for multivariate circumstanced rules. A circumstance template rule contains an array of properties such as .State, .Channel, and .ClaimAmount that reference property values in one or more circumstance definition rules. These rules define the value combinations for each of the properties defined in the circumstance template rule.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us