Creating packages and classes

Extend the BOM with new business elements or properties.

About this task

You can extend the business object model (BOM) with new business elements or new properties on BOM elements. You can also manage values in the BOM editor by developing specific classes and referencing them in BOM custom properties.

You start by adding a package to a BOM entry, and then adding a class to the BOM package.

Procedure

To add a package to a BOM entry and add a class to the package:

  1. In the Rule Explorer view, double-click the BOM entry in the bom folder.

    The Package tab of the BOM Editor displays the list of packages and classes in your BOM entry.

  2. Click New Package.
  3. In the New BOM Package wizard, in the Name field, specify the fully qualified name of the package you want to create.
  4. Click Finish.

    The BOM entry now contains the new package. You must now add a class to the BOM package.

  5. To add a class, in the Rule Explorer view, double-click the BOM entry in the bom folder.

    The Package tab of the BOM Editor displays the list of packages and classes in the BOM entry.

  6. Click New Class.
  7. In the New BOM Class wizard, in the Package field, specify the fully qualified name of the package in which you want to create the class.
  8. In the Name field, specify the name of the class you want to create.
  9. Click Finish.

Results

You now have a new BOM package, with a new class added to it.

Note:

When using the Intellirule editor to write rules, you can create business elements on the fly. If you use a new element in a rule, the Intellirule editor detects that it must be added to the BOM and displays a Quick Fix message so that you can add it automatically. See Correcting errors by using Quick Fix.