Show TOC

Creating a RulesetLocate this document in the navigation structure

Context

You create a ruleset to group a set of logically related rules.

Example

All rules related to discounts can be grouped under the discountrules ruleset.

Procedure


  1. In the Project Explorer view, expand the rules composer DC node and in the context menu of the Rules Modeling node, choose New Ruleset .

  2. In the dialog box that appears, enter the name of the ruleset in the field. Choose OK .

    Note

    A ruleset name should not:

    • Match any of the ruleset name in a rules composer DC

    • Match the name of the rules composer DC

    • Contain non alphanumeric characters

  3. In the Project Explorer view, you should see the rulseset node when you expand the Rules Modeling node.

    In the context menu of the ruleset node, there are options to create if-then rules and decision tables. Additionally there are options such as :

    • Open : This option allows you to open the ruleset editor

    • Compare with : This option allows you to compare versions of a ruleset

      More Information: Comparing Versions of a Ruleset

    • Web Service : This option allows you to expose a ruleset as a web service

      More Information: Exposing a Ruleset as a Web Service

    • Generate Report : This option allows you to publish the contents of a ruleset in HTML format

      More Information: Generating a Report

    • Clone : This option allows you to create a copy of the ruleset

    • Delete : This option allows you to permanently remove a ruleset from the rules composer DC

    • Validate : This option allows you to validate the contents of the ruleset

  4. Double-click the ruleset node to open the ruleset editor.

    Note

    If you have more than one ruleset in the rules composer DC, double-click each ruleset to view the respective ruleset editor. You can only view only one ruleset editor at a time.

The Ruleset Editor
  • The ruleset editor has tabs such as :

    • Overview : You can create, open and delete if-then rules and decision tables in this tab page

      In the Overview tab, under General Information , enter the description of the ruleset in the Documentation field

    • Definitions : This tab is a link to the definition editor, where you can create and edit definitions within a ruleset

    • Aliases : This tab is a link to the aliases editor, which gives an overview of all the definition aliases available in a ruleset

      For more information, see Definition Alias

    • Rules : This tab is a link to the rule editor, where you can edit if-then rules

    • Decision Tables : This tab is a link to the decision table editor, where you can edit decision tables

    • Test Scenario : This tab is a link to the test case editor, where you can add XML documents and definitions for test input