Integrating initial values for properties into Rule Designer

You compute the initial value of a business-specific rule property and then integrate it into Rule Designer.

About this task

After implementing the calculation of initial values for properties, you integrate the initial values into Rule Designer.

To integrate initial values into Rule Designer, you create a plug-in with an initial value callback extension point.

The Rule Designer extension point associates your key to the implementation of the interface IlrInitialValue.

Procedure

To integrate the calculation of initial values on properties:

  1. Create a plug-in project that depends on the plug-in: ilog.rules.studio.model.

    For help with creating a plug-in project, see Creating a plug-in project.

  2. In this plug-in, create an extension for ilog.rules.studio.model.initialValueCallbacks.

    For help with defining a plug-in extension, see Defining a plug-in extension.

  3. In the extension point, set these attributes:
    • Use the id attribute to specify the name of the key you used in the annotation initialValueCallback in that property

    • Use the callbackClass attribute to specify the name of the implementation of IlrInitialValue

  4. Save the plug-in project.
  5. Deploy the plug-in.

    For help with deploying a plug-in, see Deploying a plug-in.

Results

The implementation of the calculation of initial values for properties is now built and integrated into your Rule Designer installation.