|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrManagementSession
IlrManagementSession
is the base interface for management
sessions. Use a management session to manipulate RuleApps and rulesets
in the repository, and to retrieve metadata.
The following code example shows how to invalidate a rule in a POJO session.
//Get the rule session factory. IlrJ2SESessionFactory sessionFactory = new IlrJ2SESessionFactory(); sessionFactory.setOutput(new PrintWriter(System.out)); //Create the management session. IlrManagementSession managementSession=sessionFactory.createManagementSession(); //Invalidate a ruleset. String rulesetPath = "/ruleApp/ruleset"; managementSession.invalidate(rulesetPath);
Method Summary | |
---|---|
IlrRepositoryFactory |
getRepositoryFactory()
Returns the repository factory. |
void |
invalidate(IlrPath rulesetPath)
Invalidates the ruleset. |
void |
invalidate(IlrPath[] rulesetPaths)
Invalidates some rulesets. |
void |
loadUptodateRuleset(IlrPath rulesetPath)
Loads and parses a specific ruleset. |
IlrPath[] |
solveRulesetPath(IlrPath[] rulesetPaths)
Resolves an array of canonical ruleset paths. |
Method Detail |
---|
IlrRepositoryFactory getRepositoryFactory() throws IlrSessionException
An
- IlrSessionException
object if an error occurred while
the repository factory was retrieved.
IlrSessionException
void invalidate(IlrPath rulesetPath) throws IlrSessionException
An
- IlrSessionException
object if an error occurred while the ruleset was invalidated.
IlrSessionException
rulesetPath
- The canonical path for the ruleset to be invalidatedvoid invalidate(IlrPath[] rulesetPaths) throws IlrSessionException
An
- IlrSessionException
object if an error occurred
while the rulesets were invalidated.
IlrSessionException
rulesetPaths
- An array of canonical paths for the rulesets
to be invalidated.IlrPath[] solveRulesetPath(IlrPath[] rulesetPaths) throws IlrSessionException
An
- IlrSessionException
object if an error occurs while
the ruleset paths are resolved, for example if a ruleset path is wrong.
IlrSessionException
rulesetPaths
- The array of ruleset paths to be resolved.
void loadUptodateRuleset(IlrPath rulesetPath) throws IlrSessionException
An
- IlrSessionException
object if an error occurred while
the ruleset was loaded, for example if the ruleset path is wrong.
IlrSessionException
rulesetPath
- The path of the ruleset to be loaded.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |