Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Introduction to rule specifications
  3. Rule specification configuration
  4. Rule set configuration
  5. Rule statement configuration
  6. REST APIs for rule specifications
  7. Rule specification configuration in advanced mode
  8. Business rules and rule statements
  9. Validation and testing

Rule specification assets

Rule specification assets

Rule sets in parent and child relationships

Rule sets in parent and child relationships

When a business rule describes a data requirement that depends on other data requirements, configure rule sets in a parent-and-child relationship.

Parent and child example

A hardware store sells wood preserver in multiple colors and styles. The store must verify that the product database tracks the inventory of wood preserver in the warehouse. The store defines a business rule that requires the product database to maintain accurate data for the colors, styles, and units of wood preserver. You configure child rule sets with rule statements that verify the data for each type of wood preserver. You configure the parent rule set to verify the output from the child rule sets.
You configure the following child rule sets:
Rule set name: Color
IF COLOR = (PINE, OAK, CHESTNUT) THEN GOOD_COLOR
Rule set name: Size
IF SIZE = (250, 500, 1000) THEN GOOD_SIZE
Rule set name: Style
IF STYLE = (GLOSS, MATT) THEN GOOD_STYLE
You configure the following parent rule set:
Rule set name: Wood Preserver
IF COLOR = GOOD_COLOR
AND SIZE = GOOD_SIZE
AND STYLE = GOOD_STYLE THEN WOOD PRESERVER IS GOOD_PRODUCT
To configure a condition to compare an input to a range of values, select the
Input: List of Values
option in a function condition. You can configure similar parent rule sets and child rule sets for other products in the inventory.
You might also create dictionaries that contain lists of the acceptable colors and styles. Configure the conditions to compare the input values to the dictionaries.

0 COMMENTS

We’d like to hear from you!