ILOG JRules User Guide > Orchestrating Ruleset Execution > Tasks > Extracting Artifacts to be Put in a Ruleset

The Rule Studio Ruleset extractors enable you to select only the rules in a rule project that you need for execution. You can create an extractor based on either or both of:

In Rule Studio, the extractors are found in the rule project properties.

To select artifacts to be put in a ruleset:

  1. In Rule Studio, right-click the rule project and select Properties from the shortcut menu.
  2. In the list of types, click Ruleset Extractors.
  3. Click Add.
  4. In the New Ruleset Extractor dialog, type the name of the new ruleset extractor.
  5. Select the filter for the extractor:
  6. - For a Validation class, select it from the Validator drop-down list and click OK. For an extractor only, set Validator to none.
    - For a query, browse to select the query and click OK.
    images/extractor.png
    If you have not yet created the filter, at this point you can click OK and return to this dialog later to add the validator or query. Select an existing extractor and click Edit to add or change the definition.
  7. Click OK to exit from the Properties dialog box.

A validator is a Java class that is defined by implementing a Rule Studio extension point.

To create a validator for an extractor:

The validator code typically examines each artifact and tests whether it is to be included in or excluded from the selection. The Default validator selects all the rules in the project. None means no validator. In this case you must specify a query in the Query field.

If the ruleset extractor references both a query and a validator, first the query is performed to select the rule artifacts. Then the validation class is called on the selected rule artifacts, and all other artifacts in the ruleset.

Related Concepts

Rulesets and Ruleset Archives

Related Tasks

Creating a Query
Exporting a Ruleset Archive

Related Tutorials and Samples

How to Extract a Ruleset from a Rule Project