Extracting rules for a ruleset

If you do not want to execute all the rules of a project, you can select the artifacts you want to include in the ruleset.

About this task

You can create rules for nonproduction purposes, such as testing, or rules to be used in the production environment.

When you create a ruleset archive, both the rules of the project and all the rules from any referenced rule projects are included by default. You can define different extractors for a ruleset so as to create different execution packages. You can then select the required ruleset extractor when you create the ruleset archive.

You can create an extractor based on a query or on a validator class:

  • Use a query to extract the business rules that you want to include in the ruleset archive for execution.

  • Write a validator class to select the required business rules.

    A validator is a Java™ class that is defined by the implementation of a Rule Designer extension point. Typically, you base the extraction on a query. If you specify both, the query is processed first, then the validation is applied.

To extract rules for a ruleset from a decision service, specify the extractor in the decision operation.

To extract rules for a ruleset from a classic rule project, specify the extractor in the rule project properties.