Adding custom BOM types and members

You can add members to a class to extend your external library.

About this task

Adding members to a class requires the manual creation of two files: a BOM file and a BOM-to-XOM mapping file.
  • 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:

  1. Create a BOM file in the reference folder of the external library.
  2. 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.
  3. Declare the member variable.
  4. Create a BOM-to-XOM mapping file.
  5. Add the member implementation inside the BOM-to-XOM mapping file.

What to do next

The following topics provide guidance for mapping business elements to the XOM: