Integrating a custom ruleset extractor validator

You use a custom ruleset extractor validator to select the rules that you need for execution.

About this task

To be able to use it in Decision Center, you must repackage the Decision Center archive to integrate and declare the custom ruleset extractor validator.

Procedure

To integrate a custom ruleset extractor validator into Decision Center:

  1. Package your implementation of IlrExtractorValidator into a JAR.
    Calls to IlrInitialValue are forwarded by the default session controller (IlrDefaultSessionController). If you define your own controller class and want to have IlrInitialValue called anyway, you must subclass IlrDefaultSessionController so that the method IlrDefaultSessionController.getInitialValue() is called.
  2. Create a preferences.properties file that maps the validator name to the extractor validator class, and include that file in the JAR file that contains your implementation:
    decisioncenter.MyExtractorValidatorName.class=mycompany.MyExtractorValidatorClass

    where MyExtractorValidatorName is the name of your extractor validator.

    You can also set this preference as a Decision Center configuration parameter using the set-config-param Ant task:

    ant set-config-param -Dkey=decisioncenter.MyExtractorValidatorName.class -Dvalue=mycompany.MyExtractorValidatorClass

  3. Repackage the Decision Center archive with the repackage-ear command. In the repackage-ear command, use the -DadditionalJars argument to specify the JAR file containing your custom class.
    Note:

    For information on how to repackage the Decision Center archive, see Repackaging the Decision Center archive.

  4. Deploy the Decision Center archive.

Results

You have integrated a custom ruleset extractor validator into Decision Center.