Rule Builder > Business Object Models > Working With the BOM > Virtual BOM Classes |
Virtual BOM Classes |
PREVIOUS NEXT |
Classes imported into the BOM from the XOM map directly in a one-to-one fashion with the underlying execution classes (Java classes, XML Schemas, and Web services) present in the XOM.
Virtual BOM classes are classes that you create, using the Rule Builder, that do not map in a one-to-one manner with the execution classes in the XOM. In this case, you have to map these virtual classes to execution classes using the translation
property. The custom translation mechanism allows you to change the way business classes in the BOM are translated into execution classes in the XOM. By default, a reference to a BOM class member in a rule is translated into IRL as a reference to a XOM Java class member with the same name.
The value of the translation
property is a string that is used in the translation of the references to the classes or class members into IRL. The custom translation mechanism allows you to add functionality to the BOM without modifying your existing XOM classes.
You can edit virtual classes in the BOM Explorer, the Class Editor, or in the BOM Graphical Editor, and the translation
property can be specified for the selected element in the BOM, using the Property Sheet or Class Editor.
Important |
If you have imported classes into the BOM, it is recommended that you do not edit them in the BOM Explorer or the BOM Graphical Editor, as they will no longer map to their underlying classes. If you edit an imported class in the BOM you will either need to make the same change in the underlying Java class, XML Schema or Web service, or set up a custom translation for your new virtual class in the BOM. |
Business rules are automatically updated when you edit the BOM. For more information about virtual BOM classes, see the Business Action Language User's Manual.
Working With the BOM Explorer | Using the BOM Date and Time Classes | Working With the BOM Property Sheet | Adding Elements to a BOM | Creating Classes
Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |