| ILOG JRules User Guide > Creating Rule Projects > Tasks > Defining How Business Elements Map to the XOM > Accessing Ruleset Variables and Parameters from IRL Mapping Code |
Accessing Ruleset Variables and Parameters from IRL Mapping Code |
PREVIOUS NEXT |
You can access ruleset variables and parameters from the IRL mapping code. Extender mapping does not allow you to do this.
To access ruleset variables or parameters:
IlrContext.getParameterValue to access the ruleset variable or parameter.
In this example, there is a parameter business class customer b.Customer, and the business class b.Customer is being mapped to x.Customer. You can access the parameter in the IRL mapping by writing:
x.Customer customer = (x.Customer)getParameterValue("customer");
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |