ILOG JRules User Guide > Customizing JRules > Concepts > Rule Model > Rule Model Extension Schema > Extended Properties

You can add extended properties to all the elements of the rule model. When you add a property to a rule model class, you can define its type as:

Properties associated with a primitive type or an enumeration can have a default value.

Not all properties can be extracted into a ruleset. The properties that can be extracted must have a single value, and their associated type must be a primitive type, an enumeration, or a hierarchy.

You can localize an enumeration value by adding % as the first character of the value.

Warning
Do not use a reserved SQL keyword as the name of a property.

Properties of an Extended Property

Extended properties defined in the rule model have properties themselves. These properties are the following:

Table 2 Properties of Extended Properties
Property 
Type 
Description 
advanced 
boolean 
Indicates that the property is advanced, and therefore is only visible in the advanced view of the Properties view. 
changeable 
boolean 
Indicates that the property can be edited in the Properties view. You cannot set the changeable property to not changeable once a project has been saved with a previous version of the extended model. 
editorName 
String 
Indicates the editor to be used with the property. 
extractable 
boolean 
Indicates that the property should be put in the ruleset when it is extracted. 
hidden 
boolean 
Indicates that the property is hidden from the Properties view. 
many 
boolean 
Indicates that the property can have multiple values. 
nillable 
boolean 
Indicates that the property can be set to null. 
ordered 
boolean 
Indicates that the property can have ordered values. This is only valid for properties that have multiple values. 
required 
boolean 
Indicates that the property must be set. 
restricted 
boolean 
Indicates that the values of an enumeration property are restricted to a specific set. Setting the restricted property to false does not allow you to to set the property of an enumeration to a value that does not belong to that enumeration. For single-valued enumeration properties, you cannot set another value, even if the restricted property is false
size 
int 
Indicates the maximum size of the String serialization of the property (which can be useful for RDBMS). 
unique 
boolean 
Indicates that the same value cannot be used twice in the list of values associated with the property. This is only valid for properties that have multiple values. 

Related Concepts

Rule Model

Related Tasks

Defining Rule Model Extensions
Creating an Enumeration Property
Creating a Struct Property
Creating a Hierarchical Property
Associating a Custom Editor to a Property

Related Reference

Rule Model Extension Editor

Related Samples and Tutorials

Rule Studio Business Rule Management Extensions
Rule Team Server Business Rule Management Extensions