Business Rule Examples

The following are examples of the types of Business Rules that can be encoded via Relationships.

Example 1: Product Statements

When a Product is selected, the appropriate Ingredients List, Allergy Declaration, and Storage Instructions should display.

Solution

Create a Product List and add the Product Values. Store the Ingredients, Allergy and Storage statements as Phrases and link the appropriate Product to the appropriate statement/s (phrases) using Relationships.

In this example, ingredient statements are specific to each product. Shared Allergy declarations may be used by more than one product.

Example 2: Market Specific Requirements

Certain markets require additional statements on their packaging. These statements only need to be added for products sold in these markets.

Solution

Create an Attribute List for Markets and add the markets as values. Store the market specific statements as Phrases and link the appropriate Attribute (market) to the appropriate statement/s (phrases) using Relationships.

 

For example, two statements, Lot Code & Manufacture Date, are required for all Markets, and then other additional statements/pictograms are required for Market 2.

Example 3: Product and Pack Specific Statements

Similar to Example 1, but each Product can be sold in different packaging formats and the statements displayed depend on the packaging format.

Solution

Create a Product List and add the Product Values. Store the product specific statements as Phrases and link each Product to the appropriate statement/s (phrases) using Relationships.

Create an Attribute List for Packaging Format and add the different formats as Attribute values. Link the Product to the appropriate Packaging Format values. Link the Packaging Format/s to the appropriate Product & General statements (Phrases).

In this way we can create a three-way relationship: if Product is X AND Packaging Format is Y then display Phrase/s Z.

For example, a product, Choc Drops, can be sold in four Pack Formats.

When sold in Pack Format Mini Carton an Allergy Statement, Trademark Owner, Customer Services and Lot/Best Before statements are required.

When sold in Pack Format Bag (Minis) an Ingredient Statement, Allergy Statement, Trademark Owner, Customer Services, Lot/Best Before statements and a Net Weight declaration are required.

Note the ingredients & allergy statements must be the specific ones for the Product Choc Drops, the other statements are general, for use with all products.

More Information

Note: See Using Languages, Products, Attributes & Phrases in Projects for information on how to turn Business Rules On and Off in Projects.