Creating a value info

You use a value info to group several BOM value type extensions for the same BOM member.

About this task

You create a value info if you want to attach a value editor, value provider, value checker, or value translator to a BOM member. The value info interface defines the methods for referencing these extensions.

Procedure

To create a value info:

  1. Implement the interface IlrValueInfo.
    Note: The fully qualified name of the value info class must contain only lowercase package names (see Naming a Package).
  2. Open the BOM Editor in Rule Designer.
  3. In the BOM Editor, open the member for which you want to define the value info.
  4. In the Custom Properties section, click Add.

    A new custom property is created.

  5. Set the newProp value as follows:
    • For a BOM attribute or a return value, in the Name column, click newProp and enter 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.

    • For a BOM method, in the Name column, click newProp and enter valueInfo[<arg index>], where <arg index> is the index of the argument for which the value info is used. The argument index starts at zero. 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 info, 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 info into Rule Designer

Sample: Context-aware rule definition

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

Integrating a value info into Decision Center