In J2SE you can notify the Execution Unit (XU) that a ruleset is no longer valid using a J2SE 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 a local XU that a ruleset is no longer valid:
-
Get the rule session provider
IlrRuleSessionProvider rsProvider = new
IlrRuleSessionProviderFactory.Builder(IlrRuleSessionProviderFactory.
J2SE_RULESESSION_PROVIDER).setLogger(writer).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