3.8.1 Adding New Rules

Creating a Business Rule follows a guided six-step workflow. The progress panel on the right side of the screen shows all steps and your current position.

To create a new rule:

  1. Navigate to the Business Rule Summary page.
  2. Click Add.
    The Business Rule — Basic Details page opens
  3. In the Business Rule — Basic Details page, do the following"
    1. In the Name field, enter a unique name for the Business Rule.
    2. In the Description field, enter a brief description of the purpose of the rule.
    3. In the Folder field, select the folder in which to save the rule. Folders are used for logical grouping of rules.
    4. In the Dataset field, select the dataset to which the rule applies.
      The dataset defines the source fact and dimension tables available for rule configuration. Click the eye icon next to the Dataset field to preview the selected dataset.
    5. Click Continue to proceed.

    Figure 3-58 Business Rule — Basic Details


    Business Rule — Basic Details

  4. In the Business Rule — Source Setup screen that opens, do the following:
    1. Click Add Source.
      The Add Source wizard opens and prompts you to select the source type. The supported source types are:
      • Dimension (Hierarchy-Based)
      • Non-Key Dimension (Direct Member Selection)
      • Input Text (Attribute-Based Condition)
    2. Select the Source Type:
      • If you select Dimension, to configure a Key Dimension source:
        1. Select Key Dimension as the source type.
        2. Select the desired Key Dimension (for example, Product or Organization).
        3. Select the Hierarchy associated with the dimension.
        4. Select one or more Hierarchy Members from the hierarchy.
        5. Click Add Source to confirm.

        Figure 3-59 Dimension Source


        Dimension Source

      • To configure a Non-Key Dimension source:
        1. Select Non-Key Dimension as the source type.
        2. Select the desired Non-Key Dimension.
        3. Select one or more Dimension Members.
        4. Click Add Source to confirm.

        Figure 3-60 Non-Key Dimension


        Non-Key Dimension

      • If you select Input text, do the following:
        1. Select the Table from the Select Table dropdown.
        2. Select the Column from the Select Column dropdown.
        3. Click Continue. The Add Custom Input Values screen is displayed.
        4. In the Enter value field, type the value and click Add to add it to the Created Custom Values list.
        5. Click Add Source to confirm.

          After all sources have been added, the Source Setup screen displays the configured sources as filter tabs at the top of the screen.

        Figure 3-61 Input text


        Input text

    3. Click Continue.

    Figure 3-62 Business Rule — Source Setup


    Business Rule — Source Setup

  5. In the Business Rule — Outcome Setup screen that opens, do the following:
    1. Click Add Outcome.

      The Add Outcome page opens.

      Figure 3-63 Select Outcome Type screen


      Select Outcome Type screen

    2. Select the Target Table from the Select Table dropdown.
    3. 2. Select one or more Target Columns from the Select Column dropdown.

      Note:

      Multiple target columns are supported. All selected columns must belong to the same target table.
    4. Select the Outcome Column:
      • If you select Dimension based, do the following:
        1. 2. Select the required Dimension from the Select Dimension dropdown.
        2. Select one or more Dimension Members.
        3. Click Add Outcome to confirm.
      • If you select Expression based, do the following:
        1. Select the expression type.
          • Predefined
          • Custom
        2. Click Continue.
        3. If you select Predefined, then select one or more expressions from the available list and click Add Outcome to confirm

          Note:

          If no predefined expressions have been configured in the system, the message "No expressions available." is displayed.

          Figure 3-64 Predefined Expression screen


          Predefined Expression screen

          Figure 3-65 Predefined Expression List


          Predefined Expression List

        4. If you select Custom, then do the following:
          1. In the Do you want to use already created custom expression? field, select either of the following option:
            • Yes — to reuse an expression already created in this session (shown in the Created expressions list on the right).
            • No — to create a new expression.

              Figure 3-66 Custom Screen


              Custom Screen

          2. If you select No, enter a Custom Expression Name in the Name field.
          3. Enter the SQL expression in the Enter Custom Expression field.
          4. Click Validate & Add to validate the expression syntax and add it to the Created expressions list.
          5. Click Add Outcome to confirm.
    5. Click Continue.

    Figure 3-67 Source Setup Summary


    Source Setup Summary

  6. In the Business Rule — Combination Configuration page that opens, do the following:

    Figure 3-68 Business Rule — Combination Configuration


    Business Rule — Combination Configuration

    The system provides two methods for creating combinations:
    • Auto Generate
    • Manual Addition
    1. Do either of the following:
      • Click Auto Generate to allow the system to automatically create all possible combinations based on the configured source conditions.

        Note:

        Auto Generate saves time, ensures complete coverage of all condition permutations, and reduces manual errors.
      • Click + to manually add a combination. The Add Combination panel opens on the right side of the screen. Do the following:
        1. Enter a Combination Name.
        2. Under the IF section, the source column is displayed. Configure the condition:
          • Select the Operator (for example, Equals).
          • Select or enter the Value to match.
          • Click Add Condition to include additional conditions in the same combination.
        3. Under the THEN section, select the expression to apply from the Select expression dropdown for the outcome column.
        4. Click Create to save the combination
    2. Click Continue.
    Each combination in the list displays a status indicator:
    • Missing Outcome — no target outcome has been configured for this combination. The rule is incomplete and cannot be submitted.
    • Valid — the outcome is properly configured and the combination is ready for execution.
    You can assign outcomes to combinations in two ways:
    • Individual Configuration — click the Edit icon on a specific combination to configure its outcome individually.
    • Bulk Configuration — select multiple combinations using the checkboxes, then click Configure Outcome to assign the same target configuration to all selected combinations simultaneously.

    You can search combinations using the Search combination bar, and filter the displayed combinations by source attributes such as Book Type, Product Hierarchy, or Status using the filter tabs.

  7. In the Business Rule — Impact Preview page that opens allows you to test the Business Rule against a sample of the dataset before submission, validating that the configured combinations and outcomes produce the expected results.

    Note:

    The preview is based on sample rows only. Results may vary for the full dataset.
    The Business Rule — Impact Preview screen displays the following:
    • Dataset parameters — if the selected dataset requires runtime parameters, they are listed here for input prior to execution. If none are required, the message "No parameters required for dataset." is displayed.
    • Execute button — click to run the preview against the sample data and display the projected output.

    If the preview cannot be loaded, the message "Unable to load impact preview. Please try again or verify your combinations." is displayed. In this case, return to the Combination Configuration step to verify that all conditions and expressions are correctly defined before retrying.

    Click Continue.

    Figure 3-69 Business Rule — Impact Preview


    Business Rule — Impact Preview

  8. The Business Rule — Review and Submit page that opens provides a consolidated view of the complete rule configuration across all previous steps.

    Do the following:

    1. Review all details carefully before saving the Business Rule.
      The screen displays a summary of:
      • Basic Details — Name, Description, Folder, and Dataset.
      • Source Setup — all configured source conditions.
      • Outcome Setup — all configured outcome columns and their derivation logic.
      • Combination Configuration — all defined IF-THEN combinations.
      • Generated Merge Query — scroll down to view the SQL merge query that the system has generated based on the rule configuration. This allows you to verify the underlying logic before execution.
    2. Once you have reviewed all details, click Submit to save and activate the Business Rule.

      After submission, the Business Rule is saved and appears in the Business Rule Summary screen.

      Figure 3-70 Business Rule — Review and Submit


      Business Rule — Review and Submit

      Note:

      Once a Business Rule has been submitted, it can be viewed, edited, or deleted from the Business Rule Summary screen using the Action menu against the respective rule entry. Only users with Read/Write privileges can edit or delete a Business Rule. A rule that has active dependencies cannot be deleted.