Product Administration Guide > Configuration Rule Assembly Language >

Creating Rules Using the Advanced Rule Template


The Advanced Rule template is similar to the Assisted Advanced Rule Template. You can create rules using Rule Assembly Language with either template. The Advanced Rule template does not provide a dialog box for picking products, resources, or links. It also does not provide a list of operators.

The Advanced Rule Template is intended primarily for upgrade users who want to edit the rules in models created in release 6.x.

You must manually enter the path to items when using this template. Table 34 provides examples of paths.

When you create a rule and save it using this template, the Rule Designer displays the rule syntax in the Rule field. The Rule Designer capitalizes the first letter of operator names in the rule for display purposes only. Operator names are case-sensitive, and the Rule Designer stores them in the correct, format.

Table 34. Examples of Paths
Path                                                         
Explanation
@.[Relationship A]([Product SubClass])
All the products in SubClass in Relationship A.
@.[Relationship A]([Product 1]).[Color]
The color attribute of all the instances of Product 1 in Relationship A.
@.[Relationship A].[Color]
The Color attribute of all the products in Relationship 1.
$.[Resource 1]
Resource 1.
$.[Link 1]
Link 1.

Observe the following guidelines when writing paths:

When you create a rule, a record describing the rule displays in the Rule Manager Rules List. This record has the following fields:

Name. Enter a name for the rule. Consider using a naming convention that helps you easily identify and sort rules. Rule names must be unique. If you do not enter a name, this field remains blank in the Rule Designer list.

Explanation. Enter a description of the rule. The description must contain the operator names used in the rule. If you leave this field blank, the Rule Statement in the form is displayed in this field in the Rule Designer list.

Start Date/End Date. Click the Calendar select button and choose the date when you want the rule to become effective (Start Date), the date you want the rule to stop being effective (End Date), or both. Review the section on setting effective dates for rules for more information. Use a consistent approach to setting start and end dates. This makes troubleshooting product behavior problems easier.

Inactive. Click the Inactive check box if you want the rule to be inactive. The rule remains part of the product but will not be used to compute solutions. To activate a rule for a product that has been released, you must change the rule's status to active, save the rule, and release the product again. To activate the rule in the current work space, you must change the rule's status to active and save the rule.

To create a rule using the Advanced Rule template

  1. Navigate to Product Administration.
  2. Select and lock the desired customizable product.
  3. If you omit this step, the most recently released version of the customizable product is loaded in the Rule Designer, and you cannot create rules.

  4. Click the Configuration Designer tab.
  5. The Rule Designer Rules List appears. It lists all the configuration rules that have been created for this customizable product.

  6. Click New Rule.
  7. The "Pick a rule" tab appears and lists the rule templates available for creating rules.

  8. Select the Advanced Rule template in "Pick a rule", and click Continue.
  9. The Rule Statement and "Insert a" tabs appear. The Rule Statement tab contains the rule template you selected.

    To exit and return to the Rules List, click Cancel.

  10. Enter the configuration rule into the template using Rule Assembly Language.
  11. Click Save Rule to save the rule.
  12. The Save Rule form appears.

  13. Fill out the fields in the Save Rule form. Then click Save. All fields are optional.
  14. After you click Save, the Rules List appears. The list contains a record for the new rule.

  15. Open the Rules List menu and click Validate.
  16. This starts a configuration session. Verify that the new rule works correctly.


 Product Administration Guide, Version 7.5 
 Published: 18 April 2003