In J2EE you can notify the Execution Unit (XU) that a ruleset is no longer valid using a rule session provider and the invalidate method. The invalidate method takes a canonical ruleset path. If you want to get this path, use the solveRulesetPath method.
To notify an XU on an application server that a ruleset is no longer valid:
-
Get the rule session provider
IlrRuleSessionProvider rsProvider = new
IlrRuleSessionProviderFactory.Builder(IlrRuleSessionProviderFactory.
SIMPLE_RULESESSION_PROVIDER).build();
-
Create the management session
IlrManagementSession managementSession = rsProvider.createManagementSession();
-
Invalidate a ruleset
String rulesetPath = "/ruleApp/ruleset";
managementSession.invalidate(rulesetPath);
Related Concepts
Related Tasks
Related Reference
Related Samples and Tutorials