Creating a value checker

You use a value checker to validate input for a business-specific BOM type. If you want to create a value checker and attach it to a BOM member, you must also implement a value info.

About this task

You use a value checker to validate input for a business-specific BOM type. You implement a value checker interface and associate it to a BOM property through a key. If you want to create a value checker and attach it to a BOM member, you must also implement a value info. The value info interface defines the methods for referencing the custom value checker.

Procedure

To create a value checker:

  1. Implement the interface IlrValueChecker, or IlrConstraintValueChecker.
  2. Implement the interface IlrValueInfo and declare your value checker 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 and Decision Center to reference your value info class.

    • For a BOM method, in the Name column, click newProp and then type valueInfo[<arg index>], where <arg index> is the index of the argument for which the value info is used. In the Value column, type the key that you want to use in Rule Designer and Decision Center to reference your value info class.

Results

You now have a value checker, 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 checker into Rule Designer

Sample: Context-aware rule definition

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

Integrating a value checker into Decision Center