ILOG JRules User Guide > Creating Rule Projects > Concepts > BOM and XOM > The BOM to XOM Mapping Mechanism > Execution Class

You can map a class to an execution class by specifying its execution class name. For example, you can map the business class RichCustomer to an execution class Customer.

You define the execution class in the Execution class name field of the BOM to XOM Mapping section of the BOM Editor.

When you execute, the execution class is used instead of the business class whenever needed. The BOM to XOM mechanism assumes that members of the business class are the same as the members of the execution class if they are not explicitly mapped, and uses them as described in the following table:

Table 2 Implicit Mapping to Members of an Execution Class
Member of Business Class BusinessClass 
Case 
Mapping to Execution Member of Class ExecutionClass 
Constructor BusinessClass(MyBizClassB, MyBizClassC) 
Call by new 
Constructor ExecutionClass(MyClassB, MyClassC) 
Attribute MyBizClassA attr 
Assignment 
Attribute attr (not read-only) 
Access 
Attribute attr (not write-only) 
Method MyBizClassA myBizMethod(MyBizClassB, MyBizClassC) 
Invocation 
Method MyClassA myMethod(MyClassB, MyClassC) 
BusinessClass is used 
Use of operator InstanceOf, or cast, or classification in conditions 
ExecutionClass 

Related Concepts

The BOM to XOM Mapping Mechanism
IRL Mapping
Extender Mapping

Related Tasks

Defining How Business Elements Map to the XOM

Related Reference

BOM Editor

Related Samples and Tutorials

Tutorial: Defining a Vocabulary
How to Write Rules Independently of the Execution Model