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:
- 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.
- 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.MyExtractorValidatorClasswhere
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
- 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.
- Deploy the Decision Center archive.
Results
You have integrated a custom ruleset extractor validator into Decision Center.