ILOG Rules for .NET User Guides > Rule Studio > Defining Business Object Models > Support for Literal Values

You can represent some types of the business object model as literal values.

The following properties are defined on a type and are used to define a literal value:

The Value Converter, Value Descriptor, and Value Editor properties are edited in Rule Studio by selecting the BOM type in the BOM View, and setting the value of the property through the property grid.

Note
You must build your solution or click Refresh in the BOM View toolbar so that the changes are taken into account.

To create the type
To define the value converter
  1. Create a value converter.
  2. You must implement a type converter class. This class must:
    1. inherit from System.ComponentModel.TypeConverter
    2. override the ConvertTo and ConvertFrom methods to support conversion to and from a string
    Optionally, if you want to define a domain, override the GetStandardValuesSupported and the GetStandardValues methods. See Creating Dynamic Domains.
  3. Deploy the assembly.
    1. Create a signed assembly containing the type and the type converter.
    2. Add the assembly to the Global Assembly Cache.
    3. In your rule application, explicitly load the value converter assembly.
  4. Set up the business object model.
    1. Add the type to the business object model.
    2. In the Business Object Model View, select the type, select the Value Converter property in the Properties window of the Business Object Model member, and then set the value converter class you defined for it.
To add the value descriptor

See Also

Support for Literal Values | The Properties of Business Object Model Members