Integrating a value provider

You use a value provider to dynamically retrieve and process external data to provide values for a business-specific BOM type. To integrate and declare the value provider, you must repackage the Decision Center archive.

About this task

You dynamically retrieve and process external data to provide values for a business-specific BOM type with a value provider (see Creating a value provider).

Procedure

To integrate a value info (and value provider) into Decision Center:

  1. Package your implementation of the interfaces IlrValueProvider and IlrValueInfo into a JAR.
  2. Create a preferences.properties file that maps the key you defined for the valueInfo property in the BOM Editor to your interface implementation, and include that file in the JAR file that contains your implementation:
    webui.info.myKey = mypackage.MyValueInfoImplementation
  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 value info and value provider are now available in Decision Center.