Creating dynamic domains

You can use external data sources for BOM domain values, and update these values dynamically.

About this task

If you want to create a dynamic domain that retrieves data from a resource other than Excel, you can develop some code and set up the BOM to retrieve the external data for the domain.

You then integrate the dynamic domain into Rule Designer and Decision Center.

Procedure

To define a dynamic domain:

  1. Open the BOM Editor in Rule Designer.
  2. In the BOM Editor, open the class that you want to associate with the dynamic domain.
  3. In the Domain section, click Create a domain.
  4. In the Domains wizard, select Static references, and then click Next.
  5. Click Finish.

    This action creates an empty enumerated domain and the Domain section displays a link named Synchronize.

    New domain: Synchronize
  6. In the Custom Properties section, click Add.

    A new custom property is created.

  7. In the Name column, click newProp and type domainValueProviderName.
  8. In the Value column, type the key that you want to use to reference your implementation in Rule Designer and Decision Center.
  9. Implement the interface IlrBOMDomainValueProvider.

    Using this interface, you can provide a collection of values with information on their verbalization and BOM to XOM mapping. An enumerated domain is created on the BOM class, with the values of the collection. For each value, a new static final BOM attribute is created and referenced by the new domain. The BOM to XOM mapping and the verbalization are set on this BOM attribute.

Results

You must now integrate this implementation into Rule Designer and Decision Center.

Integration into

Rule Designer

Integration into

Decision Center

Integration into

Rule Solutions for Office

Create a Rule Designer plug-in with a dynamic domain extension point.

Integrating dynamic domains into Rule Designer

Sample: Data sources for BOM domains

Repackage the Decision Center archive to integrate and declare the dynamic domain.

Integrating dynamic domains into Decision Center

Sample: Data sources for BOM domains

Not applicable.