Overview: Dynamic execution object model (XOM)
The execution object model (XOM) is an object model against which rules are run. Business rules are written against the Business Object Model (BOM), and then translated into the ILOG® Rule Language (IRL) and run against the XOM. The rule engine evaluates the rules against the application objects and runs them when appropriate.
- A XOM generated from native Java classes is known as a Java XOM.
- A XOM generated from dynamic classes is known as a Dynamic XOM.
- You can easily generate a Java model from XSD files by using a maven plug-in, like jaxb2-maven-plugin or a Java IDE.
- By using the managed Java XOM feature for Rule Execution Server, you can keep deploying decision services without worrying about the XOM.
- The HTDS requests and responses are very similar after moving to a Java XOM, and the differences might be addressed by annotating Java XOM classes if necessary.
The following diagram shows the mapping between a XOM and Java classes and dynamic classes.

The XOM is represented by the Java class IlrReflect. Instances of this class contain all the classes that are required for the execution of IRL rules.
- At compile time, the XOM uses an XML driver to read XML schemas.
- At run time, the rule engine uses the class IlrReflect to manage the XOM.
- Create a XOM
- Add a new Java class to the XOM
- Retrieve all dynamic classes
- Create a dynamic class in the XOM
- Add a new dynamic attribute to a dynamic class
Consequently, rules can run directly on dynamic data without the data being converted to Java objects.
For native Java classes, the rule engine uses Java type introspection to apply rules directly to the application objects.
The following diagram shows how the rule engine reads XML schemas directly, through an XML driver.

You can define a dynamic XOM in the New Rule Project wizard when you create a rule project, or add it later by using the Rule Project Properties dialog.