Package ilog.rules.brl.value.info

Contains classes related to value info, value providers, and value checkers.

See: Description

  • Interface Summary 
    Interface Description
    IlrValueChecker
    IlrValueChecker checks the usage of a literal value at a specific place in the rule, and provides a mechanism to report an error.
    IlrValueInfo
    IlrValueInfo provides a way to describe a value when it is used in the placeholder of a phrase.
    IlrValueProvider
    IlrValueProvider represents a value provider used for enumerated values that use a tree structure.
    IlrValueProviderExtension
    Extends the value provider interface IlrValueProvider with the following service dedicated to text completion: The optional documentation about the proposal If the value provider is sensible to the editing context
  • Class Summary 
    Class Description
    IlrAbstractValueProvider
    Provides part of the implementation of the interface IlrValueProvider, and a flat predefined set of values.
    IlrConstraintValueChecker
    Implements a value checker that looks up for a constraint registered on a placeholder role to check if a given value complies with the constraint.
    IlrDefaultValueInfo
    A default implementation of a value info that allows you to set value descriptors, providers, checkers, and so on.
    IlrValueError
    Reports errors on value checking.
    IlrValueInfoFactory
    Retrieves a value info with a unique key that represents this value info.

Package ilog.rules.brl.value.info Description

Contains classes related to value info, value providers, and value checkers.

Overview

A value enables you to describe how a value behaves when it is used in a phrase. You need to declare an IlrValueInfo if you want to attach a value editor, value provider, value checker or value translator to a BOM member. The IlrValueInfo interface defines the methods for referencing them.

  • IlrValueChecker - BRL mechanisms to check the semantic validity of literal values in a specific context.
  • IlrValueProvider - BRL mechanisms used by the prediction engine to provides external literal values in a specific context.
  • IlrValueInfo - BRL mechanisms that aggregate value checkers and providers.

Custom BOM value types

Custom BOM value types are value types that you define to create a specific kind of value. Values are literals of a given type, such as number, date, or string. For values that require a specific interpretation of a standard type, such as days of the week, you need to define your own value type to handle the values properly. You normally enter a value as part of a business rule.

You can manage your custom value types using:

  • A value descriptor - to describe a value so that all values of this type are displayed and edited in the same way.
  • IlrValueInfo - to describe how a value behaves when it is used in a phrase.
If you declare a value descriptor or a value info, you can then define: If you declare an IlrValueInfo, you can also define:
  • An IlrValueProvider - to provide a list of values in the rule editor for users to select from
  • An IlrValueChecker - to check that a user-entered value is valid

Integrating a custom IlrValueInfo

When you have created a IlrValueInfo, you need to integrate it into Rule Studio, Rule Team Server or Rule Solutions for Office, as appropriate. For more information, see Customizing JRules > Customizing Rule Authoring > Tasks > Managing BOM value types > Implementing a value info > Integrating a value info.

Since:
JRules 6.0
Rule Designer API

© Copyright IBM Corp. 1987, 2017