Associating a custom editor with a property

You can provide a custom graphical interface for your business-specific rule properties.

About this task

To provide a custom graphical interface for your business-specific rule properties, you associate a key for your editor to a rule model property.

Procedure

To associate a custom editor with a property:

  1. In the extension model file, select the property to which you want to attach a custom editor.
  2. In the Properties view, set the Editor Name property to a key that you will use in Rule Designer or Decision Center to reference the implementation of the editor.

Results

You associate a custom editor with a property in XML, as follows:

<property editorname="myScoreEditor" name="score" type="Integer"/>

The custom property editor is attached to a property. You can now integrate the implementation of the property editor into Rule Designer and Decision Center.

Integration into Rule Designer

Integration into Decision Center

Implement a property editor for Rule Designer and then create a Rule Designer plug-in with a property editor extension point.

Implementing a custom property editor for Rule Designer

Implement a property editor for Decision Center and then repackage the Decision Center archive to integrate and declare the property editor.

Implementing a custom property editor for Decision Center