You are viewing the documentation for Blueriq 15. Documentation for other versions is available in our documentation directory.
For the design guide on how to model logic see Decision Management guide.
What is it?
A rule group is a group of rule elements (external, business, decision table and or validation rule) with a precondition. At runtime the precondition determines whether the rules in the group apply or not.
What does it do?
A rule group makes it possible to determine when certain rules apply. When for example there is a new version of a product with new rules it is common for the new rules to apply only to new customers. Existing customers will retain the old rule set . By either creating an entity/attribute that determines which version number the customer has or using an expression to specify a subgroup of customers, a precondition can be constructed to determine which rule set applies. This can be very useful when there are conflicting rules. The precondition in the rule group can only refer to singletons or static instances.
How to – create a rule group
- Select the Home tab
- From the Logic group select the Rule group icon
- Fill in the required fields
- Create the precondition you want to apply to the rule group
- Select the type of rule you want to add to the rule group from the drop down list
- Click on the new item icon
- Select the Rule elements you want to add to the rule group
- Click Save or Save & close
Properties
Property | Description |
---|---|
Name | It identifies the object. Maximum 100 characters (only letters, numbers and underscores (_)) are allowed. |
Functional Name | Optional, can be used in documentation |
Description | Optional |
Precondition | This expression determines when to apply this rulegroup |
Drop down list rule type | Select the type of rule you like to add. The choices are: External rule, Business rule, Decision table, Validation rule |
Drop down list elements | From the drop down list select the element(s) you want to add to the rule group. |
2 Comments
Unknown User (bcc)
Does a rule group precondition work within the context of the user session? For example if there is an iteration over multiple customers (multiton entity), can the rule group precondition simply be
Customer.Type = 'NewCustomer'
or should the precondition start from a singleton entity?Dick van Soest
I added some text to reflect that the precondition of the rule group can only refer to singletons or static instances.