Integrating query extensions

You use query extensions to create business-specific query predicates that process customized rule project items and properties. To use them in Decision Center, you must repackage the Decision Center archive to integrate and declare the extended query BOM files.

About this task

Make sure you have all the necessary files to integrate query extensions into Decision Center:

  • A BOM file

  • A vocabulary file

  • A BOM extender mapping file

  • One or more extender classes

Procedure

To integrate query extensions into Decision Center:

  1. Package a preferences.properties file into the lib directory of the Decision Center archive.
  2. In this file, define preferences to provide information about your query extension files. The location for each file must be its path in the JAR file, starting with a forward slash /.

    decisioncenter.bql.bom.path - The location of the BOM file

    decisioncenter.bql.voc.base.name - The location and base name of the vocabulary files (without the locale suffix)

    decisioncenter.bql.extender.path - The location of the BOM extender mapping file

    For example:

    decisioncenter.bql.bom.path=/ilog/rules/teamserver/ext.bom
    decisioncenter.bql.voc.base.name=ilog/rules/teamserver/ext
    decisioncenter.bql.extender.path=/ilog/rules/teamserver/ext.properties
    
  3. Repackage the Decision Center archive, including the preferences.properties file and the query extension files into the archive.

    The query extensions are now implemented into your Decision Center installation.

    Note:

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

  4. Deploy the Decision Center archive.