Creating a Stateful Rule Session and Executing a Ruleset |
PREVIOUS NEXT |
To invoke a ruleset using a stateful rule session you can:
createStatefulRuleSession(request).
ruleapp.interceptor.classname property on the RuleApp to the implemented ruleset execution interceptor and create a provider using createStatefulRuleSession(request).
| Note |
| The ruleset should be previously deployed. |
In the following example we assume that a ruleset execution interceptor has been set on the RuleApp that redirects the RuleApp call to a ruleset of this RuleApp.
To create a stateful rule session and execute a ruleset with a RuleApp path:
IlrSessionDescriptor desc = request.getSessionDescriptor(); desc.setUserData("testInterceptorRuleApp");
| Warning |
| The rule session should be freed rigorously at the end of the session to prevent the application server from overloading. |
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |