Integrating extractable property handlers into Decision Center

You use extractable property handlers to define how your business-specific rule properties are extracted to and processed by the rule engine. To integrate them into Decision Center, you must repackage the Decision Center archive.

About this task

You define how your business-specific rule properties are extracted to and processed by the rule engine with extractable property handlers (see Creating handlers for extractable properties).

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.

Procedure

To integrate extractable property handlers into Decision Center:

  1. Package your implementation for the interface IlrExtractablePropertyHandler into a JAR.
  2. Create a preferences.properties file that maps the key for your implementation in the extension model file to the fully qualified name of your implementation class, and include that file into the JAR file that contains your implementation:

    teamserver.genHandlerID.class=ilog.rules.teamserver.MyExtractablePropertyHandler

    where genHandlerID is the key you specified for your implementation in the extension model file.

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

    ant set-config-param -Dkey=teamserver.genHandlerID.class -Dvalue=ilog.rules.teamserver.MyExtractablePropertyHandler

  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 now integrated extractable property handlers into Decision Center.