Creating a value provider

You use a value provider to retrieve and process external data dynamically, to provide values for a business-specific BOM type.

About this task

With a value provider, you can also add a list in the rule editor from which you can select values. You implement a value provider interface and associate it to a BOM property through a key.

If you want to attach a value provider to a BOM member, you must first declare a value info. The value info interface defines methods for referencing a custom value provider.

Procedure

To create a value provider:

  1. Implement the interface IlrValueProvider.
  2. Implement the interface IlrValueInfo and declare your value provider class.
  3. Open the BOM Editor in Rule Designer.
  4. In the BOM Editor, open the member for which you want to define the value info.
  5. In the Custom Properties section, click Add, to create a new custom property and then set the newProp value as follows:
    • For a BOM attribute or a return value, in the Name column, click newProp and then type valueInfo. In the Value column, type the key that you want to use in Rule Designer or Decision Center to reference your value info class.

Results

You now have a value provider, which you must integrate into the relevant Operational Decision Manager modules.

Integration into Rule Designer

Integration into Decision Center

Create a Rule Designer plug-in with a value info extension point.

Integrating a value provider into Rule Designer

Sample: Context-aware rule definition

Repackage the Decision Center archive to integrate and declare the value provider.

Integrating a value provider into Decision Center