XOM annotations

You can use annotations in your Java™ source code. Annotations are a type of metadata that you can add to classes, members and parameters.

You can add annotations to the execution object model (XOM) to customize the way that the business object model (BOM) is created from Java classes. You use the annotations to apply changes to classes, members, or parameters in the BOM.

For example, you can add an annotation to a class to define a business name for the class. In the BOM, the class takes the name defined by the annotation.

When you create the BOM from the XOM, the BOM Verbalization page of the New BOM Entry wizard displays the business name of the class.

Important:

To use the annotations from the ilog.rules.bom.annotations package, you must add <InstallDir>/studio/lib/jrules-engine.jar to the classpath of your XOM. However, if you just want to use the @java.beans.ConstructorProperties annotation, you do not need to add the jrules-engine.jar to the classpath.