Editing ruleset extractors

A ruleset extractor uses queries and validators to select the project elements from a rule project, together with its dependant projects if the project references other projects. A validator is a mechanism that evaluates the result of the query and validates which rules are to be included in the ruleset, based on certain criteria.

About this task

In many projects, particularly in the development environment, you might have many rules. Some rules might be used for purposes other than production, such as testing. For production you want to select only those rules that will be used in the ongoing production environment.

Ruleset extractors work as follows:

  • When you create a ruleset extractor, you specify a query from the queries available in the project. The query is executed on the project.

    Note:

    The action part of the query is also executed.

    If the query does not find any matching rules, no rules appear in the generated ruleset.

    If you do not specify a query when creating your ruleset extractor, all the rules of the project are submitted to the validator.

  • The validator that you specify when creating your ruleset extractor validates the following:

    • All the rules found by the query

    • All other elements contained in the project that are needed for the ruleset, such as ruleflows and ruleset parameters

      The criteria that a validator uses to validate elements are specific to each validator. For example, the default validator defaultExtractorValidator validates all the elements of the project.

    Note:

    For information about creating validators, refer to the Rule Designer user documentation.

  • All the validated elements constitute the results of the ruleset extractor.

Procedure

To edit or create a ruleset extractor:

  1. On the Configure tab, click Edit Ruleset Extractors.
  2. Click New to create a new ruleset extractor, or select an existing one in the table and click Edit.
  3. Specify the name, query, and validator and click OK.