Adding the execution object model (XOM)

To execute your rules in Java™ you need an execution object model (XOM). After creating the XOM, you must attach it the rule project, and associate your BOM entry to the XOM by setting the origin.

About this task

During the migration process, the business object model (BOM) is converted. However the .NET class library project on which the initial BOM was based is not converted. Therefore, you must re-write the classes from your .NET class library project, in Java.

The Java project containing the execution classes, is called the execution object model (XOM). The XOM is a model that references implementation objects used in rules. Through the XOM, the rule engine can access application objects and methods. At run time, rules that are written against the BOM are run against the XOM.

The classes in the XOM must map the classes that you have in the migrated BOM. Every BOM element (business element) must have a corresponding XOM element (execution element). The mapping between execution elements and business elements does not need to be one-to-one. When a business element is not attached to an execution element, you must specify a BOM to XOM mapping.

After creating the Java project for the XOM, you must reference it in the rule project. Then, you link the XOM to the BOM entry.

Procedure

  1. Rewrite the classes from your .NET class library project in Java to create an Execution Object Model.
  2. In Rule Designer, import the XOM into your workspace, if it is not already there.
  3. In the Rule Explorer, right-click your rule project and click Properties.
  4. In the Properties dialog, click Java Execution Object Model, select your project, and then click OK.
  5. Click OK.
    Note:

    If you had deactivated the BOM to XOM checks, make sure that you reactivate the option to perform BOM to XOM checks during build. On the Window menu, click Preferences > Rule Designer > Build, and select the Perform BOM to XOM checks during build check box.

Results

The rule project references your XOM, and the BOM entry origin is now set.

What to do next

You can now define the BOM to XOM mapping for the elements that are not converted or need to be updated.
Tip:

To synchronize changes between the BOM and the XOM, you can use the BOM update view.