OSID Logo
OSID Specifications
rules package
Version 3.1.0
Interfaceosid.rules.RulesManager
Implementsosid.OsidManager
osid.rules.RulesProfile
Used Byosid.orchestration.OrchestrationManager
Description

The rules manager provides access to rules sessions and provides interoperability tests for various aspects of this service. The sessions included in this manager are:

  • RuleEvaluationSession: a session for evaluating and executing rules
  • RuleLookupSession: a session to lookup rules
  • RuleSearchSession: a session to query rules
  • RuleSearchSession: a session to search rules
  • RuleAdminSession: a session to manage rules
  • RuleNotificationSession: a session to subscribe to notifications of new rules
  • RuleEngineSession a session to retrieve rule engine mappings
  • RuleEngineAssignmentSession a session to manage rule engine mappings
  • RuleSmartEngineSession a session to manage dynamic engines
  • EngineLookupSession: a session to retrieve engine objects
  • EngineSearchSession: a session to query engines
  • EngineSearchSession: a session to search for engines
  • EngineAdminSession: a session to create, update and delete engines
  • EngineNotificationSession: a session to receive notifications for changes in engines
  • EngineHierarchyTraversalSession: a session to traverse hierarchies of engines
  • EngineHierarchyDesignSession: a session to manage hierarchies of engines

The rules manager also provides a profile for determing the supported search types supported by this service.

MethodgetRuleEvaluationSession
Description

Gets the OsidSession associated with the rule evaluation service.

Returnosid.rules.RuleEvaluationSession a RuleEvaluationSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRuleEvaluation() is false
Complianceoptional This method must be implemented if supportsRuleEvaluation() is true.
MethodgetRuleEvaluationSessionForEngine
Description

Gets the OsidSession associated with the rule evaluation service for the given engine.

Parametersosid.id.IdengineId the Id of an Engine
Returnosid.rules.RuleEvaluationSession a RuleEvaluationSession
ErrorsNOT_FOUND no Engine found by the given Id
NULL_ARGUMENT engineId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRuleEvaluation() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsRuleEvaluation() and supportsVisibleFederation() are true
MethodgetRuleLookupSession
Description

Gets the OsidSession associated with the rule lookup service.

Returnosid.rules.RuleLookupSession a RuleLookupSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRuleLookup() is false
Complianceoptional This method must be implemented if supportsRuleLookup() is true.
MethodgetRuleLookupSessionForEngine
Description

Gets the OsidSession associated with the rule lookup service for the given engine.

Parametersosid.id.IdengineId the Id of an Engine
Returnosid.rules.RuleLookupSession a RuleLookupSession
ErrorsNOT_FOUND no Engine found by the given Id
NULL_ARGUMENT engineId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRuleLookup() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsRuleLookup() and supportsVisibleFederation() are true
MethodgetRuleQuerySession
Description

Gets the OsidSession associated with the rule query service.

Returnosid.rules.RuleQuerySession a RuleQuerySession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRuleQuery() is false
Complianceoptional This method must be implemented if supportsRuleQuery() is true.
MethodgetRuleQuerySessionForEngine
Description

Gets the OsidSession associated with the rule query service for the given engine.

Parametersosid.id.IdengineId the Id of an Engine
Returnosid.rules.RuleQuerySession a RuleQuerySession
ErrorsNOT_FOUND no Engine found by the given Id
NULL_ARGUMENT engineId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRuleQuery() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsRuleQuery() and supportsVisibleFederation() are true
MethodgetRuleSearchSession
Description

Gets the OsidSession associated with the rule search service.

Returnosid.rules.RuleSearchSession a RuleSearchSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRuleSearch() is false
Complianceoptional This method must be implemented if supportsRuleSearch() is true.
MethodgetRuleSearchSessionForEngine
Description

Gets the OsidSession associated with the rule search service for the given engine.

Parametersosid.id.IdengineId the Id of an Engine
Returnosid.rules.RuleSearchSession a RuleSearchSession
ErrorsNOT_FOUND no Engine found by the given Id
NULL_ARGUMENT engineId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRuleSearch() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsRuleSearch() and supportsVisibleFederation() are true
MethodgetRuleAdminSession
Description

Gets the OsidSession associated with the rule administrative service.

Returnosid.rules.RuleAdminSession a RuleAdminSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRuleAdmin() is false
Complianceoptional This method must be implemented if supportsRuleAdmin() is true.
MethodgetRuleAdminSessionForEngine
Description

Gets the OsidSession associated with the rule administrative service for the given engine.

Parametersosid.id.IdengineId the Id of an Engine
Returnosid.rules.RuleAdminSession a RuleAdminSession
ErrorsNOT_FOUND no Engine found by the given Id
NULL_ARGUMENT engineId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRuleAdmin() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsRuleAdmin() and supportsVisibleFederation() are true
MethodgetRuleNotificationSession
Description

Gets the OsidSession associated with the rule notification service.

Parametersosid.rules.RuleReceiverruleReceiver the receiver
Returnosid.rules.RuleNotificationSession a RuleNotificationSession
ErrorsNULL_ARGUMENT ruleReceiver is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRuleNotification() is false
Complianceoptional This method must be implemented if supportsRuleNotification() is true.
MethodgetRuleNotificationSessionForEngine
Description

Gets the OsidSession associated with the rule notification service for the given engine.

Parametersosid.rules.RuleReceiverruleReceiver the receiver
osid.id.IdengineId the Id of an Engine
Returnosid.rules.RuleNotificationSession a RuleNotificationSession
ErrorsNOT_FOUND no Rule found by the given Id
NULL_ARGUMENT ruleReceiver or engineId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRuleNotification() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsRuleNotification() and supportsVisibleFederation() are true
MethodgetRuleEngineSession
Description

Gets the OsidSession to lookup rule/engine mappings.

Returnosid.rules.RuleEngineSession a RuleEngineSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRuleEngine() is false
Complianceoptional This method must be implemented if supportsRuleEngine() is true.
MethodgetRuleEngineAssignmentSession
Description

Gets the OsidSession associated with assigning rules to engines.

Returnosid.rules.RuleEngineAssignmentSession a RuleEngineAssignmentSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRuleEngineAssignment() is false
Complianceoptional This method must be implemented if supportsRuleEngineAssignment() is true.
MethodgetRuleSmartEngineSession
Description

Gets the OsidSession associated with the rule smart engine service for the given engine.

Parametersosid.id.IdengineId the Id of an Engine
Returnosid.rules.RuleSmartEngineSession a RuleSmartEngineSession
ErrorsNOT_FOUND no Engine found by the given Id
NULL_ARGUMENT engineId is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRuleSmartEngine() or supportsVisibleFederation() is false
Complianceoptional This method must be implemented if supportsRuleSmartEngine() and supportsVisibleFederation() are true
MethodgetEngineLookupSession
Description

Gets the OsidSession associated with the engine lookup service.

Returnosid.rules.EngineLookupSession an EngineLookupSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsEngineLookup() is false
Complianceoptional This method must be implemented if supportsEngineLookup() is true.
MethodgetEngineQuerySession
Description

Gets the OsidSession associated with the engine query service.

Returnosid.rules.EngineQuerySession an EngineQuerySession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsEngineQuery() is false
Complianceoptional This method must be implemented if supportsEngineQuery() is true.
MethodgetEngineSearchSession
Description

Gets the OsidSession associated with the engine search service.

Returnosid.rules.EngineSearchSession an EngineSearchSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsEngineSearch() is false
Complianceoptional This method must be implemented if supportsEngineSearch() is true.
MethodgetEngineAdminSession
Description

Gets the OsidSession associated with the engine administrative service.

Returnosid.rules.EngineAdminSession an EngineAdminSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsEngineAdmin() is false
Complianceoptional This method must be implemented if supportsEngineAdmin() is true.
MethodgetEngineNotificationSession
Description

Gets the OsidSession associated with the engine notification service.

Parametersosid.rules.EngineReceiverengineReceiver the receiver
Returnosid.rules.EngineNotificationSession an EngineNotificationSession
ErrorsNULL_ARGUMENT engineReceiver is null
OPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsEngineNotification() is false
Complianceoptional This method must be implemented if supportsEngineNotification() is true.
MethodgetEngineHierarchySession
Description

Gets the OsidSession associated with the engine hierarchy service.

Returnosid.rules.EngineHierarchySession an EngineHierarchySession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsEngineHierarchy() is false
Complianceoptional This method must be implemented if supportsEngineHierarchy() is true.
MethodgetEngineHierarchyDesignSession
Description

Gets the OsidSession associated with the engine hierarchy design service.

Returnosid.rules.EngineHierarchyDesignSession an EngineierarchyDesignSession
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsEngineHierarchyDesign() is false
Complianceoptional This method must be implemented if supportsEngineHierarchyDesign() is true.
MethodgetRulesCheckManager
Description

Gets the RulesCheckManager.

Returnosid.rules.check.RulesCheckManager a RulesCheckManager
ErrorsOPERATION_FAILED unable to complete request
UNIMPLEMENTED supportsRulesCheckManager() is false
Complianceoptional This method must be implemented if supportsRulesCheckManager() is true.