Creating a rule and ordering its results

Associate a zone and style with a rule and define result sort order on the Rule editor of the Rules view, found under Dynamic Business Rules in the Project Explorer.

To create a dynamic business rule in Developer Studio:

  1. In the Project Explorer, expand Dynamic Business Rules.
  2. Make sure you have already created at least one zone and one style.
  3. Double-click Rules, which opens the Rules view and also activates the Rule menu on the menu bar.
  4. From the Rule menu, select New. The Rule editor displays.
  5. In the Name text box, enter a unique name for the new rule.
  6. From the Zone list, choose a zone to associate with the rule.
  7. From the Style list, choose a style to associate with the rule.
  8. You can add the rule to the default rule group, or if you created additional rule groups, select a rule group to which this rule belongs. For more information, see About grouping rules.
  9. If you want to sort the rule's promoted records by a property or dimension value, select the property or dimension value from the Sort key list. Select [None] to accept the default sort order specified for the project.
  10. If you chose a Sort key, choose Ascending or Descending to define sort order.
  11. If you want to randomly order the promoted records for this rule, select Shuffle. Selecting Shuffle overrides any Sort key and Order options you specified above.
  12. If you want to allow a rule to fire even if the current navigation state overlaps a rule's trigger, select Self-pivot. Unchecking Self-pivot prevents a rule from firing if any dimension values in the current navigation state overlap with dimension values in the rule's trigger.
  13. If you want to restrict who sees the results of this rule, select a pre-defined user profile from the drop-down list.
  14. Specify when to promote records.
Note: Fully implementing this feature requires additional work outside of Developer Studio. Please refer to the Endeca Advanced Development Guide as well as the Endeca Workbench Help system for details.