Rule Builder > Business Object Models > Working With the BOM > Updating or Merging BOMs

A .bom file can be updated or merged with an existing BOM in the current repository.

To merge a .bom file with the current BOM:

  1. Right-click the existing BOM element in the Project Explorer and then click Merge Object Model on the shortcut menu.
  2. In the dialog box that opens, select the .bom file to be merged.

The classes and packages of the merged BOM are added to those of your current BOM. If any classes have the same fully-qualified Java name, they are completely overwritten by the classes from the merged BOM.

You can specify exactly what is retained from the original BOM when you update or merge. The properties that allow this are:

brm.importantMemberProperties
brm.importantDomainProperties
brm.importantDomainItemProperties

The value of these properties can be set to be the name of an "important" property of a BOM element. A property of a BOM element means both the static properties that are defined in the repository, and any dynamic, user-defined properties, such as tags. Specifying a property as an "important" property means that all elements in the original BOM that have a value set for the specified property are not replaced during the merge or update.

For example if you specify the following:

brm.importantMemberProperties = translation

Then any methods or attributes with a value set for the translation property will not be replaced during a merge or update. In addition, more than one BOM element property can be specified as a value of brm.importantXxxProperties as shown below:

brm.importantMemberProperties = translation;name

This means that if any methods or properties have a value set for the translation or the name property, they will not be replaced during an update or merge.

Refer to the Rule Builder Customization User's Manual for further details.

See Also

Working With Projects | Working With the Property Sheet | Adding Tags to a Repository Element | Updating Imported BOM Classes


Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. PREVIOUS   NEXT