You can extend the Business Object Model (BOM) with new business elements or new properties on these elements. You can also manage values in the editor by developing specific classes and referencing them in BOM custom properties.
Whether you create an empty BOM entry or create a BOM entry from a XOM, you probably need to add business elements to your BOM entry. You will then need to map the new business element to actual application data with the BOM to XOM mapping mechanism.
To add a package to a BOM entry:
-
In the Rule Explorer view, double-click the BOM entry under the bom folder.
In the Package page of the BOM Editor, you can see the list of packages and classes in your BOM entry.
-
Click New Package.
-
In the New BOM Package wizard, specify the fully qualified name of the package you want to create in the Name field.
-
Click Finish.
The new package is added to the BOM entry.
You must next add a class to a BOM package.
To add a class to a BOM package:
-
In the Rule Explorer view, double-click the BOM entry under the bom folder.
In the Package page of the BOM Editor, you can see the list of packages and classes in your BOM entry.
-
Click New Class.
-
In the New BOM Class wizard, specify the fully qualified name of the package in which you want to create the class in the Package field.
-
Specify the name of the class you want to create in the Name field.
-
Click Finish.
The new class is added to the BOM package.
Next, add a nested class.
To add a nested class:
-
In the Rule Explorer view, double-click the BOM entry under the bom folder.
In the Package page of the BOM Editor, you can see the list of packages and classes in your BOM entry.
-
Click New Class.
-
In the New BOM Class wizard, select the Enclosing class box, and click Browse to select the enclosing class.
-
Specify the name of the class you want to create in the Name field.
-
Click Finish.
The new class is added as a nested class.
You can also add a member to a class.
To add a member to a class:
-
In the Outline view, expand the BOM entry and click the class to which you want to add members.
-
In the Class page of the BOM Editor, in the Members section, click New.
-
In the New Member wizard, select whether the new member is an attribute, a constructor, or a method.
-
Specify its name, type, and arguments if any.
-
Click Finish.
The new member appears in the list in the Members section.
| Note |
| When using the Intellirule Editor to write rules, you have the option of creating business elements on the fly. If you use a new element in a rule and if the Intellirule Editor detects that it needs to be added to the BOM and displays a Quick Fix message that allows you to add it automatically. See Correcting Errors Using Quick Fix.
|
Related Concepts
Related Tasks
Related Reference
Related Samples and Tutorials