Creating property callbacks

To modify the behavior of a business-specific rule property, you implement a property callback interface and associate it with a rule model property through a key.

About this task

For example, you can retrieve the list of possible values for an enumeration property and allow only specific values of the enumeration to be selected. Alternatively, you can hide a property or prevent it from being edited after it is changed.

Procedure

To define callbacks on properties:

  1. Implement the interface IlrPropertyExtension.
  2. In the extension model file, add an annotation to the property for which you want to add a call back:
    <annotation id="initialValueCallback" value="myInitialValueCallback"/>

Results

You have defined callbacks on properties. You can now integrate this implementation into Rule Designer and Decision Center.

Integration into Rule Designer

Integration into Decision Center

Create a Rule Designer plug-in with a property callback extension point.

Integrating callbacks on properties into Rule Designer

Repackage the Decision Center archive to integrate and declare the property callbacks.