Integrating dynamic domains into Decision Center

You use dynamic domains to create a new enumerated domain for a BOM class, and to update the values of this domain dynamically.

About this task

To integrate dynamic domains into Decision Center, you repackage the Decision Center archive to include and declare your implementation of the interface IlrBOMdomainValueProvider. See Creating dynamic domains

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 dynamic domains into Decision Center:

  1. Package your implementation of the interface IlrBOMDomainValueProvider into a JAR.
  2. Create a preferences.properties file that maps the key you specified as the value for the domainValueProviderName property to the fully qualified name of your implementation class, and include that file in the JAR file that contains your implementation:

    teamserver.myProviderName= ilog.rules.teamserver.MyBOMDomainValueProvider

    where myProviderName is the key you specified as the value for the domainValueProviderName property in the BOM.

    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.myProviderName -Dvalue= ilog.rules.teamserver.MyBOMDomainValueProvider

  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

The dynamic domains are now integrated into Decision Center.