Table of Contents

Search

  1. Preface
  2. Introduction to Rule Specifications
  3. Rule Specification Configuration
  4. Rule Set Configuration
  5. Rule Statement Configuration
  6. Common Types of Rule Statements
  7. Test and Validation Operations

Rule Specification Guide

Rule Specification Guide

Parent Rule Sets and Child Rule Sets

Parent Rule Sets and Child Rule Sets

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 maintains 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 a 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 VALID_COLOR
Rule Set Name: Size
IF SIZE = (250, 500, 1000) THEN VALID_SIZE
Rule Set Name: Style
IF STYLE = (GLOSS, MATT) THEN VALID_STYLE
You configure the following parent rule set:
Rule Set Name: Wood Preserver
IF COLOR = VALID_COLOR
AND SIZE = VALID_SIZE
AND STYLE = VALID_STYLE THEN WOOD PRESERVER IS VALID_PRODUCT
To configure a condition to compare an input to a range of values, select the List of Values option in an Input function. You can configure similar parent rule sets and child rule sets for other products in the inventory.
You might also create reference tables that contains lists of the valid colors and styles. Configure the conditions to compare the input values to the reference tables. You can create reference tables in the Analyst tool.

0 COMMENTS

We’d like to hear from you!