Adding custom BOM types and members
You can add members to a class to extend your external library.
About this task
- A BOM file (
.bom) is a text file that defines part of the business object model (BOM). - A BOM-to-XOM mapping file (
.b2x) is an XML file that stores the mapping between the BOM and the execution object model (XOM). The XOM is the model against which you run rules.
In the BOM-to-XOM mapping file, you can provide the implementation for BOM constructors, methods, and attribute getters and setters. You use the Advanced Rule Language (ARL) for BOM-to-XOM mapping. For more information about writing rules using the ARL, see ARL syntax.
Procedure
To add members to a class:
- Create a BOM file in the reference folder of the external library.
- Declare a class inside the BOM file. You can copy a class declaration from the BOM file that was automatically generated in the external library.
- Declare the member variable.
- Create a BOM-to-XOM mapping file.
- Add the member implementation inside the BOM-to-XOM mapping file.