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:
-
Open the BOM Editor in Rule Designer.
-
In the BOM Editor, open the class that you want to associate
with the dynamic domain.
-
In the Domain section, click Create
a domain.
-
In the Domains wizard, select Static
references, and then click Next.
-
Click Finish.
This
action creates an empty enumerated domain and the Domain section displays
a link named Synchronize.
-
In the Custom Properties section,
click Add.
A new custom property
is created.
-
In the Name column, click newProp and
type domainValueProviderName.
-
In the Value column, type the key
that you want to use to reference your implementation in Rule Designer and Decision Center.
-
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.