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 35 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 35.  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:

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 
 Published: 23 June 2003